@@ -235,17 +235,24 @@ public void setManagerThemeResId(@StyleRes int resId) {
235235 public void updateTheme () {
236236 @ StyleRes int themeResId ;
237237 String theme ;
238+ boolean monet = isMonetEnabled ();
238239 switch (theme = getSharedPreferences ().getString ("pref_theme" , "system" )) {
239240 default :
240241 Log .w ("MainApplication" , "Unknown theme id: " + theme );
241242 case "system" :
242- themeResId = R .style .Theme_MagiskModuleManager ;
243+ themeResId = monet ?
244+ R .style .Theme_MagiskModuleManager_Monet :
245+ R .style .Theme_MagiskModuleManager ;
243246 break ;
244247 case "dark" :
245- themeResId = R .style .Theme_MagiskModuleManager_Dark ;
248+ themeResId = monet ?
249+ R .style .Theme_MagiskModuleManager_Monet_Dark :
250+ R .style .Theme_MagiskModuleManager_Dark ;
246251 break ;
247252 case "light" :
248- themeResId = R .style .Theme_MagiskModuleManager_Light ;
253+ themeResId = monet ?
254+ R .style .Theme_MagiskModuleManager_Monet_Light :
255+ R .style .Theme_MagiskModuleManager_Light ;
249256 break ;
250257 }
251258 this .setManagerThemeResId (themeResId );
@@ -276,11 +283,11 @@ public boolean isLightTheme() {
276283 public void onCreate () {
277284 if (INSTANCE == null ) INSTANCE = this ;
278285 super .onCreate ();
279- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .S && isMonetEnabled () ) {
286+ /* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
280287 DynamicColors.applyToActivitiesIfAvailable(this,
281288 new DynamicColorsOptions.Builder().setPrecondition(
282289 (activity, theme) -> isMonetEnabled()).build());
283- }
290+ }*/
284291 SharedPreferences sharedPreferences = MainApplication .getSharedPreferences ();
285292 // We are only one process so it's ok to do this
286293 SharedPreferences bootPrefs = MainApplication .bootSharedPreferences =
0 commit comments