Added blank theme

pull/215/head
M66B 6 months ago
parent 52020aa117
commit 3cd927f27f

@ -231,6 +231,10 @@ public class FragmentDialogTheme extends FragmentDialogBase {
rgTheme.check(R.id.rbThemeSolarized); rgTheme.check(R.id.rbThemeSolarized);
break; break;
case "blank":
rgTheme.check(R.id.rbThemeBlank);
break;
case "black": case "black":
case "white": case "white":
case "bw_system": case "bw_system":
@ -346,7 +350,9 @@ public class FragmentDialogTheme extends FragmentDialogBase {
else else
editor.putString("theme", editor.putString("theme",
"solarized" + (dark ? "_dark" : "_light")).apply(); "solarized" + (dark ? "_dark" : "_light")).apply();
} else if (checkedRadioButtonId == R.id.rbThemeBlackOrWhite) { } else if (checkedRadioButtonId == R.id.rbThemeBlank)
editor.putString("theme", "blank").apply();
else if (checkedRadioButtonId == R.id.rbThemeBlackOrWhite) {
if (system) if (system)
editor.putString("theme", "bw_system").apply(); editor.putString("theme", "bw_system").apply();
else else
@ -499,6 +505,9 @@ public class FragmentDialogTheme extends FragmentDialogBase {
return R.style.AppThemeSolarizedDark; return R.style.AppThemeSolarizedDark;
// Black // Black
case "blank":
return R.style.AppThemeBlank;
case "black": case "black":
if (light) if (light)
return R.style.AppThemeGreySteelBlueLight; return R.style.AppThemeGreySteelBlueLight;

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?attr/colorPrimary" /> <solid android:color="?attr/colorInfoBackground" />
<corners android:radius="6dp" /> <corners android:radius="6dp" />
</shape> </shape>

@ -73,6 +73,14 @@
android:text="@string/title_setup_theme_solarized" android:text="@string/title_setup_theme_solarized"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioButton
android:id="@+id/rbThemeBlank"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="6dp"
android:text="@string/title_setup_theme_white"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioButton <RadioButton
android:id="@+id/rbThemeBlackOrWhite" android:id="@+id/rbThemeBlackOrWhite"
android:layout_width="match_parent" android:layout_width="match_parent"

@ -73,6 +73,14 @@
android:text="@string/title_setup_theme_solarized" android:text="@string/title_setup_theme_solarized"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioButton
android:id="@+id/rbThemeBlank"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="6dp"
android:text="@string/title_setup_theme_white"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioButton <RadioButton
android:id="@+id/rbThemeBlackOrWhite" android:id="@+id/rbThemeBlackOrWhite"
android:layout_width="match_parent" android:layout_width="match_parent"

@ -73,6 +73,14 @@
android:text="@string/title_setup_theme_solarized" android:text="@string/title_setup_theme_solarized"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioButton
android:id="@+id/rbThemeBlank"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="6dp"
android:text="@string/title_setup_theme_white"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
<RadioButton <RadioButton
android:id="@+id/rbThemeBlackOrWhite" android:id="@+id/rbThemeBlackOrWhite"
android:layout_width="match_parent" android:layout_width="match_parent"

@ -153,6 +153,7 @@
<color name="white">#ffffffff</color> <color name="white">#ffffffff</color>
<color name="black">#ff000000</color> <color name="black">#ff000000</color>
<color name="smoke">#fff5f5f5</color>
<color name="grey">#ff7f7f7f</color> <color name="grey">#ff7f7f7f</color>
<color name="red">#ffff0000</color> <color name="red">#ffff0000</color>
<color name="transparent">#00000000</color> <color name="transparent">#00000000</color>

@ -431,6 +431,17 @@
<item name="snackbarStyle">@style/WhiteSnackBar</item> <item name="snackbarStyle">@style/WhiteSnackBar</item>
</style> </style>
<style name="AppThemeBlank" parent="AppThemeBlueOrangeLight">
<item name="colorPrimary">@color/white</item>
<item name="colorPrimaryDark">@color/white</item>
<item name="colorAccent">@color/blackAccent</item>
<item name="colorInfoForeground">@color/blackPrimary</item>
<item name="colorInfoBackground">@color/smoke</item>
<item name="snackbarStyle">@style/WhiteSnackBar</item>
</style>
<style name="WhiteSnackBar" parent="Widget.Design.Snackbar"> <style name="WhiteSnackBar" parent="Widget.Design.Snackbar">
<item name="android:paddingLeft">0dp</item> <item name="android:paddingLeft">0dp</item>
<item name="android:paddingRight">0dp</item> <item name="android:paddingRight">0dp</item>
@ -466,7 +477,7 @@
<item name="colorFabBackground">@color/blackAndWhitePrimaryLight</item> <item name="colorFabBackground">@color/blackAndWhitePrimaryLight</item>
<item name="colorInfoForeground">@color/white</item> <item name="colorInfoForeground">@color/white</item>
<item name="colorInfoBackground">@color/blackPrimary</item> <item name="colorInfoBackground">@color/blackAndWhitePrimary</item>
<item name="android:windowBackground">@drawable/background_black</item> <item name="android:windowBackground">@drawable/background_black</item>
<item name="colorDrawerBackground">@color/black</item> <item name="colorDrawerBackground">@color/black</item>
@ -523,7 +534,7 @@
<item name="colorFabBackground">@color/darkSolarizedAccent</item> <item name="colorFabBackground">@color/darkSolarizedAccent</item>
<item name="colorInfoForeground">@color/white</item> <item name="colorInfoForeground">@color/white</item>
<item name="colorInfoBackground">@color/darkSolarizedAccent</item> <item name="colorInfoBackground">@color/darkSolarizedPrimary</item>
<item name="android:textColorLink">@color/darkSolarizedAccent</item> <item name="android:textColorLink">@color/darkSolarizedAccent</item>
<item name="android:textColorLinkInverse">@color/darkSolarizedAccent</item> <item name="android:textColorLinkInverse">@color/darkSolarizedAccent</item>
@ -547,7 +558,7 @@
<item name="colorFabBackground">@color/darkSolarizedAccent</item> <item name="colorFabBackground">@color/darkSolarizedAccent</item>
<item name="colorInfoForeground">@color/white</item> <item name="colorInfoForeground">@color/white</item>
<item name="colorInfoBackground">@color/darkSolarizedAccent</item> <item name="colorInfoBackground">@color/darkSolarizedPrimary</item>
<item name="android:textColorLink">@color/darkSolarizedAccent</item> <item name="android:textColorLink">@color/darkSolarizedAccent</item>
<item name="android:textColorLinkInverse">@color/darkSolarizedAccent</item> <item name="android:textColorLinkInverse">@color/darkSolarizedAccent</item>

Loading…
Cancel
Save