refactor: remove old taskpanel styles

This commit is contained in:
Alfredo Monclus
2025-01-28 05:21:34 -03:00
parent de9bd5e1ce
commit f19235330b
30 changed files with 0 additions and 726 deletions

View File

@@ -850,18 +850,10 @@ SET(qsintActionPanel_SRCS
QSint/actionpanel/actionpanel.h
QSint/actionpanel/actionpanelscheme.cpp
QSint/actionpanel/actionpanelscheme.h
QSint/actionpanel/androidpanelscheme.cpp
QSint/actionpanel/androidpanelscheme.h
QSint/actionpanel/macpanelscheme.cpp
QSint/actionpanel/macpanelscheme.h
QSint/actionpanel/taskgroup_p.cpp
QSint/actionpanel/taskgroup_p.h
QSint/actionpanel/taskheader_p.cpp
QSint/actionpanel/taskheader_p.h
QSint/actionpanel/winvistapanelscheme.cpp
QSint/actionpanel/winvistapanelscheme.h
QSint/actionpanel/winxppanelscheme.cpp
QSint/actionpanel/winxppanelscheme.h
QSint/actionpanel/freecadscheme.cpp
QSint/actionpanel/freecadscheme.h
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,82 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#include "androidpanelscheme.h"
namespace QSint
{
const char* ActionPanelAndroidStyle =
"QFrame[class='panel'] {"
"background-color: #424242;"
"color: #ffffff;"
"font-size: 10px;"
"}"
"QSint--ActionGroup QFrame[class='header'] {"
"background-color: #171717;"
"border-top: 1px solid white;"
"border-bottom: 1px solid white;"
"color: #ffffff;"
"}"
"QSint--ActionGroup QToolButton[class='header'] {"
"text-align: left;"
"color: #ffffff;"
"background-color: transparent;"
"border: 1px solid transparent;"
"font-size: 14px;"
"}"
"QSint--ActionGroup QFrame[class='content'] {"
"background-color: #171717;"
"}"
"QSint--ActionGroup QToolButton[class='action'] {"
"background-color: transparent;"
"border: 1px solid transparent;"
"color: #ffffff;"
"text-align: left;"
"font-size: 14px;"
"min-height: 32px;"
"}"
"QSint--ActionGroup QToolButton[class='action']:!enabled {"
"color: #666666;"
"}"
"QSint--ActionGroup QToolButton[class='action']:focus {"
"border: 1px dotted black;"
"}"
"QSint--ActionGroup QToolButton[class='action']:on {"
"background-color: #ddeeff;"
"color: #006600;"
"}"
;
AndroidPanelScheme::AndroidPanelScheme() : ActionPanelScheme()
{
headerSize = 40;
headerButtonFold = QPixmap(":/android/Fold.png");
headerButtonFoldOver = QPixmap(":/android/FoldOver.png");
headerButtonUnfold = QPixmap(":/android/Unfold.png");
headerButtonUnfoldOver = QPixmap(":/android/UnfoldOver.png");
headerButtonSize = QSize(33,33);
actionStyle = QString(ActionPanelAndroidStyle);
}
}

View File

@@ -1,40 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#ifndef ANDROIDPANELSCHEME_H
#define ANDROIDPANELSCHEME_H
#include "actionpanelscheme.h"
namespace QSint
{
/**
\brief Android-like color scheme for ActionPanel and ActionGroup.
\since 0.2.1
\image html ActionPanel5.png Example of the scheme
*/
class QSINT_EXPORT AndroidPanelScheme : public ActionPanelScheme
{
public:
AndroidPanelScheme();
static ActionPanelScheme* defaultScheme()
{
static AndroidPanelScheme scheme;
return &scheme;
}
};
}
#endif // ANDROIDPANELSCHEME_H

View File

@@ -21,9 +21,6 @@
***************************************************************************/
#include "freecadscheme.h"
#include "macpanelscheme.h"
#include "winvistapanelscheme.h"
#include "winxppanelscheme.h"
#include <QApplication>
#include <QImage>
@@ -35,83 +32,6 @@
namespace QSint
{
const char* ActionPanelFreeCAD =
"QFrame[class='panel'] {"
"background-color:qlineargradient(x1:1, y1:0.3, x2:1, y2:0, stop:0 rgb(51,51,101), stop:1 rgb(171,171,193));"
"}"
"QSint--ActionGroup QFrame[class='header'] {"
"border: 1px solid #ffffff;"
"border-top-left-radius: 4px;"
"border-top-right-radius: 4px;"
"background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffffff, stop: 1 #c6d3f7);"
"}"
"QSint--ActionGroup QToolButton[class='header'] {"
"text-align: left;"
"color: #215dc6;"
"background-color: transparent;"
"border: 1px solid transparent;"
"font-weight: bold;"
"}"
"QSint--ActionGroup QToolButton[class='header']:hover {"
"color: #428eff;"
"}"
"QSint--ActionGroup QFrame[class='content'] {"
"background-color: #d6dff7;"
"border: 1px solid #ffffff;"
"}"
"QSint--ActionGroup QFrame[class='content'][header='true'] {"
"border-top: none;"
"}"
"QSint--ActionGroup QToolButton[class='action'] {"
"background-color: transparent;"
"border: 1px solid transparent;"
"color: #215dc6;"
"text-align: left;"
"}"
"QSint--ActionGroup QToolButton[class='action']:!enabled {"
"color: #999999;"
"}"
"QSint--ActionGroup QToolButton[class='action']:hover {"
"color: #428eff;"
"text-decoration: underline;"
"}"
"QSint--ActionGroup QToolButton[class='action']:focus {"
"border: 1px dotted black;"
"}"
"QSint--ActionGroup QToolButton[class='action']:on {"
"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 =
"QSint--ActionGroup QToolButton[class='header'] {"
@@ -134,23 +54,9 @@ const char* MinimumActionPanelFreeCAD =
FreeCADPanelScheme::FreeCADPanelScheme() : ActionPanelScheme()
{
#if defined(Q_OS_WIN32)
ActionPanelScheme* panelStyle = WinXPPanelScheme2::defaultScheme();
actionStyle = QString(ActionPanelFreeCAD);
#elif defined(Q_OS_MACOS)
ActionPanelScheme* panelStyle = MacPanelScheme::defaultScheme();
actionStyle = panelStyle->actionStyle;
#elif defined(Q_OS_LINUX)
ActionPanelScheme* panelStyle = SystemPanelScheme::defaultScheme();
actionStyle = panelStyle->actionStyle;
#else
ActionPanelScheme* panelStyle = ActionPanelScheme::defaultScheme();
actionStyle = panelStyle->actionStyle;
#endif
builtinScheme = actionStyle;
minimumStyle = QString(MinimumActionPanelFreeCAD);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 685 B

View File

@@ -1,73 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#include "macpanelscheme.h"
namespace QSint
{
const char* MacPanelStyle =
"QFrame[class='panel'] {"
"background-color: #D9DEE5;"
"border: 1px solid #BBBBBB;"
"}"
"QSint--ActionGroup QFrame[class='header'] {"
"border: none;"
"}"
"QSint--ActionGroup QToolButton[class='header'] {"
"text-align: left;"
"color: #828CA8;"
"background-color: transparent;"
"font-weight: bold;"
"}"
"QSint--ActionGroup QFrame[class='content'] {"
"background-color: #D9DEE5;"
"margin-left: 12px;"
"}"
"QSint--ActionGroup QToolButton[class='action'] {"
"color: #000000;"
"text-align: left;"
"background-color: transparent;"
"border: 1px solid transparent;"
"}"
"QSint--ActionGroup QToolButton[class='action']:!enabled {"
"color: #ffffff;"
"}"
"QSint--ActionGroup QToolButton[class='action']:focus {"
"border: 1px solid #1E6CBB;"
"background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6FA6DE, stop: 1 #1E6CBB);"
"color: #ffffff;"
"}"
"QSint--ActionGroup QToolButton[class='action']:on {"
"background-color: #ddeeff;"
"color: #006600;"
"}"
;
MacPanelScheme::MacPanelScheme() : ActionPanelScheme()
{
actionStyle = QString(MacPanelStyle);
headerButtonFold = QPixmap();
headerButtonFoldOver = QPixmap(":/mac/FoldOver.png");
headerButtonUnfold = QPixmap();
headerButtonUnfoldOver = QPixmap(":/mac/UnfoldOver.png");
headerButtonSize = QSize(30,16);
}
}

View File

@@ -1,39 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#ifndef MACPANELSCHEME_H
#define MACPANELSCHEME_H
#include "actionpanelscheme.h"
namespace QSint
{
/**
\brief MacOS-like color scheme for ActionPanel and ActionGroup.
\since 0.2
\image html ActionPanel6.png Example of the scheme
*/
class QSINT_EXPORT MacPanelScheme : public ActionPanelScheme
{
public:
explicit MacPanelScheme();
static ActionPanelScheme* defaultScheme()
{
static MacPanelScheme scheme;
return &scheme;
}
};
}
#endif // MACPANELSCHEME_H

View File

@@ -4,23 +4,5 @@
<file>default/FoldOver.png</file>
<file>default/Unfold.png</file>
<file>default/UnfoldOver.png</file>
<file>xp/Fold_Blue1.png</file>
<file>xp/Fold_Blue2.png</file>
<file>xp/FoldOver_Blue1.png</file>
<file>xp/FoldOver_Blue2.png</file>
<file>xp/Unfold_Blue1.png</file>
<file>xp/Unfold_Blue2.png</file>
<file>xp/UnfoldOver_Blue1.png</file>
<file>xp/UnfoldOver_Blue2.png</file>
<file>vista/Fold.png</file>
<file>vista/FoldOver.png</file>
<file>vista/Unfold.png</file>
<file>vista/UnfoldOver.png</file>
<file>mac/FoldOver.png</file>
<file>mac/UnfoldOver.png</file>
<file>android/Fold.png</file>
<file>android/Unfold.png</file>
<file>android/FoldOver.png</file>
<file>android/UnfoldOver.png</file>
</qresource>
</RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 747 B

View File

@@ -1,93 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#include "winvistapanelscheme.h"
namespace QSint
{
const char* ActionPanelWinVistaStyle =
"QFrame[class='panel'] {"
"background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #416FA6, stop: 1 #6BB86E);"
"}"
"QSint--ActionGroup QFrame[class='header'] {"
"background: transparent;"
"border: 1px solid transparent;"
"}"
"QSint--ActionGroup QFrame[class='header']:hover {"
"background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(249,253,255,100), stop: 0.5 rgba(234,247,255,20), stop: 1 rgba(249,253,255,100));"
"border: 1px solid transparent;"
"}"
"QSint--ActionGroup QToolButton[class='header'] {"
"text-align: left;"
"color: #ffffff;"
"background-color: transparent;"
"border: 1px solid transparent;"
"font-size: 12px;"
"}"
"QSint--ActionGroup QFrame[class='content'] {"
"background-color: transparent;"
"color: #ffffff;"
"}"
"QSint--ActionGroup QToolButton[class='action'] {"
"background-color: transparent;"
"border: 1px solid transparent;"
"color: #ffffff;"
"text-align: left;"
"}"
"QSint--ActionGroup QToolButton[class='action']:!enabled {"
"color: #666666;"
"}"
"QSint--ActionGroup QToolButton[class='action']:hover {"
"color: #DAF2FC;"
"text-decoration: underline;"
"}"
"QSint--ActionGroup QToolButton[class='action']:focus {"
"border: 1px dotted black;"
"}"
"QSint--ActionGroup QToolButton[class='action']:on {"
"background-color: #ddeeff;"
"color: #006600;"
"}"
;
WinVistaPanelScheme::WinVistaPanelScheme() : ActionPanelScheme()
{
headerSize = 25;
headerAnimation = false;
//headerLabelScheme.iconSize = 22;
headerButtonFold = QPixmap(":/vista/Fold.png");
headerButtonFoldOver = QPixmap(":/vista/FoldOver.png");
headerButtonUnfold = QPixmap(":/vista/Unfold.png");
headerButtonUnfoldOver = QPixmap(":/vista/UnfoldOver.png");
headerButtonSize = QSize(17,17);
groupFoldSteps = 20; groupFoldDelay = 15;
groupFoldThaw = true;
groupFoldEffect = SlideFolding;
actionStyle = QString(ActionPanelWinVistaStyle);
}
}

View File

@@ -1,41 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#ifndef WINVISTAPANELSCHEME_H
#define WINVISTAPANELSCHEME_H
#include "actionpanelscheme.h"
namespace QSint
{
/**
\brief Windows Vista-like color scheme for ActionPanel and ActionGroup.
\since 0.2
\image html ActionPanel4.png Example of the scheme
*/
class QSINT_EXPORT WinVistaPanelScheme : public ActionPanelScheme
{
public:
WinVistaPanelScheme();
static ActionPanelScheme* defaultScheme()
{
static WinVistaPanelScheme scheme;
return &scheme;
}
};
}
#endif // WINVISTAPANELSCHEME_H

View File

@@ -1,177 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#include "winxppanelscheme.h"
namespace QSint
{
const char* ActionPanelWinXPBlueStyle1 =
"QFrame[class='panel'] {"
"background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #7ba2e7, stop: 1 #6375d6);"
"}"
"QSint--ActionGroup QFrame[class='header'] {"
"background-color: #225aca;"
"border: 1px solid #225aca;"
"border-top-left-radius: 4px;"
"border-top-right-radius: 4px;"
"}"
"QSint--ActionGroup QToolButton[class='header'] {"
"text-align: left;"
"color: #ffffff;"
"background-color: transparent;"
"border: 1px solid transparent;"
"font-weight: bold;"
"}"
"QSint--ActionGroup QToolButton[class='header']:hover {"
"color: #428eff;"
"}"
"QSint--ActionGroup QFrame[class='content'] {"
"background-color: #eff3ff;"
"border: 1px solid #ffffff;"
"}"
"QSint--ActionGroup QFrame[class='content'][header='true'] {"
"border-top: none;"
"}"
"QSint--ActionGroup QToolButton[class='action'] {"
"background-color: transparent;"
"border: 1px solid transparent;"
"color: #215dc6;"
"text-align: left;"
"}"
"QSint--ActionGroup QToolButton[class='action']:!enabled {"
"color: #999999;"
"}"
"QSint--ActionGroup QToolButton[class='action']:hover {"
"color: #428eff;"
"}"
"QSint--ActionGroup QToolButton[class='action']:focus {"
"border: 1px dotted black;"
"}"
"QSint--ActionGroup QToolButton[class='action']:on {"
"background-color: #ddeeff;"
"color: #006600;"
"}"
;
const char* ActionPanelWinXPBlueStyle2 =
"QFrame[class='panel'] {"
"background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #7ba2e7, stop: 1 #6375d6);"
"}"
"QSint--ActionGroup QFrame[class='header'] {"
"border: 1px solid #ffffff;"
"border-top-left-radius: 4px;"
"border-top-right-radius: 4px;"
"background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #ffffff, stop: 1 #c6d3f7);"
"}"
"QSint--ActionGroup QToolButton[class='header'] {"
"text-align: left;"
"color: #215dc6;"
"background-color: transparent;"
"border: 1px solid transparent;"
"font-weight: bold;"
"}"
"QSint--ActionGroup QToolButton[class='header']:hover {"
"color: #428eff;"
"}"
"QSint--ActionGroup QFrame[class='content'] {"
"background-color: #d6dff7;"
"border: 1px solid #ffffff;"
"}"
"QSint--ActionGroup QFrame[class='content'][header='true'] {"
"border-top: none;"
"}"
"QSint--ActionGroup QToolButton[class='action'] {"
"background-color: transparent;"
"border: 1px solid transparent;"
"color: #215dc6;"
"text-align: left;"
"}"
"QSint--ActionGroup QToolButton[class='action']:!enabled {"
"color: #999999;"
"}"
"QSint--ActionGroup QToolButton[class='action']:hover {"
"color: #428eff;"
"}"
"QSint--ActionGroup QToolButton[class='action']:focus {"
"border: 1px dotted black;"
"}"
"QSint--ActionGroup QToolButton[class='action']:on {"
"background-color: #ddeeff;"
"color: #006600;"
"}"
;
WinXPPanelScheme::WinXPPanelScheme() : ActionPanelScheme()
{
headerSize = 25;
headerAnimation = false;
//headerLabelScheme.iconSize = 22;
headerButtonFold = QPixmap(":/xp/Fold_Blue1.png");
headerButtonFoldOver = QPixmap(":/xp/FoldOver_Blue1.png");
headerButtonUnfold = QPixmap(":/xp/Unfold_Blue1.png");
headerButtonUnfoldOver = QPixmap(":/xp/UnfoldOver_Blue1.png");
headerButtonSize = QSize(17,17);
groupFoldSteps = 20; groupFoldDelay = 15;
groupFoldThaw = true;
groupFoldEffect = SlideFolding;
actionStyle = QString(ActionPanelWinXPBlueStyle1);
}
WinXPPanelScheme2::WinXPPanelScheme2() : ActionPanelScheme()
{
headerSize = 25;
headerAnimation = false;
// headerLabelScheme.iconSize = 22;
headerButtonFold = QPixmap(":/xp/Fold_Blue2.png");
headerButtonFoldOver = QPixmap(":/xp/FoldOver_Blue2.png");
headerButtonUnfold = QPixmap(":/xp/Unfold_Blue2.png");
headerButtonUnfoldOver = QPixmap(":/xp/UnfoldOver_Blue2.png");
headerButtonSize = QSize(17,17);
groupFoldSteps = 20; groupFoldDelay = 15;
groupFoldThaw = true;
groupFoldEffect = SlideFolding;
actionStyle = QString(ActionPanelWinXPBlueStyle2);
}
}

View File

@@ -1,57 +0,0 @@
/***************************************************************************
* *
* Copyright: https://code.google.com/p/qsint/ *
* License: LGPL *
* *
***************************************************************************/
#ifndef WinXPPanelScheme_H
#define WinXPPanelScheme_H
#include "actionpanelscheme.h"
namespace QSint
{
/**
\brief WindowsXP-like blue color scheme for ActionPanel and ActionGroup.
\since 0.2
\image html ActionPanel2.png Example of the scheme
*/
class QSINT_EXPORT WinXPPanelScheme : public ActionPanelScheme
{
public:
WinXPPanelScheme();
static ActionPanelScheme* defaultScheme()
{
static WinXPPanelScheme scheme;
return &scheme;
}
};
/**
\brief WindowsXP-like blue color scheme for ActionPanel and ActionGroup (variation 2).
\since 0.2
\image html ActionPanel3.png Example of the scheme
*/
class QSINT_EXPORT WinXPPanelScheme2 : public ActionPanelScheme
{
public:
WinXPPanelScheme2();
static ActionPanelScheme* defaultScheme()
{
static WinXPPanelScheme2 scheme;
return &scheme;
}
};
}
#endif // WinXPPanelScheme_H

Binary file not shown.

Before

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 682 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 690 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 779 B

View File

@@ -3,7 +3,3 @@
#include "../actionpanel/actiongroup.h"
#include "../actionpanel/actionpanel.h"
#include "../actionpanel/actionpanelscheme.h"
#include "../actionpanel/winxppanelscheme.h"
#include "../actionpanel/winvistapanelscheme.h"
#include "../actionpanel/macpanelscheme.h"
#include "../actionpanel/androidpanelscheme.h"