|
|
@ -51,7 +51,7 @@ object ThemeHelper { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private fun getSelectedStaticThemeColor(): Int { |
|
|
|
|
|
|
|
|
private fun getSelectedStaticThemeColor(): Int { |
|
|
val themeIndex = IntSetting.STATIC_THEME_COLOR.getInt(false) |
|
|
val themeIndex = IntSetting.STATIC_THEME_COLOR.getInt(false) |
|
|
val themes = arrayOf( |
|
|
val themes = arrayOf( |
|
|
R.style.Theme_Eden_Main, |
|
|
R.style.Theme_Eden_Main, |
|
|
@ -66,7 +66,7 @@ private fun getSelectedStaticThemeColor(): Int { |
|
|
R.style.Theme_Yuzu_Main_Gray |
|
|
R.style.Theme_Yuzu_Main_Gray |
|
|
) |
|
|
) |
|
|
return themes[themeIndex] |
|
|
return themes[themeIndex] |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ColorInt |
|
|
@ColorInt |
|
|
fun getColorWithOpacity(@ColorInt color: Int, alphaFactor: Float): Int { |
|
|
fun getColorWithOpacity(@ColorInt color: Int, alphaFactor: Float): Int { |
|
|
|