From 360d1336b8ae4f9cefc173399edcb0bbe1b5f61e Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 31 Jul 2022 16:16:31 +0200 Subject: [PATCH] - fixes #6102 - the point is that we don't set any style for the group boxes, therefore the Windows style is applied as nothing was set yet. The default Windows style is the color #dddddd which is hardly visible on our blue default style. as solution set an explicit color. --- src/Gui/QSint/actionpanel/actionpanelscheme.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Gui/QSint/actionpanel/actionpanelscheme.cpp b/src/Gui/QSint/actionpanel/actionpanelscheme.cpp index cd84243c99..4ace47d0ad 100644 --- a/src/Gui/QSint/actionpanel/actionpanelscheme.cpp +++ b/src/Gui/QSint/actionpanel/actionpanelscheme.cpp @@ -89,6 +89,22 @@ const char* ActionPanelDefaultStyle = "background-color: #ddeeff;" "color: #006600;" "}" + + // set a QGroupBox to avoid that the OS styles it, see + // https://github.com/FreeCAD/FreeCAD/issues/6102 + // the px values are taken from Behave-dark.qss, except the padding + "QSint--ActionGroup QFrame[class='content'] QGroupBox {" + "border: 1px solid #bbbbbb;" + "border-radius: 3px;" + "margin-top: 10px;" + "padding: 2px;" + "}" + // since we set a custom frame we also need to set the title + "QSint--ActionGroup QFrame[class='content'] QGroupBox::title {" + "padding-left: 3px;" + "top: -6px;" + "left: 12px;" + "}" ;