Skip to content

Commit

Permalink
fix: Some color themes were not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
HeCodes2Much committed Apr 30, 2024
1 parent d0cde9a commit 3763b01
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ import com.github.droidworksstudio.mlauncher.data.Prefs
class Colors {
@RequiresApi(Build.VERSION_CODES.Q)
fun background(context: Context, prefs: Prefs): Int {
val opacity = getHexForOpacity(context, prefs)
return when (prefs.appTheme.name) {
"Dark" -> {
when (prefs.appDarkColors.name) {
"Dracula" -> {
getColorWithAccent(context, prefs, R.color.draculaBackground)
}
"Arc-Darker" -> {
"Arc" -> {
getColorWithAccent(context, prefs, R.color.arcBackground)
}
"Adapta-Nokto" -> {
"Nokto" -> {
getColorWithAccent(context, prefs, R.color.noktoBackground)
}
"Breeze" -> {
Expand All @@ -36,7 +35,7 @@ class Colors {
getColorWithAccent(context, prefs, R.color.catppuccinoDarkBackground)
}
else -> {
opacity
getHexForOpacity(context, prefs)
}
}
}
Expand All @@ -52,12 +51,12 @@ class Colors {
getColorWithAccent(context, prefs, R.color.catppuccinoLightBackground)
}
else -> {
opacity
getHexForOpacity(context, prefs)
}
}
}
else -> {
opacity
getHexForOpacity(context, prefs)
}
}
}
Expand Down

0 comments on commit 3763b01

Please sign in to comment.