]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
dark-mode: improve contrast on split buttons
authorStefan Sterz <s.sterz@proxmox.com>
Thu, 23 Mar 2023 15:26:52 +0000 (16:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Mar 2023 16:12:12 +0000 (17:12 +0100)
this improves the contrast of the little triangle in split buttons,
making it stand out more especially when focused.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
src/proxmox-dark/scss/extjs/form/_button.scss

index bf021353038d77b6229edc8c6041eb4056a08f0b..e48eccc9eeb02b33138f9773eb6a958227754122 100644 (file)
     color: $neutral-button-icon-color;
   }
 
+  // the little arrow in certain toolbar buttons with dropdowns
+  .x-btn-wrap-default-toolbar-small.x-btn-arrow-right::after,
+  .x-btn-wrap-default-toolbar-small.x-btn-split-right::after {
+    filter: brightness(150%);
+  }
+
   &.x-btn-over,
   .x-keyboard-mode &.x-btn-focus {
     background-color: $neutral-button-color-alt;
     border-color: $neutral-button-color-alt;
-
-    // the little arrow in certain toolbar buttons with dropdowns
-    .x-btn-wrap-default-toolbar-small.x-btn-arrow-right::after,
-    .x-btn-wrap-default-toolbar-small.x-btn-split-right::after {
-      filter: invert($icon-brightness);
-    }
   }
 
   &.x-btn.x-btn-disabled {