style(ui): remove navigation bar color overrides and redundant v27 styles

This commit is contained in:
2026-03-30 11:12:21 +02:00
parent dad709f5df
commit 47ff40e676
4 changed files with 1 additions and 35 deletions

View File

@@ -248,7 +248,6 @@ class PlayerFragment : Fragment(),
// load player state // load player state
playerState = PreferencesHelper.loadPlayerState() playerState = PreferencesHelper.loadPlayerState()
// recreate player ui // recreate player ui
// setupPlaybackControls()
updatePlayerViews() updatePlayerViews()
updateStationListState() updateStationListState()
togglePeriodicSleepTimerUpdateRequest() togglePeriodicSleepTimerUpdateRequest()
@@ -256,7 +255,7 @@ class PlayerFragment : Fragment(),
observeCollectionViewModel() observeCollectionViewModel()
// handle navigation arguments // handle navigation arguments
handleNavigationArguments() handleNavigationArguments()
// // handle start intent - if started via tap on rss link // handle start intent - if started via tap on rss link
handleStartIntent() handleStartIntent()
// start watching for changes in shared preferences // start watching for changes in shared preferences
PreferencesHelper.registerPreferenceChangeListener(this as SharedPreferences.OnSharedPreferenceChangeListener) PreferencesHelper.registerPreferenceChangeListener(this as SharedPreferences.OnSharedPreferenceChangeListener)

View File

@@ -31,9 +31,6 @@
<!-- Don't show light status bar --> <!-- Don't show light status bar -->
<item name="android:statusBarColor">@android:color/transparent</item> <item name="android:statusBarColor">@android:color/transparent</item>
<!-- Set Navigation Bar color -->
<item name="android:navigationBarColor">@color/player_sheet_background</item>
<!-- Set splash screen icon background color --> <!-- Set splash screen icon background color -->
<item name="android:windowSplashScreenIconBackgroundColor">@color/splashBackgroundColor</item> <item name="android:windowSplashScreenIconBackgroundColor">@color/splashBackgroundColor</item>
</style> </style>

View File

@@ -3,6 +3,5 @@
<style name="SplashTheme" parent="Theme.Material3.DayNight.NoActionBar"> <style name="SplashTheme" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:windowBackground">@drawable/splash_screen</item> <item name="android:windowBackground">@drawable/splash_screen</item>
<item name="android:statusBarColor">@color/splashBackgroundColor</item> <item name="android:statusBarColor">@color/splashBackgroundColor</item>
<item name="android:navigationBarColor">@color/splashBackgroundColor</item>
</style> </style>
</resources> </resources>

View File

@@ -1,29 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Set AppCompats colors -->
<item name="colorPrimary">#FF495D92</item>
<item name="colorAccent">#FF495D92</item>
<item name="android:textColorHighlight">#FF495D92</item>
<item name="colorControlHighlight">#33000000</item>
<item name="android:colorControlHighlight">#33000000</item>
<item name="android:colorFocusedHighlight">#80000000</item>
<!-- Do not use primary colored elevation overlays to present a visual hierarchy - TOO COLORFUL -->
<item name="elevationOverlayEnabled">false</item>
<!-- Switch Theming -->
<item name="switchPreferenceCompatStyle">@style/Preference.SwitchPreferenceCompat.Material3</item>
<!-- Material Alert Dialog Theming -->
<item name="alertDialogTheme">@style/ThemeOverlay.App.AlertDialogTheme</item>
<!-- Use "light" Status Bar -->
<item name="android:windowLightStatusBar">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<!-- Use "light" Navigation Bar -->
<item name="android:windowLightNavigationBar">true</item>
</style>
</resources>