Explorar o código

added disabled checkbox styling [ci skip]

Tobias Hagemann %!s(int64=5) %!d(string=hai) anos
pai
achega
b36c5fa60f

+ 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;