mirror of
https://github.com/Michatec/Radio.git
synced 2026-03-31 23:46:28 +02:00
style(ui): remove navigation bar color overrides and redundant v27 styles
This commit is contained in:
@@ -248,7 +248,6 @@ class PlayerFragment : Fragment(),
|
||||
// load player state
|
||||
playerState = PreferencesHelper.loadPlayerState()
|
||||
// recreate player ui
|
||||
// setupPlaybackControls()
|
||||
updatePlayerViews()
|
||||
updateStationListState()
|
||||
togglePeriodicSleepTimerUpdateRequest()
|
||||
@@ -256,7 +255,7 @@ class PlayerFragment : Fragment(),
|
||||
observeCollectionViewModel()
|
||||
// handle navigation arguments
|
||||
handleNavigationArguments()
|
||||
// // handle start intent - if started via tap on rss link
|
||||
// handle start intent - if started via tap on rss link
|
||||
handleStartIntent()
|
||||
// start watching for changes in shared preferences
|
||||
PreferencesHelper.registerPreferenceChangeListener(this as SharedPreferences.OnSharedPreferenceChangeListener)
|
||||
|
||||
@@ -31,9 +31,6 @@
|
||||
<!-- Don't show light status bar -->
|
||||
<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 -->
|
||||
<item name="android:windowSplashScreenIconBackgroundColor">@color/splashBackgroundColor</item>
|
||||
</style>
|
||||
|
||||
@@ -3,6 +3,5 @@
|
||||
<style name="SplashTheme" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<item name="android:windowBackground">@drawable/splash_screen</item>
|
||||
<item name="android:statusBarColor">@color/splashBackgroundColor</item>
|
||||
<item name="android:navigationBarColor">@color/splashBackgroundColor</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,29 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<!-- Set AppCompat’s 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>
|
||||
Reference in New Issue
Block a user