Commits

Marko Toplak committed 45f4ddd Draft

The toolbar now highlightes the selected button.x

  • Participants
  • Parent commits 392fdb5

Comments (0)

Files changed (2)

File Orange/OrangeCanvas/gui/toolgrid.py

     def __setupUi(self):
         layout = QGridLayout()
         layout.setContentsMargins(0, 0, 0, 8)
-        layout.setSpacing(2)
+        layout.setSpacing(0)
         layout.setSizeConstraint(QGridLayout.SetFixedSize)
         self.setLayout(layout)
         self.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.MinimumExpanding)

File Orange/OrangeCanvas/styles/orange.qss

     /* border-bottom: 2px solid #B5B8B8;
     border-right: 2px solid #B5B8B8; */
     background-color: #F2F2F2;
+	border-radius: 8px;
 }
 
 
     background-color: palette(window);
 }
 
+WidgetToolBox  ToolGrid QToolButton:hover {
+    background-color: palette(dark);
+}
+
 WidgetToolBox  ToolGrid QToolButton:pressed {
     background-color: palette(dark);
 }