|
|
@ -141,10 +141,6 @@ public final class LafManager { |
|
|
|
ThemePreferencesHandler.getSharedInstance().addThemePreferenceChangeListener(listener); |
|
|
|
ThemePreferencesHandler.getSharedInstance().addThemePreferenceChangeListener(listener); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static PreferredThemeStyle getPreferredThemeStyle() { |
|
|
|
|
|
|
|
return ThemePreferencesHandler.getSharedInstance().getPreferredThemeStyle(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Removes a {@link ThemePreferenceListener}. |
|
|
|
* Removes a {@link ThemePreferenceListener}. |
|
|
|
* |
|
|
|
* |
|
|
@ -157,6 +153,18 @@ public final class LafManager { |
|
|
|
ThemePreferencesHandler.getSharedInstance().removeThemePreferenceChangeListener(listener); |
|
|
|
ThemePreferencesHandler.getSharedInstance().removeThemePreferenceChangeListener(listener); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Gets the preferred theme style. If theme preference change reporting is enabled this may use native os settings |
|
|
|
|
|
|
|
* to determine these values. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @return the preferred theme style. |
|
|
|
|
|
|
|
* @see #isPreferenceChangeReportingEnabled() |
|
|
|
|
|
|
|
* @see #enabledPreferenceChangeReporting(boolean) |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static PreferredThemeStyle getPreferredThemeStyle() { |
|
|
|
|
|
|
|
return ThemePreferencesHandler.getSharedInstance().getPreferredThemeStyle(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Get the current theme provider. The theme provider is responsible the produce available themes for a given |
|
|
|
* Get the current theme provider. The theme provider is responsible the produce available themes for a given |
|
|
|
* preferred theme style. |
|
|
|
* preferred theme style. |
|
|
|