瀏覽代碼

added disabled checkbox styling [ci skip]

Tobias Hagemann 5 年之前
父節點
當前提交
b36c5fa60f
共有 2 個文件被更改,包括 16 次插入0 次删除
  1. 8 0
      main/ui/src/main/resources/css/dark_theme.css
  2. 8 0
      main/ui/src/main/resources/css/light_theme.css

+ 8 - 0
main/ui/src/main/resources/css/dark_theme.css

@@ -549,6 +549,10 @@
 	-fx-padding: 4px 0 4px 0;
 }
 
+.check-box:disabled {
+	-fx-text-fill: TEXT_FILL_SECONDARY;
+}
+
 .check-box > .box {
 	-fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
 	-fx-background-insets: 0, 1px;
@@ -560,6 +564,10 @@
 	-fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
 }
 
+.check-box:disabled > .box {
+	-fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
+}
+
 .check-box > .box > .mark {
 	-fx-background-color: transparent;
 	-fx-padding: 0.4em;

+ 8 - 0
main/ui/src/main/resources/css/light_theme.css

@@ -549,6 +549,10 @@
 	-fx-padding: 4px 0 4px 0;
 }
 
+.check-box:disabled {
+	-fx-text-fill: TEXT_FILL_SECONDARY;
+}
+
 .check-box > .box {
 	-fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
 	-fx-background-insets: 0, 1px;
@@ -560,6 +564,10 @@
 	-fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
 }
 
+.check-box:disabled > .box {
+	-fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
+}
+
 .check-box > .box > .mark {
 	-fx-background-color: transparent;
 	-fx-padding: 0.4em;