Loading app/src/main/java/app/fedilab/android/activities/BaseActivity.java +9 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading @@ -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); Loading app/src/main/java/app/fedilab/android/activities/BaseAlertDialogActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,9 @@ public class BaseAlertDialogActivity extends AppCompatActivity { case "BLACK": setTheme(R.style.BlackAlertDialog); break; case "DRACULA": setTheme(R.style.DraculaAlertDialog); break; } break; } Loading @@ -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); Loading app/src/main/java/app/fedilab/android/activities/BaseBarActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ public class BaseBarActivity extends AppCompatActivity { case "BLACK": setTheme(R.style.BlackAppThemeBar); break; case "DRACULA": setTheme(R.style.DraculaAppThemeBar); break; } break; } Loading @@ -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); Loading app/src/main/java/app/fedilab/android/activities/BaseTransparentActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ public class BaseTransparentActivity extends AppCompatActivity { case "BLACK": setTheme(R.style.TransparentBlack); break; case "DRACULA": setTheme(R.style.TransparentDracula); break; } break; } Loading @@ -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); Loading app/src/main/java/app/fedilab/android/helper/Helper.java +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
app/src/main/java/app/fedilab/android/activities/BaseActivity.java +9 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading @@ -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); Loading
app/src/main/java/app/fedilab/android/activities/BaseAlertDialogActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,9 @@ public class BaseAlertDialogActivity extends AppCompatActivity { case "BLACK": setTheme(R.style.BlackAlertDialog); break; case "DRACULA": setTheme(R.style.DraculaAlertDialog); break; } break; } Loading @@ -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); Loading
app/src/main/java/app/fedilab/android/activities/BaseBarActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ public class BaseBarActivity extends AppCompatActivity { case "BLACK": setTheme(R.style.BlackAppThemeBar); break; case "DRACULA": setTheme(R.style.DraculaAppThemeBar); break; } break; } Loading @@ -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); Loading
app/src/main/java/app/fedilab/android/activities/BaseTransparentActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,9 @@ public class BaseTransparentActivity extends AppCompatActivity { case "BLACK": setTheme(R.style.TransparentBlack); break; case "DRACULA": setTheme(R.style.TransparentDracula); break; } break; } Loading @@ -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); Loading
app/src/main/java/app/fedilab/android/helper/Helper.java +2 −0 Original line number Diff line number Diff line Loading @@ -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