2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_THEME_H
|
|
|
|
#define DUST3D_THEME_H
|
2018-03-12 09:41:16 +00:00
|
|
|
#include <QColor>
|
2018-03-14 06:43:16 +00:00
|
|
|
#include <QString>
|
2018-03-26 12:41:46 +00:00
|
|
|
#include <map>
|
2018-08-27 08:50:40 +00:00
|
|
|
#include <QPushButton>
|
|
|
|
#include <QLabel>
|
2019-11-07 12:08:47 +00:00
|
|
|
#include <QCheckBox>
|
2018-04-07 08:44:39 +00:00
|
|
|
#include "QtAwesome.h"
|
2018-03-12 09:41:16 +00:00
|
|
|
|
|
|
|
class Theme
|
|
|
|
{
|
|
|
|
public:
|
2018-03-26 12:41:46 +00:00
|
|
|
static QColor red;
|
|
|
|
static QColor green;
|
|
|
|
static QColor blue;
|
2018-04-01 14:21:47 +00:00
|
|
|
static QColor white;
|
2018-04-09 03:39:04 +00:00
|
|
|
static QColor black;
|
2018-04-18 01:49:23 +00:00
|
|
|
static QColor dark;
|
|
|
|
static QColor altDark;
|
2018-04-26 02:23:22 +00:00
|
|
|
static QColor broken;
|
2018-03-26 12:41:46 +00:00
|
|
|
static float normalAlpha;
|
|
|
|
static float checkedAlpha;
|
2018-03-29 01:46:43 +00:00
|
|
|
static float branchAlpha;
|
2018-03-26 12:41:46 +00:00
|
|
|
static float fillAlpha;
|
2018-03-30 07:41:29 +00:00
|
|
|
static float edgeAlpha;
|
2018-03-26 12:41:46 +00:00
|
|
|
static int skeletonNodeBorderSize;
|
|
|
|
static int skeletonEdgeWidth;
|
2018-03-14 06:43:16 +00:00
|
|
|
static QString tabButtonSelectedStylesheet;
|
|
|
|
static QString tabButtonStylesheet;
|
2018-03-26 12:41:46 +00:00
|
|
|
static std::map<QString, QString> nextSideColorNameMap;
|
|
|
|
static std::map<QString, QColor> sideColorNameToColorMap;
|
2018-04-07 08:44:39 +00:00
|
|
|
static QtAwesome *awesome();
|
2018-09-21 07:10:18 +00:00
|
|
|
static QWidget *createHorizontalLineWidget();
|
|
|
|
static QWidget *createVerticalLineWidget();
|
2018-04-07 08:44:39 +00:00
|
|
|
static int toolIconFontSize;
|
|
|
|
static int toolIconSize;
|
2018-10-09 02:19:12 +00:00
|
|
|
static int materialPreviewImageSize;
|
2019-05-19 03:21:38 +00:00
|
|
|
static int cutFacePreviewImageSize;
|
2018-09-21 07:10:18 +00:00
|
|
|
static int posePreviewImageSize;
|
|
|
|
static int partPreviewImageSize;
|
2018-10-02 04:59:30 +00:00
|
|
|
static int motionPreviewImageSize;
|
2018-04-07 11:51:33 +00:00
|
|
|
static int miniIconFontSize;
|
|
|
|
static int miniIconSize;
|
2018-09-21 07:10:18 +00:00
|
|
|
static int sidebarPreferredWidth;
|
2018-10-23 14:57:47 +00:00
|
|
|
static int normalButtonSize;
|
2018-08-27 08:50:40 +00:00
|
|
|
public:
|
|
|
|
static void initAwesomeButton(QPushButton *button);
|
|
|
|
static void initAwesomeLabel(QLabel *label);
|
|
|
|
static void initAwesomeSmallButton(QPushButton *button);
|
2018-09-06 15:04:59 +00:00
|
|
|
static void initAwesomeMiniButton(QPushButton *button);
|
2020-04-08 23:25:37 +00:00
|
|
|
static void updateAwesomeMiniButton(QPushButton *button, QChar icon, bool highlighted, bool enabled, bool unnormal=false);
|
2018-09-06 15:04:59 +00:00
|
|
|
static void initAwesomeToolButton(QPushButton *button);
|
|
|
|
static void initAwesomeToolButtonWithoutFont(QPushButton *button);
|
2018-12-02 12:32:34 +00:00
|
|
|
static void initAwsomeBaseSizes();
|
2019-02-24 13:42:23 +00:00
|
|
|
static void initToolButton(QPushButton *button);
|
2019-11-07 12:08:47 +00:00
|
|
|
static void initCheckbox(QCheckBox *checkbox);
|
2018-03-12 09:41:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|