diff --git a/app/src/main/java/com/vanced/manager/ui/core/BaseActivity.kt b/app/src/main/java/com/vanced/manager/ui/core/BaseActivity.kt index cb0e7017..d0928d1f 100644 --- a/app/src/main/java/com/vanced/manager/ui/core/BaseActivity.kt +++ b/app/src/main/java/com/vanced/manager/ui/core/BaseActivity.kt @@ -66,6 +66,7 @@ open class ThemeActivity : AppCompatActivity() { Configuration.UI_MODE_NIGHT_NO -> setLightAccent(currentAccent) } } + "TRANS" -> setTransAccent(currentAccent) else -> setLightAccent("Blue") } } @@ -88,6 +89,15 @@ open class ThemeActivity : AppCompatActivity() { } } + private fun setTransAccent(accentColor: String) { + when (accentColor) { + "Blue" -> setTheme(R.style.TransparentTheme_Blue) + "Red" -> setTheme(R.style.TransparentTheme_Red) + "Green" -> setTheme(R.style.TransparentTheme_Green) + "Yellow" -> setTheme(R.style.TransparentTheme_Yellow) + } + } + private fun setTaskBG() { val label = getString(R.string.app_name) val color = ResourcesCompat.getColor(resources, R.color.Black, null) diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 9215dc43..1812785a 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -5,12 +5,14 @@ @string/theme_light @string/theme_dark @string/theme_follow + Transparent LIGHT DARK FOLLOW + TRANS diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 7fed0cca..940832ca 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -6,4 +6,59 @@ true + + + + + + + +