2018-03-12 09:41:16 +00:00
|
|
|
#ifndef THEME_H
|
|
|
|
#define THEME_H
|
|
|
|
#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>
|
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-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-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);
|
|
|
|
static void updateAwesomeMiniButton(QPushButton *button, QChar icon, bool highlighted);
|
|
|
|
static void initAwesomeToolButton(QPushButton *button);
|
|
|
|
static void initAwesomeToolButtonWithoutFont(QPushButton *button);
|
2018-03-12 09:41:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|