]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 6550765b3beb9e235137981b426a62a56ec1f37d..6971dec4bfe00884f2d4be91c3d8af803e11471f 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 85b8f48f71b81ee06478ef552d82e2d9145c6b02..3ae64c828440ab2152fe1b41d145f78f91a4cef9 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>