Classes | |
class | CustomStyleFlatPushButton |
class | CustomStyleFlatToolButton |
class | CustomFusionStyle |
Functions | |
void | pixmapForBWMaskIcon (const QString &url, QPixmap *pixmapOut, BNThemeColor color=SidebarActiveIconColor, const QString &cacheSuffix="") |
void | initThemes () |
void | resetUserThemes () |
void | refreshUserThemes () |
std::vector< QString > | getAvailableThemes () |
QString | getActiveTheme () |
void | setActiveTheme (const QString &name, bool saveToSettings=true) |
bool | isActiveThemeDark () |
bool | isColorBlindMode () |
void | setColorBlindMode (bool active) |
void | addJsonTheme (const char *json) |
QColor | getThemeColor (BNThemeColor color) |
QColor | getTokenColor (QWidget *widget, BNInstructionTextTokenType token) |
QColor | getTypeClassColor (const QWidget *widget, BNTypeClass typeClass) |
std::optional< QColor > | getSymbolColor (SymbolRef symbol) |
std::optional< QColor > | getSymbolColor (BNSymbolType type, BNSymbolBinding binding) |
QColor | avgColor (QColor a, QColor b) |
QColor | mixColor (QColor a, QColor b, uint8_t mix) |
QColor | getThemeHighlightColor (BNHighlightStandardColor color) |
class CustomStyleFlatPushButton |
Public Member Functions | |
CustomStyleFlatPushButton (QWidget *parent=nullptr) | |
|
inline |
class CustomStyleFlatToolButton |
Public Member Functions | |
CustomStyleFlatToolButton (QWidget *parent=nullptr) | |
|
inline |
class CustomFusionStyle |
Public Member Functions | |
CustomFusionStyle (QStyle *parent) | |
virtual int | pixelMetric (PixelMetric metric, const QStyleOption *option, const QWidget *widget) const override |
virtual QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const override |
virtual QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *option, const QWidget *widget) const override |
virtual QRect | subElementRect (QStyle::SubElement element, const QStyleOption *option, const QWidget *widget) const override |
virtual void | drawPrimitive (PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const override |
virtual int | styleHint (QStyle::StyleHint hint, const QStyleOption *option=nullptr, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const override |
CustomFusionStyle::CustomFusionStyle | ( | QStyle * | parent | ) |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
void pixmapForBWMaskIcon | ( | const QString & | url, |
QPixmap * | pixmapOut, | ||
BNThemeColor | color = SidebarActiveIconColor, | ||
const QString & | cacheSuffix = "" ) |
void initThemes | ( | ) |
void resetUserThemes | ( | ) |
void refreshUserThemes | ( | ) |
std::vector< QString > getAvailableThemes | ( | ) |
QString getActiveTheme | ( | ) |
void setActiveTheme | ( | const QString & | name, |
bool | saveToSettings = true ) |
bool isActiveThemeDark | ( | ) |
bool isColorBlindMode | ( | ) |
void setColorBlindMode | ( | bool | active | ) |
void addJsonTheme | ( | const char * | json | ) |
json |
QColor getThemeColor | ( | BNThemeColor | color | ) |
QColor getTokenColor | ( | QWidget * | widget, |
BNInstructionTextTokenType | token ) |
QColor getTypeClassColor | ( | const QWidget * | widget, |
BNTypeClass | typeClass ) |
std::optional< QColor > getSymbolColor | ( | SymbolRef | symbol | ) |
std::optional< QColor > getSymbolColor | ( | BNSymbolType | type, |
BNSymbolBinding | binding ) |
QColor avgColor | ( | QColor | a, |
QColor | b ) |
QColor mixColor | ( | QColor | a, |
QColor | b, | ||
uint8_t | mix ) |
QColor getThemeHighlightColor | ( | BNHighlightStandardColor | color | ) |