+ set a minimalistic style sheet on task panel
This commit is contained in:
parent
5273c47c1b
commit
2ce0fac098
|
@ -82,6 +82,7 @@ const char* ActionPanelFreeCAD =
|
||||||
|
|
||||||
"QSint--ActionGroup QToolButton[class='action']:hover {"
|
"QSint--ActionGroup QToolButton[class='action']:hover {"
|
||||||
"color: #428eff;"
|
"color: #428eff;"
|
||||||
|
"text-decoration: underline;"
|
||||||
"}"
|
"}"
|
||||||
|
|
||||||
"QSint--ActionGroup QToolButton[class='action']:focus {"
|
"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()
|
FreeCADPanelScheme::FreeCADPanelScheme() : ActionPanelScheme()
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN32)
|
#if defined(Q_OS_WIN32)
|
||||||
|
@ -115,6 +136,7 @@ FreeCADPanelScheme::FreeCADPanelScheme() : ActionPanelScheme()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
builtinScheme = actionStyle;
|
builtinScheme = actionStyle;
|
||||||
|
minimumStyle = QString(MinimumActionPanelFreeCAD);
|
||||||
|
|
||||||
headerSize = panelStyle->headerSize;
|
headerSize = panelStyle->headerSize;
|
||||||
headerAnimation = panelStyle->headerAnimation;
|
headerAnimation = panelStyle->headerAnimation;
|
||||||
|
@ -143,7 +165,7 @@ void FreeCADPanelScheme::clearActionStyle()
|
||||||
headerButtonUnfold = QPixmap();
|
headerButtonUnfold = QPixmap();
|
||||||
headerButtonUnfoldOver = QPixmap();
|
headerButtonUnfoldOver = QPixmap();
|
||||||
|
|
||||||
actionStyle.clear();
|
actionStyle = minimumStyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FreeCADPanelScheme::restoreActionStyle()
|
void FreeCADPanelScheme::restoreActionStyle()
|
||||||
|
@ -284,6 +306,7 @@ QString SystemPanelScheme::systemStyle(const QPalette& p) const
|
||||||
|
|
||||||
"QSint--ActionGroup QToolButton[class='action']:hover {"
|
"QSint--ActionGroup QToolButton[class='action']:hover {"
|
||||||
"color: %10;"
|
"color: %10;"
|
||||||
|
"text-decoration: underline;"
|
||||||
"}"
|
"}"
|
||||||
|
|
||||||
"QSint--ActionGroup QToolButton[class='action']:focus {"
|
"QSint--ActionGroup QToolButton[class='action']:focus {"
|
||||||
|
|
|
@ -47,6 +47,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString builtinScheme;
|
QString builtinScheme;
|
||||||
|
QString minimumStyle;
|
||||||
QPixmap builtinFold;
|
QPixmap builtinFold;
|
||||||
QPixmap builtinFoldOver;
|
QPixmap builtinFoldOver;
|
||||||
QPixmap builtinUnfold;
|
QPixmap builtinUnfold;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user