aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/res/layout/drawer_header.xml2
-rw-r--r--app/src/main/res/values/attrs.xml1
-rw-r--r--app/src/main/res/values/themes.xml3
3 files changed, 5 insertions, 1 deletions
diff --git a/app/src/main/res/layout/drawer_header.xml b/app/src/main/res/layout/drawer_header.xml
index 86222f43..3a9a2d49 100644
--- a/app/src/main/res/layout/drawer_header.xml
+++ b/app/src/main/res/layout/drawer_header.xml
@@ -4,7 +4,7 @@
android:layout_height="178dp"
android:orientation="vertical"
android:weightSum="1"
- android:background="@drawable/drawer_header">
+ android:background="?attr/drawerHeaderBackground">
<LinearLayout
android:layout_width="match_parent"
diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml
index 4206d9f0..d97a3b21 100644
--- a/app/src/main/res/values/attrs.xml
+++ b/app/src/main/res/values/attrs.xml
@@ -56,6 +56,7 @@
<attr name="drawerTitleStyle" format="reference"/>
<attr name="drawerSubtitleStyle" format="reference"/>
<attr name="cardBackgroundDrawable" format="reference"/>
+ <attr name="drawerHeaderBackground" format="reference"/>
<declare-styleable name="SeekBarPreference">
<attr name="min" format="integer"/>
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index c125c18a..12784b94 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -63,6 +63,7 @@
<item name="windowActionModeOverlay">true</item>
<item name="actionModeBackground">?attr/colorPrimary</item>
<item name="cardBackgroundDrawable">@drawable/card_rounded_corners_light</item>
+ <item name="drawerHeaderBackground">@drawable/drawer_header_light</item>
</style>
<style name="Theme.DSub.Dark.Base" parent="@style/Theme.AppCompat">
<item name="offline_icon">@drawable/main_offline_dark</item>
@@ -126,6 +127,7 @@
<item name="windowActionModeOverlay">true</item>
<item name="actionModeBackground">?attr/colorPrimary</item>
<item name="cardBackgroundDrawable">@drawable/card_rounded_corners_black</item>
+ <item name="drawerHeaderBackground">@drawable/drawer_header_dark</item>
</style>
<style name="Theme.DSub.Light" parent="Theme.DSub.Light.Base">
</style>
@@ -141,6 +143,7 @@
<item name="colorPrimaryDark">@color/holoPrimaryDark</item>
<item name="colorAccent">@color/holoAccent</item>
<item name="actionbarBackgroundColor">@color/holoPrimary</item>
+ <item name="drawerHeaderBackground">@drawable/drawer_header_holo</item>
</style>
<style name="Theme.DSub.Light.No_Actionbar" parent="Theme.DSub.Light">