Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
abfa095e
Commit
abfa095e
authored
Apr 10, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #290 from zgosalvez/development
Fixed Default TextField Colors
parents
7e5df226
46626f68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Sources/iOS/TextField.swift
+8
-5
No files found.
Sources/iOS/TextField.swift
View file @
abfa095e
...
...
@@ -298,6 +298,8 @@ public class TextField : UITextField {
if
nil
==
lineLayerActiveColor
{
lineLayerActiveColor
=
titleLabelActiveColor
}
tintColor
=
titleLabelActiveColor
}
}
...
...
@@ -484,9 +486,9 @@ public class TextField : UITextField {
public
func
prepareView
()
{
backgroundColor
=
MaterialColor
.
white
masksToBounds
=
false
placeholderTextColor
=
MaterialColor
.
grey
.
base
placeholderTextColor
=
MaterialColor
.
darkText
.
others
font
=
RobotoFont
.
regularWithSize
(
16
)
textColor
=
MaterialColor
.
grey
.
darken4
textColor
=
MaterialColor
.
darkText
.
primary
borderStyle
=
.
None
prepareClearButton
()
prepareTitleLabel
()
...
...
@@ -559,7 +561,7 @@ public class TextField : UITextField {
titleLabel
.
font
=
RobotoFont
.
mediumWithSize
(
12
)
addSubview
(
titleLabel
)
titleLabelColor
=
MaterialColor
.
grey
.
base
titleLabelColor
=
placeholderTextColor
titleLabelActiveColor
=
MaterialColor
.
blue
.
accent3
if
0
<
text
?
.
utf16
.
count
{
...
...
@@ -608,9 +610,10 @@ public class TextField : UITextField {
let
image
:
UIImage
?
=
MaterialIcon
.
cm
.
close
clearButton
=
FlatButton
()
clearButton
.
contentEdgeInsets
=
UIEdgeInsetsZero
clearButton
.
pulseColor
=
MaterialColor
.
grey
.
base
clearButton
.
pulseColor
=
MaterialColor
.
black
clearButton
.
pulseOpacity
=
0.12
clearButton
.
pulseScale
=
false
clearButton
.
tintColor
=
MaterialColor
.
grey
.
base
clearButton
.
tintColor
=
placeholderTextColor
clearButton
.
setImage
(
image
,
forState
:
.
Normal
)
clearButton
.
setImage
(
image
,
forState
:
.
Highlighted
)
clearButtonAutoHandleEnabled
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment