Skip to content

Commit

Permalink
Fix drawer contrast when using light theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Florianisme committed Feb 10, 2022
1 parent bffdbe5 commit 9df3af3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app/src/main/res/drawable-night/drawer_item_color.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/primaryColor" android:state_checked="true" />
<item android:color="@color/primaryTextColorLight" />
</selector>
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/drawer_item_color.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/primaryDarkColor" android:state_checked="true" />
<item android:color="@color/primaryTextColor" />
</selector>
2 changes: 2 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:itemIconTint="@drawable/drawer_item_color"
app:itemTextColor="@drawable/drawer_item_color"
app:menu="@menu/activity_main_drawer" />
</androidx.drawerlayout.widget.DrawerLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<string name="modify_device_unsaved_changes_message">Möchten Sie die Änderungen speichern?</string>
<string name="modify_device_unsaved_changes_negative">Verwerfen</string>
<string name="modify_device_unsaved_changes_positive">Speichern</string>
<string name="title_fragment_backup">Daten Exportieren/Importieren</string>
<string name="title_fragment_backup">Exportieren/Importieren</string>
<string name="title_fragment_device_list">Geräteübersicht</string>
<string name="backup_description">Exportieren Sie ihre konfigurierten Geräte in eine JSON Datei oder importieren Sie einen bestehenden Datensatz</string>
<string name="backup_note">Hinweis:</string>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<color name="secondaryVariantColor">#aeaeae</color>
<color name="secondaryVariantDarkColor">#424242</color>

<color name="primaryTextColor">#0E0E0E</color>
<color name="secondaryTextColor">#0E0E0E</color>
<color name="primaryTextColor">#DE000000</color>
<color name="primaryTextColorLight">#DEFFFFFF</color>

<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
Expand Down

0 comments on commit 9df3af3

Please sign in to comment.