Эх сурвалжийг харах

Dark theme now uses accent color for drawer items. #222

len 9 жил өмнө
parent
commit
e28f69cddf

+ 1 - 33
app/src/main/res/layout/navigation_header.xml

@@ -8,7 +8,7 @@
     <ImageView
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:background="?attr/colorPrimary"
+        android:background="@color/colorPrimary"
         android:scaleType="centerCrop"/>
 
     <ImageView
@@ -19,36 +19,4 @@
         android:scaleType="centerCrop"
         android:src="@drawable/icon"/>
 
-    <!--
-    <LinearLayout
-        android:layout_width="match_parent"
-        android:layout_height="52dp"
-        android:layout_gravity="left|bottom"
-        android:gravity="center"
-        android:orientation="vertical"
-        android:paddingBottom="8dp"
-        android:paddingLeft="16dp"
-        android:paddingRight="16dp">
-
-        <TextView
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_gravity="center"
-            android:gravity="center_vertical"
-            android:text="John Doe"
-            android:textAppearance="@style/TextAppearance.AppCompat.Body2"
-            android:visibility="gone"/>
-
-        <TextView
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_gravity="center"
-            android:gravity="center_vertical"
-            android:text="[email protected]"
-            android:textAppearance="@style/TextAppearance.AppCompat.Body1"
-            android:visibility="gone"/>
-
-    </LinearLayout>
-    -->
-
 </FrameLayout>

+ 1 - 0
app/src/main/res/values/styles.xml

@@ -26,6 +26,7 @@
 
     <style name="Theme.Widget.NavigationView.Dark">
         <item name="colorControlHighlight">@color/md_grey_900</item>
+        <item name="colorPrimary">@color/colorAccent</item>
     </style>
 
     <!--===============-->