Skip to content

Commit

Permalink
Remove: Accent & secondary color options temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Jan 12, 2024
1 parent eae0b7d commit 5d99e97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ val pref_appTheme = EnumPref(
)

val pref_appAccentColor = EnumPref(
key = "user.appAccentColor",
key = ".appAccentColor", //TODO restore in future
titleId = R.string.prefs_accent_color,
icon = Phosphor.EyedropperSample,
//iconTint = MaterialTheme.colorScheme.primary,
Expand All @@ -199,7 +199,7 @@ val pref_appAccentColor = EnumPref(
)

val pref_appSecondaryColor = EnumPref(
key = "user.appSecondaryColor",
key = ".appSecondaryColor", //TODO restore in future
titleId = R.string.prefs_secondary_color,
icon = Phosphor.EyedropperSample,
//iconTint = MaterialTheme.colorScheme.secondary,
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/machiav3lli/backup/utils/UIUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ fun Context.setCustomTheme() {
AppCompatDelegate.setDefaultNightMode(getThemeStyleX(styleTheme))
if (!(isDynamicTheme && DynamicColors.isDynamicColorAvailable())) {
setTheme(R.style.AppTheme)
theme.applyAccentStyle()
theme.applySecondaryStyle()
//theme.applyAccentStyle()
//theme.applySecondaryStyle()
} // TODO allow fine control on using custom accent/secondary colors?
if (isBlackTheme && isNightMode())
theme.applyStyle(R.style.Black, true)
Expand Down

0 comments on commit 5d99e97

Please sign in to comment.