# Uses of Enum Class
javafx.application.ColorScheme

Packages that use ColorScheme
Package
Description
javafx.application
Provides the application life-cycle classes.
javafx.scene
Provides the core set of base classes for the JavaFX Scene Graph API.

- ## Uses of ColorScheme in javafx.application

  Subclasses with type arguments of type ColorScheme in javafx.application
  Modifier and Type
  Class
  Description
  `enum`
  `ColorScheme`
  Defines the color scheme of the user interface, which specifies whether applications should prefer light text on dark backgrounds, or dark text on light backgrounds.
  Methods in javafx.application that return ColorScheme
  Modifier and Type
  Method
  Description
  `ColorScheme`
  Platform.Preferences.`getColorScheme()`
  Gets the value of the `colorScheme` property.
  `static ColorScheme`
  ColorScheme.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static ColorScheme[]`
  ColorScheme.`values()`
  Returns an array containing the constants of this enum class, in the order they are declared.
  Methods in javafx.application that return types with arguments of type ColorScheme
  Modifier and Type
  Method
  Description
  `ReadOnlyObjectProperty<ColorScheme>`
  Platform.Preferences.`colorSchemeProperty()`
  The platform color scheme, which specifies whether applications should prefer light text on dark backgrounds, or dark text on light backgrounds.

- ## Uses of ColorScheme in javafx.scene

  Methods in javafx.scene that return ColorScheme
  Modifier and Type
  Method
  Description
  `ColorScheme`
  Scene.Preferences.`getColorScheme()`
  Gets the value of the `colorScheme` property.
  Methods in javafx.scene that return types with arguments of type ColorScheme
  Modifier and Type
  Method
  Description
  `ObjectProperty<ColorScheme>`
  Scene.Preferences.`colorSchemeProperty()`
  Specifies whether the scene should prefer light text on dark backgrounds, or dark text on light backgrounds.
  Methods in javafx.scene with parameters of type ColorScheme
  Modifier and Type
  Method
  Description
  `void`
  Scene.Preferences.`setColorScheme(ColorScheme colorScheme)`
  Sets the value of the `colorScheme` property.