fix bold account name color in transacion list
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 12 Jan 2019 15:31:25 +0000 (15:31 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 12 Jan 2019 15:31:25 +0000 (15:31 +0000)
(properly retrieve the dark primary color)

app/src/main/java/net/ktnx/mobileledger/MobileLedgerApplication.java
app/src/main/res/values/colors.xml

index 6550765..6971dec 100644 (file)
@@ -66,13 +66,13 @@ public class MobileLedgerApplication extends Application {
             Resources.Theme theme = getTheme();
             Globals.tableRowDarkBG = rm.getColor(R.color.table_row_dark_bg, theme);
             Globals.tableRowLightBG = rm.getColor(R.color.table_row_light_bg, theme);
-            Globals.primaryDark = rm.getColor(R.color.design_default_color_primary_dark, theme);
+            Globals.primaryDark = rm.getColor(R.color.colorPrimaryDark, theme);
             Globals.defaultTextColor = rm.getColor(android.R.color.tab_indicator_text, theme);
         }
         else {
             Globals.tableRowDarkBG = rm.getColor(R.color.table_row_dark_bg);
             Globals.tableRowLightBG = rm.getColor(R.color.table_row_light_bg);
-            Globals.primaryDark = rm.getColor(R.color.design_default_color_primary_dark);
+            Globals.primaryDark = rm.getColor(R.color.colorPrimaryDark);
             Globals.defaultTextColor = rm.getColor(android.R.color.tab_indicator_text);
         }
     }
index 85b8f48..3ae64c8 100644 (file)
@@ -18,7 +18,7 @@
 
 <resources>
     <color name="colorPrimary">#935ff2</color>
-    <color name="colorPrimaryDark">#42148c</color>
+    <color name="colorPrimaryDark">#3e148c</color>
     <color name="colorAccent">#724db6</color>
     <color name="drawer_background">#ffffffff</color>
     <color name="table_row_dark_bg">#286c33d4</color>