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
04a97076
Commit
04a97076
authored
Dec 06, 2018
by
Jose Blaya
Browse files
Update style values
parent
a82c0a4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/UI/iOS/Styles/TextStyles.swift
View file @
04a97076
...
...
@@ -195,6 +195,15 @@ public extension TextStyle {
lineHeight
:
15
)
public
static
let
textStyle21
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
piaGrey4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
lineHeight
:
16
)
public
static
let
versionNumberStyle
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
piaGrey4
,
...
...
PIALibrary/Sources/UI/iOS/Theme.swift
View file @
04a97076
...
...
@@ -48,7 +48,7 @@ public class Theme {
/// The light background color.
public
var
lightBackground
:
UIColor
/// The solid light background color.
public
var
solidLightBackground
:
UIColor
...
...
@@ -290,6 +290,11 @@ public class Theme {
public
func
applyLightBackground
(
_
view
:
UIView
)
{
view
.
backgroundColor
=
palette
.
lightBackground
}
/// :nodoc:
public
func
applySettingsBackground
(
_
view
:
UIView
)
{
view
.
backgroundColor
=
palette
.
lightBackground
}
/// :nodoc:
public
func
applyTransparentButton
(
_
button
:
PIAButton
,
...
...
@@ -612,7 +617,7 @@ public class Theme {
guard
let
hfv
=
view
as?
UITableViewHeaderFooterView
,
let
label
=
hfv
.
textLabel
else
{
return
}
label
.
textColor
=
palette
.
emphasis
label
.
style
(
style
:
TextStyle
.
textStyle14
)
}
/// :nodoc:
...
...
@@ -620,7 +625,7 @@ public class Theme {
guard
let
hfv
=
view
as?
UITableViewHeaderFooterView
,
let
label
=
hfv
.
textLabel
else
{
return
}
label
.
textColor
=
palette
.
textColor
(
forRelevance
:
3
,
appearance
:
.
dark
)
label
.
style
(
style
:
TextStyle
.
textStyle21
)
}
/// :nodoc:
...
...
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