Adjust styles

This commit is contained in:
Jonathan Klee 2024-09-19 10:55:15 +02:00
parent fe86329af5
commit 4f97fee55c
3 changed files with 25 additions and 2 deletions

View file

@ -11,7 +11,7 @@ android {
defaultConfig { defaultConfig {
applicationId "io.heckel.ntfy" applicationId "io.heckel.ntfy"
minSdkVersion 21 minSdkVersion 23
targetSdkVersion 33 targetSdkVersion 33
versionCode 33 versionCode 33

View file

@ -180,7 +180,7 @@
<activity <activity
android:name=".ui.MainSettingsActivity" android:name=".ui.MainSettingsActivity"
android:theme="@style/ETheme" android:theme="@style/PreferenceTheme"
android:icon="@drawable/ic_notification" android:icon="@drawable/ic_notification"
android:label="@string/app_name" android:label="@string/app_name"
android:process=":ui" android:process=":ui"

View file

@ -30,4 +30,27 @@
<item name="cornerFamily">rounded</item> <item name="cornerFamily">rounded</item>
<item name="cornerSize">5dp</item> <item name="cornerSize">5dp</item>
</style> </style>
<style name="PreferenceTheme" parent="PreferenceTheme.Base"/>
<style name="PreferenceTheme.Base" parent="Theme.Material3.DayNight.NoActionBar">
<item name="colorPrimary">@color/e_action_bar</item>
<item name="colorPrimaryDark">@color/e_action_bar</item>
<item name="colorAccent">@color/e_accent</item>
<item name="android:textColorPrimary">@color/e_primary_text_color</item>
<item name="android:textColorSecondary">@color/e_secondary_text_color</item>
<item name="android:textColorPrimaryInverse">@color/e_background</item>
<item name="android:windowBackground">@color/e_background</item>
<item name="colorControlActivated">@color/e_accent</item>
<item name="colorButtonNormal">@color/e_icon_color</item>
<item name="colorControlHighlight">@color/e_icon_color</item>
<item name="homeAsUpIndicator">@drawable/e_ic_back</item>
<item name="android:homeAsUpIndicator">@drawable/e_ic_back</item>
<item name="android:popupBackground">@color/e_floating_background</item>
<item name="android:divider">@color/e_divider_color</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@color/e_background</item>
<item name="android:windowLightStatusBar">?attr/isLightTheme</item>
<item name="switchStyle">@style/ETheme.Switch</item>
</style>
</resources> </resources>