2021-11-18 14:58:01 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_THEME_H_
|
|
|
|
#define DUST3D_APPLICATION_THEME_H_
|
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
#include "QtAwesome.h"
|
2021-11-18 14:58:01 +00:00
|
|
|
#include <QChar>
|
|
|
|
#include <QCheckBox>
|
2022-10-18 09:35:04 +00:00
|
|
|
#include <QColor>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QPushButton>
|
2021-11-18 14:58:01 +00:00
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
class Theme {
|
2021-11-18 14:58:01 +00:00
|
|
|
public:
|
|
|
|
static QColor white;
|
|
|
|
static QColor red;
|
|
|
|
static QColor green;
|
|
|
|
static QColor blue;
|
2022-10-02 22:04:46 +00:00
|
|
|
static QColor black;
|
|
|
|
static QColor gray;
|
2021-11-18 14:58:01 +00:00
|
|
|
static float normalAlpha;
|
|
|
|
static float checkedAlpha;
|
|
|
|
static float edgeAlpha;
|
|
|
|
static float fillAlpha;
|
|
|
|
static int toolIconFontSize;
|
|
|
|
static int toolIconSize;
|
|
|
|
static int miniIconFontSize;
|
|
|
|
static int miniIconSize;
|
|
|
|
static int partPreviewImageSize;
|
|
|
|
static int sidebarPreferredWidth;
|
2022-10-05 12:26:39 +00:00
|
|
|
static int previewIconBorderSize;
|
|
|
|
static int previewIconMargin;
|
|
|
|
static int previewIconBorderRadius;
|
2022-10-18 09:35:04 +00:00
|
|
|
|
2021-11-18 14:58:01 +00:00
|
|
|
static void initialize();
|
2022-10-18 09:35:04 +00:00
|
|
|
static QtAwesome* awesome();
|
|
|
|
static void initAwesomeButton(QPushButton* button);
|
|
|
|
static void initAwesomeLabel(QLabel* label);
|
|
|
|
static void initAwesomeMiniButton(QPushButton* button);
|
|
|
|
static void updateAwesomeMiniButton(QPushButton* button, QChar icon, bool highlighted, bool enabled, bool unnormal = false);
|
|
|
|
static void initAwesomeToolButton(QPushButton* button);
|
|
|
|
static void initAwesomeToolButtonWithoutFont(QPushButton* button);
|
2021-11-18 14:58:01 +00:00
|
|
|
static void initAwsome();
|
2022-10-18 09:35:04 +00:00
|
|
|
static void initToolButton(QPushButton* button);
|
|
|
|
static void initCheckbox(QCheckBox* checkbox);
|
|
|
|
static void initIconButton(QPushButton* button);
|
2021-11-18 14:58:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|