浏览代码

Added dark app theme for profile screen

Vadik Sirekanyan 7 年之前
父节点
当前提交
5ec885e70b
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 1 1
      app/src/main/AndroidManifest.xml
  2. 6 3
      app/src/main/res/values/styles.xml

+ 1 - 1
app/src/main/AndroidManifest.xml

@@ -44,7 +44,7 @@
 
 
         <activity
         <activity
             android:name=".profile.ProfileActivity"
             android:name=".profile.ProfileActivity"
-            android:theme="@style/ProfileTheme" />
+            android:theme="@style/DarkAppTheme" />
 
 
         <activity
         <activity
             android:name="ru.ulogin.sdk.UloginAuthActivity"
             android:name="ru.ulogin.sdk.UloginAuthActivity"

+ 6 - 3
app/src/main/res/values/styles.xml

@@ -8,9 +8,12 @@
         <item name="android:listDivider">@drawable/recycler_view_divider</item>
         <item name="android:listDivider">@drawable/recycler_view_divider</item>
     </style>
     </style>
 
 
-    <style name="ProfileTheme" parent="AppTheme">
-        <item name="android:windowBackground">@color/colorPrimaryDark_97</item>
-        <item name="android:windowIsTranslucent">true</item>
+    <style name="DarkAppTheme" parent="Theme.AppCompat.NoActionBar">
+        <item name="colorPrimary">@color/colorPrimary</item>
+        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+        <item name="colorAccent">@color/colorAccent</item>
+        <item name="android:windowBackground">@color/colorPrimary</item>
+        <item name="android:listDivider">@drawable/recycler_view_divider</item>
     </style>
     </style>
 
 
     <style name="DevTheme" parent="AppTheme">
     <style name="DevTheme" parent="AppTheme">