Package it.univr.wordautomata.stylings
Class WindowStyler
java.lang.Object
it.univr.wordautomata.stylings.WindowStyler
The WindowStyler class provides methods to set the styling and theme of a JavaFX Stage window.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setDarkMode
(javafx.stage.Stage stage) Sets the dark mode styling for the specified stage.static void
setLightMode
(javafx.stage.Stage stage) Sets the light mode for the specified stage.static void
setTheme
(javafx.stage.Stage stage) Sets the theme of the specified stage based on the current theme selected in the model.
-
Constructor Details
-
WindowStyler
public WindowStyler()
-
-
Method Details
-
setDarkMode
public static void setDarkMode(javafx.stage.Stage stage) Sets the dark mode styling for the specified stage.- Parameters:
stage
- the stage to apply the dark mode styling to
-
setLightMode
public static void setLightMode(javafx.stage.Stage stage) Sets the light mode for the specified stage.- Parameters:
stage
- the stage to set the light mode for
-
setTheme
public static void setTheme(javafx.stage.Stage stage) Sets the theme of the specified stage based on the current theme selected in the model.- Parameters:
stage
- the stage to set the theme for
-