20#ifndef LIBREPCB_CORE_THEMECOLOR_H
21#define LIBREPCB_CORE_THEMECOLOR_H
26#include "../serialization/sexpression.h"
47 ThemeColor(
const QString& identifier,
const QString& categoryTr,
48 const QString& nameTr,
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
const QString & getNameTr() const noexcept
Definition: themecolor.h:56
QString mIdentifier
Definition: themecolor.h:77
QColor mPrimary
Definition: themecolor.h:80
bool isEdited() const noexcept
Definition: themecolor.h:59
void setSecondaryColor(const QColor &color) noexcept
Definition: themecolor.cpp:70
void setPrimaryColor(const QColor &color) noexcept
Definition: themecolor.cpp:63
QString mNameTr
Definition: themecolor.h:79
std::unique_ptr< SExpression > serialize() const
Definition: themecolor.cpp:95
void load(const SExpression &root)
Definition: themecolor.cpp:81
QColor mSecondary
Null if not applicable.
Definition: themecolor.h:81
bool mEdited
Definition: themecolor.h:82
bool operator==(const ThemeColor &rhs) const noexcept
Definition: themecolor.cpp:108
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
const QString & getIdentifier() const noexcept
Definition: themecolor.h:54
const QString & getCategoryTr() const noexcept
Definition: themecolor.h:55
QString mCategoryTr
Definition: themecolor.h:78
ThemeColor & operator=(const ThemeColor &rhs) noexcept
Definition: themecolor.cpp:116
~ThemeColor() noexcept
Definition: themecolor.cpp:56
Definition: occmodel.cpp:77