diff --git a/app/src/main/java/org/tasks/themes/ThemeCache.java b/app/src/main/java/org/tasks/themes/ThemeCache.java index a15373143..62dde4e18 100644 --- a/app/src/main/java/org/tasks/themes/ThemeCache.java +++ b/app/src/main/java/org/tasks/themes/ThemeCache.java @@ -67,7 +67,7 @@ public class ThemeCache { colorNames[i], i, resolveAttribute(theme, R.attr.colorPrimary), - resolveAttribute(theme, R.attr.colorPrimaryDark), + resolveAttribute(theme, R.attr.colorPrimaryVariant), resolveAttribute(theme, R.attr.actionBarPrimaryText), resolveBoolean(theme, R.attr.dark_status_bar))); } diff --git a/app/src/main/java/org/tasks/themes/ThemeColor.java b/app/src/main/java/org/tasks/themes/ThemeColor.java index cd10cece6..4a2395ad4 100644 --- a/app/src/main/java/org/tasks/themes/ThemeColor.java +++ b/app/src/main/java/org/tasks/themes/ThemeColor.java @@ -109,14 +109,14 @@ public class ThemeColor implements ColorPickerDialog.Pickable { private final int actionBarTint; private final int style; private final int colorPrimary; - private final int colorPrimaryDark; + private final int colorPrimaryVariant; private final boolean isDark; public ThemeColor( String name, int index, int colorPrimary, - int colorPrimaryDark, + int colorPrimaryVariant, int actionBarTint, boolean isDark) { this.name = name; @@ -124,7 +124,7 @@ public class ThemeColor implements ColorPickerDialog.Pickable { this.actionBarTint = actionBarTint; this.style = COLORS[index]; this.colorPrimary = colorPrimary; - this.colorPrimaryDark = colorPrimaryDark; + this.colorPrimaryVariant = colorPrimaryVariant; this.isDark = isDark; } @@ -134,7 +134,7 @@ public class ThemeColor implements ColorPickerDialog.Pickable { actionBarTint = source.readInt(); style = source.readInt(); colorPrimary = source.readInt(); - colorPrimaryDark = source.readInt(); + colorPrimaryVariant = source.readInt(); isDark = source.readInt() == 1; } @@ -148,13 +148,13 @@ public class ThemeColor implements ColorPickerDialog.Pickable { public void setStatusBarColor(Activity activity) { if (atLeastLollipop()) { - activity.getWindow().setStatusBarColor(getColorPrimaryDark()); + activity.getWindow().setStatusBarColor(getColorPrimaryVariant()); } } public void applyToStatusBar(DrawerLayout drawerLayout) { if (atLeastLollipop()) { - drawerLayout.setStatusBarBackgroundColor(getColorPrimaryDark()); + drawerLayout.setStatusBarBackgroundColor(getColorPrimaryVariant()); } if (atLeastMarshmallow()) { int systemUiVisibility = applyLightStatusBarFlag(drawerLayout.getSystemUiVisibility()); @@ -242,8 +242,8 @@ public class ThemeColor implements ColorPickerDialog.Pickable { return actionBarTint; } - private int getColorPrimaryDark() { - return colorPrimaryDark; + private int getColorPrimaryVariant() { + return colorPrimaryVariant; } public void apply(Toolbar toolbar) { @@ -263,7 +263,7 @@ public class ThemeColor implements ColorPickerDialog.Pickable { dest.writeInt(actionBarTint); dest.writeInt(style); dest.writeInt(colorPrimary); - dest.writeInt(colorPrimaryDark); + dest.writeInt(colorPrimaryVariant); dest.writeInt(isDark ? 1 : 0); } } diff --git a/app/src/main/res/layout/activity_location_picker.xml b/app/src/main/res/layout/activity_location_picker.xml index f093d7387..df5ce8d41 100644 --- a/app/src/main/res/layout/activity_location_picker.xml +++ b/app/src/main/res/layout/activity_location_picker.xml @@ -21,7 +21,7 @@ android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed|snap" - app:statusBarScrim="?attr/colorPrimaryDark" + app:statusBarScrim="?attr/colorPrimaryVariant" app:titleEnabled="false"> @color/amber_500 - @color/amber_700 + @color/amber_700 \ No newline at end of file diff --git a/app/src/main/res/values/theme_cyan.xml b/app/src/main/res/values/theme_cyan.xml index 52ffcfa37..e6ab76b94 100644 --- a/app/src/main/res/values/theme_cyan.xml +++ b/app/src/main/res/values/theme_cyan.xml @@ -3,7 +3,7 @@ \ No newline at end of file diff --git a/app/src/main/res/values/theme_deep_orange.xml b/app/src/main/res/values/theme_deep_orange.xml index 3134a51d5..6b2cb83a0 100644 --- a/app/src/main/res/values/theme_deep_orange.xml +++ b/app/src/main/res/values/theme_deep_orange.xml @@ -3,7 +3,7 @@ \ No newline at end of file diff --git a/app/src/main/res/values/theme_indigo.xml b/app/src/main/res/values/theme_indigo.xml index 1c2850627..a74e6d795 100644 --- a/app/src/main/res/values/theme_indigo.xml +++ b/app/src/main/res/values/theme_indigo.xml @@ -3,7 +3,7 @@ \ No newline at end of file diff --git a/app/src/main/res/values/theme_yellow.xml b/app/src/main/res/values/theme_yellow.xml index 79412b291..3836d71b2 100644 --- a/app/src/main/res/values/theme_yellow.xml +++ b/app/src/main/res/values/theme_yellow.xml @@ -3,7 +3,7 @@