Skip to content

Commit 9453014

Browse files
committed
Fix
1 parent f98636c commit 9453014

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Adamant/Helpers/UIColor+adamant.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ extension UIColor {
3333
/// Table row icons color, ~45% gray
3434
static let tableRowIcons = UIColor(red: 0.45, green: 0.45, blue: 0.45, alpha: 1)
3535

36+
/// Switch onTintColor
37+
static let switchColor = UIColor(hex: "#179cec")
38+
3639
// MARK: Chat colors
3740

3841
/// User chat bubble background, ~4% gray

Adamant/Stories/Account/AccountViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ class AccountViewController: FormViewController {
392392
$0.title = Rows.stayIn.localized
393393
$0.cell.imageView?.image = Rows.stayIn.image
394394
$0.value = accountService.hasStayInAccount
395+
}.cellUpdate { (cell, _) in
396+
cell.switchControl.onTintColor = UIColor.adamant.switchColor
395397
}.onChange { [weak self] row in
396398
guard let enabled = row.value else {
397399
return
@@ -424,7 +426,7 @@ class AccountViewController: FormViewController {
424426
return !showBiometry
425427
})
426428
}.cellUpdate { (cell, _) in
427-
cell.switchControl.onTintColor = UIColor.adamant.secondary
429+
cell.switchControl.onTintColor = UIColor.adamant.switchColor
428430
}.onChange { [weak self] row in
429431
let value = row.value ?? false
430432
self?.setBiometry(enabled: value)

0 commit comments

Comments
 (0)