Skip to content

Commit

Permalink
Fix AMOLED Dark theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirtyDegreesRay committed Nov 6, 2018
1 parent 398167e commit fae7b40
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static Locale getLocale(String language) {

public static boolean isNightMode() {
String theme = PrefUtils.getTheme();
return PrefUtils.DARK.equals(theme) || PrefUtils.AMOLED_Dark.equals(theme);
return PrefUtils.DARK.equals(theme) || PrefUtils.AMOLED_DARK.equals(theme);
}

public static void copyToClipboard(@NonNull Context context, @NonNull String uri) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PrefUtils {
public final static String LIGHT_INDIGO = "Light indigo";
public final static String DARK = "Dark";
public final static String LIGHT_TEAL = "Light teal";
public final static String AMOLED_Dark = "AMOLED dark";
public final static String AMOLED_DARK = "AMOLED dark";

public final static int LIGHT_BLUE = 0;
public final static int BLUE = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static int getAboutTheme(String theme){
return R.style.ThemeLight_AboutActivity;
case PrefUtils.DARK:
return R.style.ThemeDark_AboutActivity;
case PrefUtils.AMOLED_Dark:
case PrefUtils.AMOLED_DARK:
return R.style.ThemeAmoledDark_AboutActivity;
default:
return R.style.ThemeLightTeal_AboutActivity;
Expand Down Expand Up @@ -162,7 +162,7 @@ public static int getTheme(String theme, int accentColor){
case PrefUtils.DEEP_PURPLE:
return R.style.ThemeDark_DeepPurple;
}
case PrefUtils.AMOLED_Dark:
case PrefUtils.AMOLED_DARK:
switch (accentColor){
case PrefUtils.LIGHT_BLUE:
return R.style.ThemeAmoledDark_LightBlue;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/theme_amoled_dark.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<resources xmlns:tools="http:https://schemas.android.com/tools">

<color name="amoled_dark_color_primary">#26282C</color> //26282C
<color name="amoled_dark_color_primary_blur">#000000</color> //#DD2D3035
<color name="amoled_dark_color_primary_blur">#DD000000</color> //#DD2D3035
<color name="amoled_dark_color_primary_dark">#161719</color>
<color name="amoled_dark_color_accent">@color/material_green_accent_700</color>
<color name="amoled_dark_color_window_background">#000000</color>
Expand Down

0 comments on commit fae7b40

Please sign in to comment.