Commits

Aleš Erjavec  committed 31e4030

Added a linear gradient to the category buttons in the toolbar.

  • Participants
  • Parent commits 41b9833

Comments (0)

Files changed (1)

File Orange/OrangeCanvas/application/canvastooldock.py

 from ..gui.quickhelp import QuickHelp
 from ..gui.framelesswindow import FramelessWindow
 from ..document.quickmenu import MenuPage
+from ..document.quickmenu import create_css_gradient
 from .widgettoolbox import WidgetToolBox, iter_item
 
 from ..registry.qt import QtWidgetRegistry
         button.setProperty("quick-category-toolbutton", True)
 
         style_sheet = ("QToolButton {\n"
-                       "    background-color: %s;\n"
+                       "    background: %s;\n"
                        "    border: none;\n"
-                       "    border-bottom: 1px solid palette(dark);\n"
+                       "    border-bottom: 1px solid palette(mid);\n"
                        "}")
-        button.setStyleSheet(style_sheet % brush.color().name())
+        button.setStyleSheet(style_sheet % create_css_gradient(brush.color()))
 
         return button