diff --git a/src/Gui/QSint/actionpanel/freecadscheme.cpp b/src/Gui/QSint/actionpanel/freecadscheme.cpp index ce6959e9e..7c987bbf1 100644 --- a/src/Gui/QSint/actionpanel/freecadscheme.cpp +++ b/src/Gui/QSint/actionpanel/freecadscheme.cpp @@ -82,6 +82,7 @@ const char* ActionPanelFreeCAD = "QSint--ActionGroup QToolButton[class='action']:hover {" "color: #428eff;" + "text-decoration: underline;" "}" "QSint--ActionGroup QToolButton[class='action']:focus {" @@ -94,6 +95,26 @@ const char* ActionPanelFreeCAD = "}" ; +const char* MinimumActionPanelFreeCAD = + + "QSint--ActionGroup QToolButton[class='header'] {" + "text-align: left;" + "background-color: transparent;" + "border: 1px solid transparent;" + "font-weight: bold;" + "}" + + "QSint--ActionGroup QToolButton[class='action'] {" + "background-color: transparent;" + "border: 1px solid transparent;" + "text-align: left;" + "}" + + "QSint--ActionGroup QToolButton[class='action']:hover {" + "text-decoration: underline;" + "}" + ; + FreeCADPanelScheme::FreeCADPanelScheme() : ActionPanelScheme() { #if defined(Q_OS_WIN32) @@ -115,6 +136,7 @@ FreeCADPanelScheme::FreeCADPanelScheme() : ActionPanelScheme() #endif builtinScheme = actionStyle; + minimumStyle = QString(MinimumActionPanelFreeCAD); headerSize = panelStyle->headerSize; headerAnimation = panelStyle->headerAnimation; @@ -143,7 +165,7 @@ void FreeCADPanelScheme::clearActionStyle() headerButtonUnfold = QPixmap(); headerButtonUnfoldOver = QPixmap(); - actionStyle.clear(); + actionStyle = minimumStyle; } void FreeCADPanelScheme::restoreActionStyle() @@ -284,6 +306,7 @@ QString SystemPanelScheme::systemStyle(const QPalette& p) const "QSint--ActionGroup QToolButton[class='action']:hover {" "color: %10;" + "text-decoration: underline;" "}" "QSint--ActionGroup QToolButton[class='action']:focus {" diff --git a/src/Gui/QSint/actionpanel/freecadscheme.h b/src/Gui/QSint/actionpanel/freecadscheme.h index 713940233..fedf5afe3 100644 --- a/src/Gui/QSint/actionpanel/freecadscheme.h +++ b/src/Gui/QSint/actionpanel/freecadscheme.h @@ -47,6 +47,7 @@ public: private: QString builtinScheme; + QString minimumStyle; QPixmap builtinFold; QPixmap builtinFoldOver; QPixmap builtinUnfold;