Skip to content

Commit

Permalink
Merge pull request #185 from teogor/bug-fix/dynamic-theme-picker-logic
Browse files Browse the repository at this point in the history
Enable Color Theme Picker Based on Dynamic Theming Support
  • Loading branch information
teogor authored Mar 5, 2024
2 parents 0addedd + 55c913d commit 7b97ed1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ fun ScreenListScope.lookAndFeelColorTheme() {
preferenceFlow = ceresPreferences.getDisableDynamicThemingFlow(),
initialValue = ceresPreferences.disableDynamicTheming,
)
if (disableDynamicTheming) {
val showColorThemePicker = supportsDynamicTheming() && disableDynamicTheming ||
!supportsDynamicTheming()
if (showColorThemePicker) {
SimpleView(
title = Resources.LookAndFeelAppColorTheme,
subtitle = Resources.LookAndFeelAppColorThemeSubtitle,
Expand Down

0 comments on commit 7b97ed1

Please sign in to comment.