Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PaletteConfig Struct Reference

#include <theme_config.h>

Public Member Functions

bool hasPalette () const
QString toToml () const
QPalette apply (QPalette base) const

Static Public Member Functions

static QString fileName (const QString &colorScheme)
static PaletteConfig fromFile (const QString &filePath)
static PaletteConfig fromScheme (const QString &themeDirPath, const QString &colorScheme)
static PaletteConfig fromDefault (const QString &themeDirPath, const QString &colorScheme)

Public Attributes

QMap< QPalette::ColorGroup, QMap< QPalette::ColorRole, QColor > > colors

Member Function Documentation

◆ apply()

QPalette PaletteConfig::apply ( QPalette base) const
Here is the caller graph for this function:

◆ fileName()

QString PaletteConfig::fileName ( const QString & colorScheme)
static
Here is the caller graph for this function:

◆ fromDefault()

PaletteConfig PaletteConfig::fromDefault ( const QString & themeDirPath,
const QString & colorScheme )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fromFile()

PaletteConfig PaletteConfig::fromFile ( const QString & filePath)
static
Here is the caller graph for this function:

◆ fromScheme()

PaletteConfig PaletteConfig::fromScheme ( const QString & themeDirPath,
const QString & colorScheme )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasPalette()

bool PaletteConfig::hasPalette ( ) const
Here is the caller graph for this function:

◆ toToml()

QString PaletteConfig::toToml ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ colors

QMap<QPalette::ColorGroup, QMap<QPalette::ColorRole, QColor> > PaletteConfig::colors

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