[Gui] QSint: missing piece to fix QGroupBox visibility

- also the freecadscheme must be adapted (e.g. for PartDesign dialogs)
- fixes now #6102 completely
This commit is contained in:
Uwe
2022-08-03 01:05:37 +02:00
parent 6b17e7561d
commit 8a114eb798
2 changed files with 17 additions and 1 deletions

View File

@@ -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 {"

View File

@@ -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 =