Search in sources :

Example 1 with SkinManager

use of com.kyj.fx.voeditor.visual.momory.SkinManager in project Gargoyle by callakrsos.

the class SkinConfigView method applyStyling.

private void applyStyling(String selectedItem) {
    SkinManager instance = SkinManager.getInstance();
    if (instance.existSkinFullPath(selectedItem)) {
        Stage stage = (Stage) this.getScene().getWindow();
        ObservableList<String> stylesheets = stage.getScene().getStylesheets();
        stylesheets.clear();
        instance.registSkinFullPathn(selectedItem);
        instance.resetSkin();
    }
}
Also used : Stage(javafx.stage.Stage) SkinManager(com.kyj.fx.voeditor.visual.momory.SkinManager)

Aggregations

SkinManager (com.kyj.fx.voeditor.visual.momory.SkinManager)1 Stage (javafx.stage.Stage)1