Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
theme_manager.cpp File Reference
#include "theme_manager.h"
#include "../../client/settings/cache_settings.h"
#include "pixel_map_generator.h"
#include "theme_config.h"
#include <QApplication>
#include <QChar>
#include <QColor>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QFlags>
#include <QGuiApplication>
#include <QIODevice>
#include <QLatin1Char>
#include <QList>
#include <QMap>
#include <QMessageLogger>
#include <QMetaEnum>
#include <QPalette>
#include <QPixmap>
#include <QPixmapCache>
#include <QSharedPointer>
#include <QString>
#include <QStringList>
#include <QStringLiteral>
#include <QStyle>
#include <QStyleFactory>
#include <QStyleHints>
#include <QTextStream>
#include <QWidget>
#include <Qt>
#include <QtGlobal>
#include <libcockatrice/settings/paths_settings.h>
#include <qlogging.h>
#include <qnumeric.h>
Include dependency graph for theme_manager.cpp:

Classes

struct  PaletteColorInfo

Macros

#define SYSTEM_THEME_NAME   "System"
#define LEGACY_SYSTEM_THEME_NAME   "Default"
#define FUSION_THEME_NAME   "Fusion"
#define STYLE_CSS_NAME   "style.css"
#define HANDZONE_BG_NAME   "handzone"
#define PLAYERZONE_BG_NAME   "playerzone"
#define STACKZONE_BG_NAME   "stackzone"
#define TABLEZONE_BG_NAME   "tablezone"

Functions

static QList< PaletteColorInfo > queryAllPaletteColors (const QPalette &palette=qApp->palette())
static void printPaletteColors (const QPalette &palette=qApp->palette())
static QString usableDefaultStyle (const QString &style)
static bool mergeDirWithoutOverwrite (const QString &sourceDir, const QString &targetDir)
static QString systemThemesBasePath ()
static QString roleBgName (ThemeManager::Role role)

Variables

static const QColor HANDZONE_BG_DEFAULT = QColor(80, 100, 50)
static const QColor TABLEZONE_BG_DEFAULT = QColor(70, 50, 100)
static const QColor PLAYERZONE_BG_DEFAULT = QColor(200, 200, 200)
static const QColor STACKZONE_BG_DEFAULT = QColor(113, 43, 43)
static const QStringList DEFAULT_RESOURCE_PATHS = {":/resources"}

Macro Definition Documentation

◆ FUSION_THEME_NAME

#define FUSION_THEME_NAME   "Fusion"

◆ HANDZONE_BG_NAME

#define HANDZONE_BG_NAME   "handzone"

◆ LEGACY_SYSTEM_THEME_NAME

#define LEGACY_SYSTEM_THEME_NAME   "Default"

◆ PLAYERZONE_BG_NAME

#define PLAYERZONE_BG_NAME   "playerzone"

◆ STACKZONE_BG_NAME

#define STACKZONE_BG_NAME   "stackzone"

◆ STYLE_CSS_NAME

#define STYLE_CSS_NAME   "style.css"

◆ SYSTEM_THEME_NAME

#define SYSTEM_THEME_NAME   "System"

◆ TABLEZONE_BG_NAME

#define TABLEZONE_BG_NAME   "tablezone"

Function Documentation

◆ mergeDirWithoutOverwrite()

bool mergeDirWithoutOverwrite ( const QString & sourceDir,
const QString & targetDir )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printPaletteColors()

void printPaletteColors ( const QPalette & palette = qApp->palette())
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ queryAllPaletteColors()

QList< PaletteColorInfo > queryAllPaletteColors ( const QPalette & palette = qApp->palette())
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ roleBgName()

QString roleBgName ( ThemeManager::Role role)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ systemThemesBasePath()

QString systemThemesBasePath ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usableDefaultStyle()

QString usableDefaultStyle ( const QString & style)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DEFAULT_RESOURCE_PATHS

const QStringList DEFAULT_RESOURCE_PATHS = {":/resources"}
static

◆ HANDZONE_BG_DEFAULT

const QColor HANDZONE_BG_DEFAULT = QColor(80, 100, 50)
static

◆ PLAYERZONE_BG_DEFAULT

const QColor PLAYERZONE_BG_DEFAULT = QColor(200, 200, 200)
static

◆ STACKZONE_BG_DEFAULT

const QColor STACKZONE_BG_DEFAULT = QColor(113, 43, 43)
static

◆ TABLEZONE_BG_DEFAULT

const QColor TABLEZONE_BG_DEFAULT = QColor(70, 50, 100)
static