Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
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
be7c0ced
Commit
be7c0ced
authored
Aug 06, 2019
by
Jose Blaya
Browse files
Refactor styles
parent
fd251e5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/UI/iOS/ViewControllers/PurchaseTrialViewController.swift
100644 → 100755
View file @
be7c0ced
...
...
@@ -143,7 +143,10 @@ class PurchaseTrialViewController: AutolayoutViewController, BrandableNavigation
let
currencySymbol
=
purchase
.
product
.
priceLocale
.
currencySymbol
??
""
purchase
.
detail
=
L10n
.
Welcome
.
Plan
.
Yearly
.
detailFormat
(
currencySymbol
,
purchase
.
product
.
price
.
description
)
purchase
.
bestValue
=
true
subtitleLabel
.
text
=
"Pay only
\(
L10n
.
Welcome
.
Plan
.
Yearly
.
detailFormat
(
currencySymbol
,
purchase
.
product
.
price
.
description
)
)
after"
let
price
=
L10n
.
Welcome
.
Plan
.
Yearly
.
detailFormat
(
currencySymbol
,
purchase
.
product
.
price
.
description
)
subtitleLabel
.
text
=
"Pay only
\(
price
)
after"
Theme
.
current
.
makeSmallLabelToStandOut
(
subtitleLabel
,
withTextToStandOut
:
price
)
allPlans
[
0
]
=
purchase
selectedPlanIndex
=
0
}
...
...
@@ -181,21 +184,26 @@ class PurchaseTrialViewController: AutolayoutViewController, BrandableNavigation
Theme
.
current
.
applyLinkAttributes
(
textAgreement
)
Theme
.
current
.
applyBigTitle
(
headerTitleLabel
,
appearance
:
.
dark
)
Theme
.
current
.
applySmallSubtitle
(
smallTitleLabel
)
//Theme.current.applySubtitle(subtitleLabel)
Theme
.
current
.
makeSmallLabelToStandOut
(
subtitleLabel
,
withTextToStandOut
:
allPlans
.
first
!.
detail
)
Theme
.
current
.
applySubtitle
(
subtitleLabel
)
if
Theme
.
current
.
palette
.
appearance
==
.
light
{
protectionImageView
.
tintColor
=
Theme
.
current
.
palette
.
lineColor
devicesImageView
.
tintColor
=
Theme
.
current
.
palette
.
lineColor
serversImageView
.
tintColor
=
Theme
.
current
.
palette
.
lineColor
}
else
{
protectionImageView
.
tintColor
=
.
white
devicesImageView
.
tintColor
=
.
white
serversImageView
.
tintColor
=
.
white
}
Theme
.
current
.
applySettingsCellTitle
(
protectionTitleLabel
,
appearance
:
.
dark
)
Theme
.
current
.
applySmallSubtitle
(
protectionSubtitleLabel
)
protectionImageView
.
tintColor
=
.
white
Theme
.
current
.
applySettingsCellTitle
(
devicesTitleLabel
,
appearance
:
.
dark
)
Theme
.
current
.
applySmallSubtitle
(
devicesSubtitleLabel
)
devicesImageView
.
tintColor
=
.
white
Theme
.
current
.
applySettingsCellTitle
(
serversTitleLabel
,
appearance
:
.
dark
)
Theme
.
current
.
applySmallSubtitle
(
serversSubtitleLabel
)
serversImageView
.
tintColor
=
.
white
}
...
...
@@ -208,6 +216,8 @@ class PurchaseTrialViewController: AutolayoutViewController, BrandableNavigation
for
:
[])
buttonMorePlans
.
setTitle
(
"See all available plans"
,
for
:
[])
Theme
.
current
.
applyTransparentButton
(
buttonMorePlans
,
withSize
:
1.0
)
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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