Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
5450683c
Commit
5450683c
authored
Sep 21, 2018
by
ueshiba
Browse files
Update colours and text styles
parent
1635be60
Changes
2
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/UI/Shared/PIAColors.swift
View file @
5450683c
...
...
@@ -12,27 +12,27 @@ import UIKit
extension
UIColor
{
class
var
grey1
5
:
UIColor
{
class
var
grey1
0
:
UIColor
{
return
UIColor
(
red
:
34.0
/
255.0
,
green
:
37.0
/
255.0
,
blue
:
46.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey
18
:
UIColor
{
class
var
grey
7
:
UIColor
{
return
UIColor
(
red
:
43.0
/
255.0
,
green
:
46.0
/
255.0
,
blue
:
57.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey
20
:
UIColor
{
class
var
grey
6
:
UIColor
{
return
UIColor
(
red
:
50.0
/
255.0
,
green
:
54.0
/
255.0
,
blue
:
66.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey
40
:
UIColor
{
class
var
grey
5
:
UIColor
{
return
UIColor
(
red
:
92.0
/
255.0
,
green
:
99.0
/
255.0
,
blue
:
112.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey
55
:
UIColor
{
class
var
grey
4
:
UIColor
{
return
UIColor
(
red
:
136.0
/
255.0
,
green
:
144.0
/
255.0
,
blue
:
153.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey
85
:
UIColor
{
class
var
grey
2
:
UIColor
{
return
UIColor
(
red
:
215.0
/
255.0
,
green
:
216.0
/
255.0
,
blue
:
217.0
/
255.0
,
alpha
:
1.0
)
}
...
...
@@ -40,7 +40,7 @@ extension UIColor {
return
UIColor
(
white
:
1.0
,
alpha
:
1.0
)
}
class
var
grey
92
:
UIColor
{
class
var
grey
1
:
UIColor
{
return
UIColor
(
white
:
238.0
/
255.0
,
alpha
:
1.0
)
}
...
...
@@ -72,4 +72,44 @@ extension UIColor {
return
UIColor
(
red
:
178.0
/
255.0
,
green
:
53.0
/
255.0
,
blue
:
45.0
/
255.0
,
alpha
:
1.0
)
}
class
var
greenlight
:
UIColor
{
return
UIColor
(
red
:
122.0
/
255.0
,
green
:
250.0
/
255.0
,
blue
:
120.0
/
255.0
,
alpha
:
1.0
)
}
class
var
greenDark30
:
UIColor
{
return
UIColor
(
red
:
64.0
/
255.0
,
green
:
153.0
/
255.0
,
blue
:
61.0
/
255.0
,
alpha
:
1.0
)
}
class
var
yellowLight
:
UIColor
{
return
UIColor
(
red
:
249.0
/
255.0
,
green
:
208.0
/
255.0
,
blue
:
1.0
/
255.0
,
alpha
:
1.0
)
}
class
var
orrange
:
UIColor
{
return
UIColor
(
red
:
245.0
/
255.0
,
green
:
166.0
/
255.0
,
blue
:
35.0
/
255.0
,
alpha
:
1.0
)
}
class
var
black
:
UIColor
{
return
UIColor
(
white
:
0.0
,
alpha
:
1.0
)
}
class
var
grey12
:
UIColor
{
return
UIColor
(
red
:
25.0
/
255.0
,
green
:
27.0
/
255.0
,
blue
:
33.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey11
:
UIColor
{
return
UIColor
(
red
:
31.0
/
255.0
,
green
:
33.0
/
255.0
,
blue
:
42.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey8
:
UIColor
{
return
UIColor
(
red
:
41.0
/
255.0
,
green
:
44.0
/
255.0
,
blue
:
56.0
/
255.0
,
alpha
:
1.0
)
}
class
var
grey3
:
UIColor
{
return
UIColor
(
red
:
147.0
/
255.0
,
green
:
155.0
/
255.0
,
blue
:
163.0
/
255.0
,
alpha
:
1.0
)
}
class
var
transparentGrey
:
UIColor
{
return
UIColor
(
red
:
147.0
/
255.0
,
green
:
155.0
/
255.0
,
blue
:
163.0
/
255.0
,
alpha
:
0.13
)
}
}
PIALibrary/Sources/UI/iOS/Styles/TextStyles.swift
View file @
5450683c
...
...
@@ -16,7 +16,7 @@ protocol TextStyling {
public
extension
TextStyle
{
public
static
let
textStyle1
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
font
:
UIFont
.
regularFontWith
(
size
:
1
8
),
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
...
...
@@ -25,8 +25,8 @@ public extension TextStyle {
)
public
static
let
textStyle2
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
color
:
UIColor
.
grey
55
,
font
:
UIFont
.
regularFontWith
(
size
:
1
8
),
color
:
UIColor
.
grey
6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -34,8 +34,8 @@ public extension TextStyle {
)
public
static
let
textStyle3
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
color
:
UIColor
.
gre
enDark20
,
font
:
UIFont
.
regularFontWith
(
size
:
1
8
),
color
:
UIColor
.
gre
y6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -43,8 +43,8 @@ public extension TextStyle {
)
public
static
let
textStyle4
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
color
:
UIColor
.
red
,
font
:
UIFont
.
regularFontWith
(
size
:
1
8
),
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -53,25 +53,25 @@ public extension TextStyle {
public
static
let
textStyle5
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
gre
y
20
,
color
:
UIColor
.
gre
enDark
20
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
1
8
lineHeight
:
1
6
)
public
static
let
textStyle6
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
2
),
color
:
UIColor
.
white
,
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
color
:
UIColor
.
red
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
1
6
lineHeight
:
1
8
)
public
static
let
textStyle7
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
2
),
color
:
UIColor
.
grey55
,
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -79,15 +79,78 @@ public extension TextStyle {
)
public
static
let
textStyle8
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
grey6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
18
)
public
static
let
textStyle9
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
greenDark20
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
18
)
public
static
let
textStyle10
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
18
)
public
static
let
textStyle11
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
22
)
public
static
let
textStyle12
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
grey4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
18
)
public
static
let
textStyle13
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
grey6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
22
)
public
static
let
textStyle14
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
grey6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
16
)
public
static
let
textStyle9
=
TextStyle
(
public
static
let
textStyle15
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
grey4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
18
)
public
static
let
textStyle16
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
red
,
foregroundColor
:
nil
,
...
...
@@ -95,55 +158,100 @@ public extension TextStyle {
tintColor
:
nil
,
lineHeight
:
16
)
public
static
let
textStyle10
=
TextStyle
(
public
static
let
textStyle17
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
greenDark20
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
16
)
public
static
let
textStyle18
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
16
)
public
static
let
textStyle19
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
grey4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
20
)
public
static
let
textStyle20
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
grey
20
,
color
:
UIColor
.
grey
4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
16
)
public
static
let
textStyle11
=
TextStyle
(
public
static
let
textStyle21
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
grey4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
18
)
public
static
let
textStyle22
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
black
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
18
)
public
static
let
textStyle23
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
10
),
color
:
UIColor
.
white
,
color
:
UIColor
.
grey4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
15
)
public
static
let
textStyle
1
2
=
TextStyle
(
public
static
let
textStyle2
4
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
10
),
color
:
UIColor
.
grey55
,
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
15
)
public
static
let
textStyle
13
=
TextStyle
(
public
static
let
textStyle
25
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
10
),
color
:
UIColor
.
gre
enDark20
,
color
:
UIColor
.
gre
y6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
15
)
public
static
let
textStyle
14
=
TextStyle
(
public
static
let
textStyle
26
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
10
),
color
:
UIColor
.
re
d
,
color
:
UIColor
.
g
re
enDark20
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
15
)
public
static
let
textStyle
15
=
TextStyle
(
public
static
let
textStyle
27
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
10
),
color
:
UIColor
.
g
re
y20
,
color
:
UIColor
.
re
d
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
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