dust3d/application/sources/theme.h

48 lines
1.5 KiB
C++

#ifndef DUST3D_APPLICATION_THEME_H_
#define DUST3D_APPLICATION_THEME_H_
#include "QtAwesome.h"
#include <QChar>
#include <QCheckBox>
#include <QColor>
#include <QLabel>
#include <QPushButton>
class Theme {
public:
static QColor white;
static QColor red;
static QColor green;
static QColor blue;
static QColor black;
static QColor gray;
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;
static int previewIconBorderSize;
static int previewIconMargin;
static int previewIconBorderRadius;
static void initialize();
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);
static void initAwsome();
static void initToolButton(QPushButton* button);
static void initCheckbox(QCheckBox* checkbox);
static void initIconButton(QPushButton* button);
};
#endif