diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e863df646..4c6db41e8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -14,7 +14,7 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_libretube_round" android:supportsRtl="true" - android:theme="@style/Theme.Red" + android:theme="@style/Theme.MY" android:name=".myApp" android:networkSecurityConfig="@xml/network_security_config" android:largeHeap="true" diff --git a/app/src/main/java/com/github/libretube/MainActivity.kt b/app/src/main/java/com/github/libretube/MainActivity.kt index 2a615900c..21b518b29 100644 --- a/app/src/main/java/com/github/libretube/MainActivity.kt +++ b/app/src/main/java/com/github/libretube/MainActivity.kt @@ -29,7 +29,6 @@ import androidx.navigation.ui.setupWithNavController import androidx.preference.PreferenceManager import com.google.android.material.bottomnavigation.BottomNavigationView import com.google.android.material.color.DynamicColors -import java.util.* class MainActivity : AppCompatActivity() { val TAG = "MainActivity" diff --git a/app/src/main/java/com/github/libretube/ThemeChanger.kt b/app/src/main/java/com/github/libretube/ThemeChanger.kt index 5c365d973..b2e988026 100644 --- a/app/src/main/java/com/github/libretube/ThemeChanger.kt +++ b/app/src/main/java/com/github/libretube/ThemeChanger.kt @@ -8,7 +8,7 @@ import java.util.* fun updateAccentColor(context: Context) { val colorAccent = PreferenceManager.getDefaultSharedPreferences(context).getString("accent_color", "red") when (colorAccent) { - "my" -> {} + "my" -> context.setTheme(R.style.Theme_MY) "red" -> context.setTheme(R.style.Theme_Red) "blue" -> context.setTheme(R.style.Theme_Blue) "yellow" -> context.setTheme(R.style.Theme_Yellow) diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 057d435cf..8210e09f1 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -1,5 +1,7 @@ + + + +