starting with blank css

This commit is contained in:
Sebastian Stenzel
2019-07-15 11:32:58 +02:00
parent cfea1c16bc
commit 52a9a2f018
2 changed files with 35 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ public interface FxApplicationComponent {
default void start() {
Platform.startup(() -> {
assert Platform.isFxApplicationThread();
Application.setUserAgentStylesheet(getClass().getResource("/css/theme.css").toString());
application().start();
});
}

View File

@@ -0,0 +1,34 @@
/*******************************************************************************
* *
* COLORS *
* *
******************************************************************************/
.root {
WHITE: #FFF;
PRIMARY_BG: #79B01A;
}
/*******************************************************************************
* *
* Main Window *
* *
******************************************************************************/
.main-window .title {
-fx-background-color: PRIMARY_BG;
}
/*******************************************************************************
* *
* Tooltip *
* *
******************************************************************************/
.tooltip {
-fx-background-color: WHITE;
-fx-padding: 0.2em 0.4em 0.2em 0.4em;
-fx-font-size: 0.8em;
}