dust3d/src/theme.h

53 lines
1.6 KiB
C
Raw Normal View History

#ifndef THEME_H
#define THEME_H
#include <QColor>
2018-03-14 06:43:16 +00:00
#include <QString>
#include <map>
#include <QPushButton>
#include <QLabel>
#include "QtAwesome.h"
class Theme
{
public:
static QColor red;
static QColor green;
static QColor blue;
static QColor white;
2018-04-09 03:39:04 +00:00
static QColor black;
static QColor dark;
static QColor altDark;
static QColor broken;
static float normalAlpha;
static float checkedAlpha;
2018-03-29 01:46:43 +00:00
static float branchAlpha;
static float fillAlpha;
static float edgeAlpha;
static int skeletonNodeBorderSize;
static int skeletonEdgeWidth;
2018-03-14 06:43:16 +00:00
static QString tabButtonSelectedStylesheet;
static QString tabButtonStylesheet;
static std::map<QString, QString> nextSideColorNameMap;
static std::map<QString, QColor> sideColorNameToColorMap;
static QtAwesome *awesome();
static QWidget *createHorizontalLineWidget();
static QWidget *createVerticalLineWidget();
static int toolIconFontSize;
static int toolIconSize;
static int posePreviewImageSize;
static int partPreviewImageSize;
2018-04-07 11:51:33 +00:00
static int miniIconFontSize;
static int miniIconSize;
static int sidebarPreferredWidth;
public:
static void initAwesomeButton(QPushButton *button);
static void initAwesomeLabel(QLabel *label);
static void initAwesomeSmallButton(QPushButton *button);
static void initAwesomeMiniButton(QPushButton *button);
static void updateAwesomeMiniButton(QPushButton *button, QChar icon, bool highlighted);
static void initAwesomeToolButton(QPushButton *button);
static void initAwesomeToolButtonWithoutFont(QPushButton *button);
};
#endif