Class WindowStyler

java.lang.Object
it.univr.wordautomata.stylings.WindowStyler

public class WindowStyler extends Object
The WindowStyler class provides methods to set the styling and theme of a JavaFX Stage window.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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