20#ifndef LIBREPCB_CORE_THEMECOLOR_H
21#define LIBREPCB_CORE_THEMECOLOR_H
26#include "../serialization/sexpression.h"
47 ThemeColor(
const QString& identifier,
const char* category,
const char* name,
48 const QString& nameSuffix,
const QColor& primary,
49 const QColor& secondary)
noexcept;
67 std::unique_ptr<SExpression>
serialize()
const;
72 return !(*
this == rhs);
The SExpression class.
Definition: sexpression.h:69
Color settings as used by librepcb::Theme.
Definition: themecolor.h:43
QString getNameTr() const noexcept
Definition: themecolor.cpp:71
const char * mCategoryNoTr
Definition: themecolor.h:78
QString mIdentifier
Definition: themecolor.h:77
QColor mPrimary
Definition: themecolor.h:81
bool isEdited() const noexcept
Definition: themecolor.h:59
void setSecondaryColor(const QColor &color) noexcept
Definition: themecolor.cpp:88
void setPrimaryColor(const QColor &color) noexcept
Definition: themecolor.cpp:81
std::unique_ptr< SExpression > serialize() const
Definition: themecolor.cpp:113
void load(const SExpression &root)
Definition: themecolor.cpp:99
QColor mSecondary
Null if not applicable.
Definition: themecolor.h:82
bool mEdited
Definition: themecolor.h:83
bool operator==(const ThemeColor &rhs) const noexcept
Definition: themecolor.cpp:126
bool operator!=(const ThemeColor &rhs) const noexcept
Definition: themecolor.h:71
const QColor & getPrimaryColor() const noexcept
Definition: themecolor.h:57
const QColor & getSecondaryColor() const noexcept
Definition: themecolor.h:58
QString getCategoryTr() const noexcept
Definition: themecolor.cpp:65
QString mNameSuffix
Definition: themecolor.h:80
const QString & getIdentifier() const noexcept
Definition: themecolor.h:54
ThemeColor & operator=(const ThemeColor &rhs) noexcept
Definition: themecolor.cpp:134
~ThemeColor() noexcept
Definition: themecolor.cpp:58
const char * mNameNoTr
Definition: themecolor.h:79
Definition: occmodel.cpp:77