SILICON
Loading...
Searching...
No Matches
theme.hpp File Reference
#include <array>
#include <optional>
#include <QApplication>
#include <QColor>
#include <QJsonObject>
#include <QPalette>
#include <QStringView>
Include dependency graph for theme.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ColorTokens
struct  Theme
class  ThemeEngine

Namespaces

namespace  SILICON
namespace  SILICON::ui
namespace  SILICON::ui::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 ()