mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
fix material you
This commit is contained in:
parent
f5842696dc
commit
a1b5975c40
@ -22,7 +22,7 @@ object ThemeHelper {
|
|||||||
|
|
||||||
private fun updateAccentColor(context: Context) {
|
private fun updateAccentColor(context: Context) {
|
||||||
when (PreferenceHelper.getString(context, "accent_color", "purple")) {
|
when (PreferenceHelper.getString(context, "accent_color", "purple")) {
|
||||||
"my" -> context.setTheme(R.style.Theme_MY)
|
"my" -> context.setTheme(R.style.MaterialYou)
|
||||||
"red" -> context.setTheme(R.style.Theme_Red)
|
"red" -> context.setTheme(R.style.Theme_Red)
|
||||||
"blue" -> context.setTheme(R.style.Theme_Blue)
|
"blue" -> context.setTheme(R.style.Theme_Blue)
|
||||||
"yellow" -> context.setTheme(R.style.Theme_Yellow)
|
"yellow" -> context.setTheme(R.style.Theme_Yellow)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<style name="Theme.MY" parent="Theme.Material3.Dark.NoActionBar">
|
<style name="MaterialYou">
|
||||||
|
|
||||||
<item name="android:statusBarColor" tools:targetApi="m">@android:color/transparent</item>
|
<item name="android:statusBarColor" tools:targetApi="m">@android:color/transparent</item>
|
||||||
<item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
|
<item name="android:windowLightStatusBar" tools:targetApi="m">false</item>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="Theme.MY" parent="Theme.Material3.Light.NoActionBar">
|
<style name="MaterialYou">
|
||||||
|
|
||||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||||
<item name="android:windowLightStatusBar">true</item>
|
<item name="android:windowLightStatusBar">true</item>
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="Theme.MY" parent="Theme.Material3.Light.NoActionBar">
|
|
||||||
|
|
||||||
<item name="android:navigationBarColor">@android:color/transparent</item>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="Theme.Red" parent="Theme.Material3.Light.NoActionBar">
|
<style name="Theme.Red" parent="Theme.Material3.Light.NoActionBar">
|
||||||
|
|
||||||
<item name="colorPrimary">@color/red_light_accentLight</item>
|
<item name="colorPrimary">@color/red_light_accentLight</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user