forked from zelo72/mastodon-ios
fix: profile segmented bar use wrong tint color when force Dark Mode issue
This commit is contained in:
parent
8e880326eb
commit
cc3826dd1f
|
@ -61,12 +61,15 @@ final class ProfileHeaderViewController: UIViewController {
|
||||||
case .dark:
|
case .dark:
|
||||||
// Asset.Colors.Label.primary.color
|
// Asset.Colors.Label.primary.color
|
||||||
button.selectedTintColor = UIColor(red: 238.0/255.0, green: 238.0/255.0, blue: 238.0/255.0, alpha: 1.0)
|
button.selectedTintColor = UIColor(red: 238.0/255.0, green: 238.0/255.0, blue: 238.0/255.0, alpha: 1.0)
|
||||||
|
// Asset.Colors.Label.secondary.color
|
||||||
|
button.tintColor = UIColor(red: 151.0/255.0, green: 157.0/255.0, blue: 173.0/255.0, alpha: 1.0)
|
||||||
default:
|
default:
|
||||||
// Asset.Colors.Label.primary.color
|
// Asset.Colors.Label.primary.color
|
||||||
button.selectedTintColor = UIColor(red: 40.0/255.0, green: 44.0/255.0, blue: 55.0/255.0, alpha: 1.0)
|
button.selectedTintColor = UIColor(red: 40.0/255.0, green: 44.0/255.0, blue: 55.0/255.0, alpha: 1.0)
|
||||||
|
// Asset.Colors.Label.secondary.color
|
||||||
|
button.tintColor = UIColor(red: 60.0/255.0, green: 60.0/255.0, blue: 67.0/255.0, alpha: 0.6)
|
||||||
}
|
}
|
||||||
|
|
||||||
button.tintColor = .secondaryLabel // UIColor(red: 60.0/255.0, green: 60.0/255.0, blue: 67.0/255.0, alpha: 1.0)
|
|
||||||
button.backgroundColor = .clear
|
button.backgroundColor = .clear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
"color-space" : "srgb",
|
"color-space" : "srgb",
|
||||||
"components" : {
|
"components" : {
|
||||||
"alpha" : "0.600",
|
"alpha" : "0.600",
|
||||||
"blue" : "0.263",
|
"blue" : "67",
|
||||||
"green" : "0.235",
|
"green" : "60",
|
||||||
"red" : "0.235"
|
"red" : "60"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"idiom" : "universal"
|
"idiom" : "universal"
|
||||||
|
@ -23,9 +23,9 @@
|
||||||
"color-space" : "srgb",
|
"color-space" : "srgb",
|
||||||
"components" : {
|
"components" : {
|
||||||
"alpha" : "1.000",
|
"alpha" : "1.000",
|
||||||
"blue" : "0.678",
|
"blue" : "173",
|
||||||
"green" : "0.616",
|
"green" : "157",
|
||||||
"red" : "0.592"
|
"red" : "151"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"idiom" : "universal"
|
"idiom" : "universal"
|
||||||
|
|
Loading…
Reference in New Issue