diff --git a/src/Gui/Stylesheets/FreeCAD.qss b/src/Gui/Stylesheets/FreeCAD.qss index 7ffc72cef9..593b8fd498 100644 --- a/src/Gui/Stylesheets/FreeCAD.qss +++ b/src/Gui/Stylesheets/FreeCAD.qss @@ -1306,10 +1306,28 @@ QToolButton:hover { background-color: @GeneralBackgroundHoverColor; } +/* + * Hover state: Add a visible border to create the frame effect. + * This rule is more specific than the theme's general QToolButton:hover, so it will apply only to + * toolbar buttons. + */ +QToolBar QToolButton:hover { + border: 1px solid @ButtonBorderColor; +} + QToolButton:pressed { background-color: @GeneralBackgroundHoverColor; } +/* + * Pressed state: Add an "inset" border style and gradient to create the "pushed in" look. + */ +QToolBar QToolButton:hover:pressed { + border: 1px solid @ButtonBorderColor; + border-style: inset; + background-color: @PrimaryColorDarken2; +} + QToolButton:selected { border: 1px solid @GeneralBackgroundHoverColor; }