mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
fix: iPad columns separator line color not update when toggle device appearance issue
This commit is contained in:
parent
469acd12f5
commit
0462ade3ae
@ -109,6 +109,12 @@ extension RootSplitViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
|
||||||
|
super.traitCollectionDidChange(previousTraitCollection)
|
||||||
|
|
||||||
|
setupBackground(theme: ThemeService.shared.currentTheme.value)
|
||||||
|
}
|
||||||
|
|
||||||
private func updateBehavior(size: CGSize) {
|
private func updateBehavior(size: CGSize) {
|
||||||
if size.width > 960 {
|
if size.width > 960 {
|
||||||
show(.primary)
|
show(.primary)
|
||||||
@ -136,7 +142,7 @@ extension RootSplitViewController {
|
|||||||
|
|
||||||
private func setupBackground(theme: Theme) {
|
private func setupBackground(theme: Theme) {
|
||||||
// this set column separator line color
|
// this set column separator line color
|
||||||
view.backgroundColor = theme.separator
|
view.backgroundColor = .opaqueSeparator
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user