Browse Source

Added documentation to #getPreferredThemeStyle

pull/130/head
weisj 5 years ago
parent
commit
0ea1fb9d8f
  1. 16
      core/src/main/java/com/github/weisj/darklaf/LafManager.java

16
core/src/main/java/com/github/weisj/darklaf/LafManager.java

@ -141,10 +141,6 @@ public final class LafManager {
ThemePreferencesHandler.getSharedInstance().addThemePreferenceChangeListener(listener);
}
public static PreferredThemeStyle getPreferredThemeStyle() {
return ThemePreferencesHandler.getSharedInstance().getPreferredThemeStyle();
}
/**
* Removes a {@link ThemePreferenceListener}.
*
@ -157,6 +153,18 @@ public final class LafManager {
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
* preferred theme style.

Loading…
Cancel
Save