UI theme can be changed

This commit is contained in:
2025-10-29 23:24:13 +01:00
parent a30a47f67a
commit b6ea652e46
11 changed files with 25 additions and 21 deletions

View File

@@ -17,9 +17,13 @@ public class ActivitySettings extends PreferenceActivity
{
super.onCreate(savedInstanceState);
Miscellaneous.setDisplayLanguage(this);
// Dark Theme doesn't work in PreferenceActivity, so only a bright theme is readable
if(Settings.uiTheme != 0)
this.setTheme(R.style.AppThemeCompatLight);
// Miscellaneous.setUiTheme(this);
addPreferencesFromResource(layout.activity_settings);
if(BuildConfig.FLAVOR.equals(AutomationService.flavor_name_apk))