added menu item disabled state styling

This commit is contained in:
Tobias Hagemann
2019-09-04 16:01:50 +02:00
parent 1089497c08
commit 31bad3191d
2 changed files with 16 additions and 0 deletions

View File

@@ -677,6 +677,10 @@
-fx-background-insets: 0, 0 1px 0 1px;
}
.menu-item:disabled {
-fx-background-color: transparent;
}
.menu-item > .left-container {
-fx-padding: 0.5em 0.25em 0.5em 0.5em;
}
@@ -685,6 +689,10 @@
-fx-padding: 1px 0.5em 1px 0.5em;
}
.menu-item:disabled > .label {
-fx-text-fill: TEXT_FILL_SECONDARY;
}
.radio-menu-item:checked > .left-container > .radio {
-fx-background-color: TEXT_FILL;
-fx-shape: "M-1,4, L-1,5.5 L3.5,8.5 L9,0 L9,-1 L7,-1 L3,6 L1,4 Z";

View File

@@ -677,6 +677,10 @@
-fx-background-insets: 0, 0 1px 0 1px;
}
.menu-item:disabled {
-fx-background-color: transparent;
}
.menu-item > .left-container {
-fx-padding: 0.5em 0.25em 0.5em 0.5em;
}
@@ -685,6 +689,10 @@
-fx-padding: 1px 0.5em 1px 0.5em;
}
.menu-item:disabled > .label {
-fx-text-fill: TEXT_FILL_SECONDARY;
}
.radio-menu-item:checked > .left-container > .radio {
-fx-background-color: TEXT_FILL;
-fx-shape: "M-1,4, L-1,5.5 L3.5,8.5 L9,0 L9,-1 L7,-1 L3,6 L1,4 Z";