added disabled styling to choice-box

This commit is contained in:
Tobias Hagemann
2019-11-19 21:52:52 +01:00
parent b445f614fb
commit 687f11596e
2 changed files with 32 additions and 2 deletions

View File

@@ -672,7 +672,6 @@
******************************************************************************/
.choice-box {
-fx-text-fill: TEXT_FILL;
-fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
-fx-background-insets: 0, 1px;
-fx-background-radius: 4px;
@@ -683,6 +682,18 @@
-fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
}
.choice-box:disabled {
-fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
}
.choice-box > .label {
-fx-text-fill: TEXT_FILL;
}
.choice-box:disabled > .label {
-fx-text-fill: TEXT_FILL_SECONDARY;
}
.choice-box > .open-button {
-fx-padding: 0 0 0 0.3em;
}
@@ -694,6 +705,10 @@
-fx-shape: "M 0 0 h 7 l -3.5 4 z";
}
.choice-box:disabled > .open-button > .arrow {
-fx-background-color: transparent, TEXT_FILL_SECONDARY;
}
.choice-box .context-menu {
-fx-translate-x: -1.4em;
}

View File

@@ -672,7 +672,6 @@
******************************************************************************/
.choice-box {
-fx-text-fill: TEXT_FILL;
-fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
-fx-background-insets: 0, 1px;
-fx-background-radius: 4px;
@@ -683,6 +682,18 @@
-fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
}
.choice-box:disabled {
-fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
}
.choice-box > .label {
-fx-text-fill: TEXT_FILL;
}
.choice-box:disabled > .label {
-fx-text-fill: TEXT_FILL_SECONDARY;
}
.choice-box > .open-button {
-fx-padding: 0 0 0 0.3em;
}
@@ -694,6 +705,10 @@
-fx-shape: "M 0 0 h 7 l -3.5 4 z";
}
.choice-box:disabled > .open-button > .arrow {
-fx-background-color: transparent, TEXT_FILL_SECONDARY;
}
.choice-box .context-menu {
-fx-translate-x: -1.4em;
}