theme.h File Reference

Classes

class  CustomFusionStyle
 

Functions

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)
 
QColor getThemeColor (BNThemeColor color)
 
QColor getTokenColor (QWidget *widget, BNInstructionTextTokenType token)
 
QColor avgColor (QColor a, QColor b)
 
QColor mixColor (QColor a, QColor b, uint8_t mix)
 
QColor getThemeHighlightColor (BNHighlightStandardColor color)
 

Function Documentation

◆ avgColor()

QColor avgColor ( QColor  a,
QColor  b 
)

◆ getActiveTheme()

QString getActiveTheme ( )

◆ getAvailableThemes()

std::vector< QString > getAvailableThemes ( )

◆ getThemeColor()

QColor getThemeColor ( BNThemeColor  color)

◆ getThemeHighlightColor()

QColor getThemeHighlightColor ( BNHighlightStandardColor  color)

◆ getTokenColor()

QColor getTokenColor ( QWidget *  widget,
BNInstructionTextTokenType  token 
)

◆ initThemes()

void initThemes ( )

◆ isActiveThemeDark()

bool isActiveThemeDark ( )

◆ isColorBlindMode()

bool isColorBlindMode ( )

◆ mixColor()

QColor mixColor ( QColor  a,
QColor  b,
uint8_t  mix 
)

◆ refreshUserThemes()

void refreshUserThemes ( )

◆ resetUserThemes()

void resetUserThemes ( )

◆ setActiveTheme()

void setActiveTheme ( const QString &  name,
bool  saveToSettings = true 
)

◆ setColorBlindMode()

void setColorBlindMode ( bool  active)