2
2
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:
CMK 2021-11-04 15:20:37 +08:00
parent 469acd12f5
commit 0462ade3ae

View File

@ -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) {
if size.width > 960 {
show(.primary)
@ -136,7 +142,7 @@ extension RootSplitViewController {
private func setupBackground(theme: Theme) {
// this set column separator line color
view.backgroundColor = theme.separator
view.backgroundColor = .opaqueSeparator
}
}