SILICON
Loading...
Searching...
No Matches
SILICON::ui::theme Namespace Reference

Classes

class  ColorTokens
struct  Theme

Enumerations

enum class  Mode { Light , Dark }
enum class  ColorToken {
  Orange , Lorange , Blue , Green ,
  Violet , Internal , Ink , Background ,
  Surface , SurfaceRaised , Grid , Grey ,
  Disabled , Selected , Hover , MenuHover ,
  Error , ErrorHover , ErrorFill , SignalLow ,
  OnAccent , OnViolet , Count
}

Functions

QStringView tokenName (ColorToken token)
std::optional< ColorToken > tokenFromName (QStringView name)
const Theme & light ()
const Theme & dark ()

Enumeration Type Documentation

◆ ColorToken

enum class ColorToken
strong
Enumerator
Orange 
Lorange 
Blue 
Green 
Violet 
Internal 
Ink 
Background 
Surface 
SurfaceRaised 
Grid 
Grey 
Disabled 
Selected 
Hover 
MenuHover 
Error 
ErrorHover 
ErrorFill 
SignalLow 
OnAccent 
OnViolet 
Count 

Definition at line 33 of file theme.hpp.

◆ Mode

enum class Mode
strong
Enumerator
Light 
Dark 

Definition at line 30 of file theme.hpp.

Function Documentation

◆ dark()

const Theme & dark ( )

Definition at line 137 of file theme.cpp.

◆ light()

const Theme & light ( )

Definition at line 133 of file theme.cpp.

◆ tokenFromName()

std::optional< ColorToken > tokenFromName ( QStringView name)

Definition at line 70 of file theme.cpp.

◆ tokenName()

QStringView tokenName ( ColorToken token)

Definition at line 65 of file theme.cpp.