Commit b6f74cb2 authored by Thomas's avatar Thomas
Browse files

Add Dracula theme

parent 6cfe8b7b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -83,6 +83,10 @@ public class BaseActivity extends AppCompatActivity {
                            setTheme(R.style.BlackAppTheme);
                            currentThemeId = R.style.BlackAppTheme;
                            break;
                        case "DRACULA":
                            setTheme(R.style.DraculaAppTheme);
                            currentThemeId = R.style.DraculaAppTheme;
                            break;
                    }
                    break;
            }
@@ -113,6 +117,11 @@ public class BaseActivity extends AppCompatActivity {
                    setTheme(R.style.BlackAppTheme);
                    currentThemeId = R.style.BlackAppTheme;
                    break;
                case "DRACULA":
                    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
                    setTheme(R.style.DraculaAppTheme);
                    currentThemeId = R.style.DraculaAppTheme;
                    break;
            }
        }
        super.onCreate(savedInstanceState);
+7 −0
Original line number Diff line number Diff line
@@ -76,6 +76,9 @@ public class BaseAlertDialogActivity extends AppCompatActivity {
                        case "BLACK":
                            setTheme(R.style.BlackAlertDialog);
                            break;
                        case "DRACULA":
                            setTheme(R.style.DraculaAlertDialog);
                            break;
                    }
                    break;
            }
@@ -101,6 +104,10 @@ public class BaseAlertDialogActivity extends AppCompatActivity {
                    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
                    setTheme(R.style.BlackAlertDialog);
                    break;
                case "DRACULA":
                    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
                    setTheme(R.style.DraculaAlertDialog);
                    break;
            }
        }
        super.onCreate(savedInstanceState);
+7 −0
Original line number Diff line number Diff line
@@ -75,6 +75,9 @@ public class BaseBarActivity extends AppCompatActivity {
                        case "BLACK":
                            setTheme(R.style.BlackAppThemeBar);
                            break;
                        case "DRACULA":
                            setTheme(R.style.DraculaAppThemeBar);
                            break;
                    }
                    break;
            }
@@ -101,6 +104,10 @@ public class BaseBarActivity extends AppCompatActivity {
                    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
                    setTheme(R.style.BlackAppThemeBar);
                    break;
                case "DRACULA":
                    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
                    setTheme(R.style.DraculaAppThemeBar);
                    break;
            }
        }
        super.onCreate(savedInstanceState);
+7 −0
Original line number Diff line number Diff line
@@ -75,6 +75,9 @@ public class BaseTransparentActivity extends AppCompatActivity {
                        case "BLACK":
                            setTheme(R.style.TransparentBlack);
                            break;
                        case "DRACULA":
                            setTheme(R.style.TransparentDracula);
                            break;
                    }
                    break;
            }
@@ -101,6 +104,10 @@ public class BaseTransparentActivity extends AppCompatActivity {
                    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
                    setTheme(R.style.TransparentBlack);
                    break;
                case "DRACULA":
                    AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
                    setTheme(R.style.TransparentDracula);
                    break;
            }
        }
        super.onCreate(savedInstanceState);
+2 −0
Original line number Diff line number Diff line
@@ -1918,6 +1918,8 @@ public class Helper {
            return R.style.SolarizedAlertDialog;
        } else if (R.style.BlackAppThemeBar == currentThemeId || R.style.BlackAppTheme == currentThemeId) {
            return R.style.BlackAlertDialog;
        } else if (R.style.DraculaAppThemeBar == currentThemeId || R.style.DraculaAppTheme == currentThemeId) {
            return R.style.DraculaAlertDialog;
        }
        return R.style.AppTheme;
    }
Loading