Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/src/main/java/com/android/calendar/theme/ThemeUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ object ThemeUtils {
val theme = getTheme(context)
when (theme) {
Theme.SYSTEM -> if (isSystemInDarkTheme(context)) {
return "_" + "dark"
return if (context.isPureBlackModeEnabled) "_" + "black" else "_" + "dark"
} else {
return ""
}

Theme.LIGHT -> return ""
Theme.DARK, Theme.BLACK -> return "_" + theme.name.lowercase()
Theme.DARK -> return if (context.isPureBlackModeEnabled) "_" + "black" else "_" + "dark"
Theme.BLACK -> return "_" + theme.name.lowercase()
else -> throw IllegalArgumentException("Unknown theme: " + theme)
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
-->

<!-- Dark Color SimpleWeekView -->
<color name="bg_dark">#303030</color>
<color name="bg_dark">#141414</color>
<color name="fg_dark_primary">#deffffff</color>
<color name="fg_dark_secondary">#99ffffff</color>
<color name="app_bar_dark">@color/bg_dark</color>
Expand Down