From 8a114eb79852016492dcf4bcef2fd3fd48fb59c4 Mon Sep 17 00:00:00 2001 From: Uwe Date: Wed, 3 Aug 2022 01:05:37 +0200 Subject: [PATCH] [Gui] QSint: missing piece to fix QGroupBox visibility - also the freecadscheme must be adapted (e.g. for PartDesign dialogs) - fixes now #6102 completely --- src/Gui/QSint/actionpanel/actionpanelscheme.cpp | 2 +- src/Gui/QSint/actionpanel/freecadscheme.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Gui/QSint/actionpanel/actionpanelscheme.cpp b/src/Gui/QSint/actionpanel/actionpanelscheme.cpp index 4ace47d0ad..ca75b260cc 100644 --- a/src/Gui/QSint/actionpanel/actionpanelscheme.cpp +++ b/src/Gui/QSint/actionpanel/actionpanelscheme.cpp @@ -90,7 +90,7 @@ const char* ActionPanelDefaultStyle = "color: #006600;" "}" - // set a QGroupBox to avoid that the OS styles it, see + // set a QGroupBox to avoid that the OS style is used, 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 {" diff --git a/src/Gui/QSint/actionpanel/freecadscheme.cpp b/src/Gui/QSint/actionpanel/freecadscheme.cpp index 09e756a060..e9da9e5917 100644 --- a/src/Gui/QSint/actionpanel/freecadscheme.cpp +++ b/src/Gui/QSint/actionpanel/freecadscheme.cpp @@ -93,6 +93,22 @@ const char* ActionPanelFreeCAD = "background-color: #ddeeff;" "color: #006600;" "}" + + // set a QGroupBox to avoid that the OS style is used, 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;" + "}" ; const char* MinimumActionPanelFreeCAD =