Package generic.theme

# Class ThemePreferences

java.lang.Object
generic.theme.ThemePreferences

public class ThemePreferences extends Object
Reads and writes current theme info to preferences

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ThemePreferences()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `GTheme`
  `load()`
  Returns the theme that was stored in preferences or the default theme if none stored.
  `void`
  `save(GTheme theme)`
  Saves the current theme choice to `Preferences`.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ThemePreferences

    public ThemePreferences()

- ## Method Details

  - ### load

    public GTheme load()
    Returns the theme that was stored in preferences or the default theme if none stored.
    Returns:
      the last theme used (stored in preferences) or the default theme if not stored in preferences

  - ### save

    public void save(GTheme theme)
    Saves the current theme choice to `Preferences`.
    Parameters:
      `theme` - the theme to remember in `Preferences`