浏览代码

added menu item disabled state styling

Tobias Hagemann 5 年之前
父节点
当前提交
31bad3191d
共有 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

@@ -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";

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

@@ -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";