瀏覽代碼

starting with blank css

Sebastian Stenzel 6 年之前
父節點
當前提交
52a9a2f018

+ 1 - 0
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();
 		});
 	}

+ 34 - 0
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;
+}