style: fix style issues

Fix some style issues that came from the colorAccent reworks.
This commit is contained in:
OxygenCobalt
2021-08-08 14:05:44 -06:00
parent 2f0df83cb2
commit 4cc433f7ef
30 changed files with 62 additions and 55 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:tint="@color/control_color"
android:tint="@color/control"
android:viewportWidth="24"
android:viewportHeight="24">
<group
+1 -1
View File
@@ -2,7 +2,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:tint="@color/control_color"
android:tint="@color/control"
android:viewportWidth="24"
android:viewportHeight="24">
<group
@@ -2,7 +2,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="@color/inactive_color"
android:tint="@color/inactive"
android:viewportWidth="24"
android:viewportHeight="24">
<path
@@ -7,7 +7,7 @@
<shape android:shape="rectangle">
<stroke
android:width="0.5dp"
android:color="@color/divider_color" />
android:color="@color/divider" />
</shape>
</item>
</layer-list>
+1 -1
View File
@@ -27,7 +27,7 @@
app:cardBackgroundColor="?attr/colorSurface"
app:cardCornerRadius="0dp"
app:cardElevation="0dp"
app:strokeColor="@color/divider_color"
app:strokeColor="@color/divider"
app:strokeWidth="1dp">
<androidx.constraintlayout.widget.ConstraintLayout
+1 -1
View File
@@ -65,7 +65,7 @@
<string name="set_lib_display">Musikbibliothekitems</string>
<string name="set_color_notif">Benachrichtigung farblich anpassen</string>
<string name="set_color_notif_desc">Albumcover am Benachrichtigung zeigen</string>
<string name="setting_show_covers">Albumcover anzeigen</string>
<string name="set_show_covers">Albumcover anzeigen</string>
<string name="set_show_covers_desc">Ausschalten zu Speicherverbrauch sparen</string>
<string name="set_quality_covers">MediaStore Cover ignorieren</string>
<string name="set_quality_covers_desc">Verbesst die Albumcover Qualität, jedoch länger Ladezeit und höher Speicherverbrauch beeinträchtigt</string>
+1 -1
View File
@@ -68,7 +68,7 @@
<string name="set_lib_display">Ítem de biblioteca</string>
<string name="set_color_notif">Ajustar color de notificación</string>
<string name="set_color_notif_desc">Mostrar imagen de álbum en la notificación</string>
<string name="setting_show_covers">Mostrar carátula de álbum</string>
<string name="set_show_covers">Mostrar carátula de álbum</string>
<string name="set_show_covers_desc">Desactivar para ahorrar uso de memoria</string>
<string name="set_quality_covers">Ignorar carátulas de MediaStore</string>
<string name="set_quality_covers_desc">Mejora la calidad de las carátulas de álbum, pero resulta en tiempos de carga lentos y un mayor uso de memoria</string>
@@ -3,7 +3,7 @@
<!-- Template theme that handles edge-to-edge on other styles variants -->
<style name="Theme.Edge" parent="Theme.Master">
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@color/nav_color</item>
<item name="android:navigationBarColor">@color/nav_bar</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
+6 -6
View File
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="surface_color">@color/surface_night</color>
<color name="divider_color">#323232</color>
<color name="selection_color">#484848</color>
<color name="inactive_color">#404040</color>
<color name="control_color">#ffffff</color>
<color name="nav_color">#01151515</color>
<color name="surface">@color/surface_night</color>
<color name="divider">#323232</color>
<color name="selection">#484848</color>
<color name="inactive">#404040</color>
<color name="control">#ffffff</color>
<color name="nav_bar">#01151515</color>
<!--
Base color set derived from Music Player GO.
+1 -1
View File
@@ -66,7 +66,7 @@
<string name="set_lib_display">Bibliotheek Items</string>
<string name="set_color_notif">Notificatie kleur aanpassen</string>
<string name="set_color_notif_desc">Toon album art op notification</string>
<string name="setting_show_covers">Toon albumhoezen</string>
<string name="set_show_covers">Toon albumhoezen</string>
<string name="set_show_covers_desc">Schakel uit om geheugengebruik te besparen</string>
<string name="set_quality_covers">Negeer Mediaopslag illustraties</string>
<string name="set_quality_covers_desc">Verhoogt de kwaliteit van de albumhoezen, maar resulteert in langere laadtijden en hoger geheugengebruik </string>
+1 -1
View File
@@ -2,8 +2,8 @@
<resources>
<!-- Template theme that handles edge-to-edge on other styles variants -->
<style name="Theme.Edge" parent="Theme.Master">
<item name="android:navigationBarColor">@color/nav_bar</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@color/nav_color</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Android 12 Splashscreen config -->
<style name="Theme.Splash" parent="Theme.Edge">
<item name="android:windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
</style>
+7 -7
View File
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="surface_day">#fffafafa</color>
<color name="surface_night">#ff151515</color>
<color name="surface_night">#ff121212</color>
<color name="surface_black">#ff000000</color>
<color name="surface_color">@color/surface_day</color>
<color name="selection_color">#cbcbcb</color>
<color name="control_color">#202020</color>
<color name="divider_color">#cbcbcb</color>
<color name="inactive_color">#c4c4c4</color>
<color name="nav_color">#01fafafa</color>
<color name="surface">@color/surface_day</color>
<color name="selection">#cbcbcb</color>
<color name="control">#202020</color>
<color name="divider">#cbcbcb</color>
<color name="inactive">#c4c4c4</color>
<color name="nav_bar">#01fafafa</color>
<!--
Base color set derived from Music Player GO.
+1 -1
View File
@@ -71,7 +71,7 @@
<string name="set_lib_display">Library Items</string>
<string name="set_color_notif">Colorize notification</string>
<string name="set_color_notif_desc">Show album art on notification</string>
<string name="setting_show_covers">Show album covers</string>
<string name="set_show_covers">Show album covers</string>
<string name="set_show_covers_desc">Turn off to save memory usage</string>
<string name="set_quality_covers">Ignore MediaStore covers</string>
<string name="set_quality_covers_desc">Increases the quality of the album covers, but results in longer loading times and higher memory usage</string>
+4 -3
View File
@@ -12,7 +12,7 @@
<!-- Toolbar popup menu -->
<style name="ThemeOverlay.ToolbarPopup" parent="ThemeOverlay.AppCompat.DayNight">
<item name="android:colorBackground">?attr/colorSurface</item>
<item name="colorControlHighlight">@color/selection_color</item>
<item name="colorControlHighlight">@color/selection</item>
</style>
<!-- Base custom dialog theme. Don't try to understand this. -->
@@ -30,8 +30,8 @@
<!-- Normal DayNight dialog theme -->
<style name="Theme.CustomDialog" parent="Theme.CustomDialog.Base">
<item name="colorSurface">@color/surface_color</item>
<item name="colorControlHighlight">@color/selection_color</item>
<item name="colorSurface">@color/surface</item>
<item name="colorControlHighlight">@color/selection</item>
</style>
<!-- Black theme dialog theme -->
@@ -53,6 +53,7 @@
<!-- Custom dialog title theme -->
<style name="Widget.TextView.Dialog.Title" parent="MaterialAlertDialog.MaterialComponents.Title.Text">
<item name="android:fontFamily">@font/inter_bold</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textSize">@dimen/text_size_toolbar_header</item>
</style>
+11 -8
View File
@@ -4,19 +4,22 @@
<style name="Theme.Master" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge" />
<!-- Template theme that handles edge-to-edge on other styles variants -->
<style name="Theme.Edge" parent="Theme.Master" />
<!-- Android-12 Splashscreen config -->
<!-- Android 12 Splashscreen config -->
<style name="Theme.Splash" parent="Theme.Edge" />
<!-- Base theme -->
<style name="Theme.Base" parent="Theme.Splash">
<!-- Colors -->
<item name="colorSurface">@color/surface_color</item>
<item name="colorAccent">@color/design_default_color_primary</item>
<!-- TODO: Improve the color contrast on the dark theme [colorOnSurface] -->
<item name="colorPrimary">?attr/colorSurface</item>
<item name="colorSecondary">?attr/colorSurface</item>
<item name="colorControlNormal">@color/control_color</item>
<item name="colorControlHighlight">@color/selection_color</item>
<!-- Colors -->
<item name="colorSurface">@color/surface</item>
<item name="colorAccent">@color/design_default_color_primary</item>
<item name="colorOnSurface">#FFFFFF</item>
<item name="colorPrimary">?attr/colorAccent</item>
<item name="colorSecondary">?attr/colorAccent</item>
<item name="colorControlNormal">@color/control</item>
<item name="colorControlHighlight">@color/selection</item>
<item name="colorControlActivated">?attr/colorAccent</item>
<!-- Appearance -->
+4 -3
View File
@@ -220,11 +220,12 @@
<item name="cornerRadius">0dp</item>
</style>
<style name="Widget.Button.Vibrant.Primary" parent="@style/Widget.Button.Vibrant.Base" />
<style name="Widget.Button.Vibrant.Primary" parent="@style/Widget.Button.Vibrant.Base">
<item name="android:textColor">?attr/colorSurface</item>
</style>
<style name="Widget.Button.Vibrant.Secondary" parent="@style/Widget.Button.Vibrant.Base">
<item name="strokeColor">@color/divider_color</item>
<item name="strokeColor">@color/divider</item>
<item name="strokeWidth">@dimen/width_play_stroke</item>
<item name="android:textColor">?attr/colorAccent</item>
</style>
</resources>
+1 -1
View File
@@ -76,6 +76,6 @@
</style>
<style name="Theme.Neutral" parent="Theme.Base">
<item name="colorAccent">@color/control_color</item>
<item name="colorAccent">@color/control</item>
</style>
</resources>
+1 -1
View File
@@ -48,7 +48,7 @@
app:iconSpaceReserved="false"
app:key="KEY_SHOW_COVERS"
app:summary="@string/set_show_covers_desc"
app:title="@string/setting_show_covers" />
app:title="@string/set_show_covers" />
<SwitchPreferenceCompat
app:defaultValue="false"