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
bcd19bd8
Commit
bcd19bd8
authored
Mar 15, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #235 from zgosalvez/development
Added text colors.
parents
6d1cff5d
36116059
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Sources/MaterialColor.swift
+16
-0
No files found.
Sources/MaterialColor.swift
View file @
bcd19bd8
...
@@ -371,4 +371,20 @@ public struct MaterialColor {
...
@@ -371,4 +371,20 @@ public struct MaterialColor {
public
static
let
darken3
:
UIColor
=
UIColor
(
red
:
55
/
255
,
green
:
71
/
255
,
blue
:
79
/
255
,
alpha
:
1
)
public
static
let
darken3
:
UIColor
=
UIColor
(
red
:
55
/
255
,
green
:
71
/
255
,
blue
:
79
/
255
,
alpha
:
1
)
public
static
let
darken4
:
UIColor
=
UIColor
(
red
:
38
/
255
,
green
:
50
/
255
,
blue
:
56
/
255
,
alpha
:
1
)
public
static
let
darken4
:
UIColor
=
UIColor
(
red
:
38
/
255
,
green
:
50
/
255
,
blue
:
56
/
255
,
alpha
:
1
)
}
}
// dark text
public
struct
darkText
{
public
static
let
primary
:
UIColor
=
UIColor
.
blackColor
()
.
colorWithAlphaComponent
(
0.87
)
public
static
let
secondary
:
UIColor
=
UIColor
.
blackColor
()
.
colorWithAlphaComponent
(
0.54
)
public
static
let
others
:
UIColor
=
UIColor
.
blackColor
()
.
colorWithAlphaComponent
(
0.38
)
public
static
let
dividers
:
UIColor
=
UIColor
.
blackColor
()
.
colorWithAlphaComponent
(
0.12
)
}
// light text
public
struct
lightText
{
public
static
let
primary
:
UIColor
=
UIColor
.
whiteColor
()
public
static
let
secondary
:
UIColor
=
UIColor
.
whiteColor
()
.
colorWithAlphaComponent
(
0.7
)
public
static
let
others
:
UIColor
=
UIColor
.
whiteColor
()
.
colorWithAlphaComponent
(
0.5
)
public
static
let
dividers
:
UIColor
=
UIColor
.
whiteColor
()
.
colorWithAlphaComponent
(
0.12
)
}
}
}
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