style: improve black theme colors

Improve the black theme selection color by merging it with the dark
theme selection coler. This makes the selection color both more
noticable and reduces the style complexity that came from having to
manage two different selection colors.
This commit is contained in:
OxygenCobalt
2021-07-02 08:56:03 -06:00
parent f1f2fcf41d
commit fef5e4d9f9
7 changed files with 4 additions and 23 deletions
+2 -12
View File
@@ -9,21 +9,12 @@
<item name="cornerRadius">0dp</item>
</style>
<!-- Base style for the toolbar popup menu -->
<style name="ThemeOverlay.ToolbarPopup.Base" parent="ThemeOverlay.AppCompat.DayNight">
<item name="android:colorBackground">?attr/colorSurface</item>
</style>
<!-- Toolbar popup menu -->
<style name="ThemeOverlay.ToolbarPopup" parent="ThemeOverlay.ToolbarPopup.Base">
<style name="ThemeOverlay.ToolbarPopup" parent="ThemeOverlay.AppCompat.DayNight">
<item name="android:colorBackground">?attr/colorSurface</item>
<item name="colorControlHighlight">@color/selection_color</item>
</style>
<!-- Toolbar popup menu [Black] -->
<style name="ThemeOverlay.ToolbarPopup.Black" parent="ThemeOverlay.ToolbarPopup.Base">
<item name="colorControlHighlight">@color/selection_color_black</item>
</style>
<!-- Base custom dialog theme. Don't try to understand this. -->
<style name="Theme.CustomDialog.Base" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
<item name="android:colorControlHighlight">?attr/colorControlHighlight</item>
@@ -46,7 +37,6 @@
<!-- Black theme dialog theme -->
<style name="Theme.CustomDialog.Black" parent="Theme.CustomDialog.Base">
<item name="colorSurface">@color/surface_color_black</item>
<item name="colorControlHighlight">@color/selection_color_black</item>
</style>
<!-- Material-specific dialog style -->