From 52a9a2f0188ab9742a8bac1ea37c546569a0be2f Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Mon, 15 Jul 2019 11:32:58 +0200 Subject: [PATCH] starting with blank css --- .../ui/FxApplicationComponent.java | 1 + main/ui/src/main/resources/css/theme.css | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 main/ui/src/main/resources/css/theme.css diff --git a/main/ui/src/main/java/org/cryptomator/ui/FxApplicationComponent.java b/main/ui/src/main/java/org/cryptomator/ui/FxApplicationComponent.java index ac000565c..165b143ea 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/FxApplicationComponent.java +++ b/main/ui/src/main/java/org/cryptomator/ui/FxApplicationComponent.java @@ -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(); }); } diff --git a/main/ui/src/main/resources/css/theme.css b/main/ui/src/main/resources/css/theme.css new file mode 100644 index 000000000..1743598b8 --- /dev/null +++ b/main/ui/src/main/resources/css/theme.css @@ -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; +} \ No newline at end of file