SILICON
Loading...
Searching...
No Matches
ThemeEngine Class Reference

#include <theme.hpp>

Inheritance diagram for ThemeEngine:
Collaboration diagram for ThemeEngine:

Signals

void themeChanged ()

Static Public Member Functions

static ThemeEngine & instance ()
static void apply (QApplication &app, theme::Mode mode)
static const theme::Theme & current ()
static theme::Mode mode ()
static const QColor & getColor (theme::ColorToken token)
static const QColor & getColor (const QString &key)

Private Member Functions

 ThemeEngine (QObject *parent)

Private Attributes

theme::Mode currentMode = theme::Mode::Light

Detailed Description

Definition at line 85 of file theme.hpp.

Constructor & Destructor Documentation

◆ ThemeEngine()

ThemeEngine ( QObject * parent)
explicitprivate

Definition at line 145 of file theme.cpp.

Member Function Documentation

◆ apply()

void apply ( QApplication & app,
theme::Mode mode )
static

Definition at line 169 of file theme.cpp.

◆ current()

const theme::Theme & current ( )
static

Definition at line 164 of file theme.cpp.

◆ getColor() [1/2]

const QColor & getColor ( const QString & key)
static

Definition at line 156 of file theme.cpp.

◆ getColor() [2/2]

const QColor & getColor ( theme::ColorToken token)
inlinestatic

Definition at line 92 of file theme.hpp.

◆ instance()

ThemeEngine & instance ( )
static

Definition at line 147 of file theme.cpp.

◆ mode()

theme::Mode mode ( )
inlinestatic

Definition at line 91 of file theme.hpp.

◆ themeChanged

void themeChanged ( )
signal

Member Data Documentation

◆ currentMode

theme::Mode currentMode = theme::Mode::Light
private

Definition at line 103 of file theme.hpp.


The documentation for this class was generated from the following files: