Preferences

scalafx.application.Platform.Preferences
See thePreferences companion object
abstract class Preferences(val delegate: Preferences) extends SFXDelegate[Preferences]

Contains UI preferences of the current platform, wrapper for javafx.application.Platform.Preferences

Attributes

Since

JavaFX 22

Companion
object
Graph
Supertypes
trait SFXDelegate[Preferences]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

The accent color, which can be used to highlight the active or important part of a control and make it stand out from the rest of the user interface.

The accent color, which can be used to highlight the active or important part of a control and make it stand out from the rest of the user interface.

Attributes

The color used for background regions.

The color used for background regions.

Attributes

The platform color scheme, which specifies whether applications should prefer light text on dark backgrounds, or dark text on light backgrounds.

The platform color scheme, which specifies whether applications should prefer light text on dark backgrounds, or dark text on light backgrounds.

Attributes

The color used for foreground elements like text.

The color used for foreground elements like text.

Attributes

Specifies whether applications should always show scroll bars. If not set, an application may choose to hide scroll bars that are not actively used, or make them smaller or less noticeable.

Specifies whether applications should always show scroll bars. If not set, an application may choose to hide scroll bars that are not actively used, or make them smaller or less noticeable.

If the platform does not report this preference, this property defaults to false.

Attributes

Since

24

Specifies whether applications should minimize the amount of internet traffic, which users might request because they are on a metered network or a limited data plan.

Specifies whether applications should minimize the amount of internet traffic, which users might request because they are on a metered network or a limited data plan.

If the platform does not report this preference, this property defaults to false.

Attributes

Since

24

Specifies whether applications should minimize the amount of non-essential animations, reducing discomfort for users who experience motion sickness or vertigo.

Specifies whether applications should minimize the amount of non-essential animations, reducing discomfort for users who experience motion sickness or vertigo.

If the platform does not report this preference, this property defaults to false.

Attributes

Since

24

Specifies whether applications should minimize the amount of transparent or translucent layer effects, which can help to increase contrast and readability for some users.

Specifies whether applications should minimize the amount of transparent or translucent layer effects, which can help to increase contrast and readability for some users.

If the platform does not report this preference, this property defaults to false.

Attributes

Since

24

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: Preferences

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes