10 #include <score_lib_base_export.h>
23 QPen pen0_solid_round;
25 QPen pen1_solid_flat_miter;
28 QPen pen2_solid_round_round;
29 QPen pen2_solid_flat_miter;
30 QPen pen2_dashdot_square_miter;
31 QPen pen2_dotted_square_miter;
33 QPen pen3_solid_flat_miter;
34 QPen pen3_solid_round_round;
35 QPen pen3_dashed_flat_miter;
47 explicit BrushSet(
const QBrush& b) noexcept;
49 BrushSet& operator=(
const QBrush& b) noexcept;
54 struct SCORE_LIB_BASE_EXPORT
Brush
56 operator const QBrush&()
const noexcept {
return main.brush; }
57 QColor color()
const noexcept {
return main.brush.color(); }
65 void reload(QColor color) noexcept;
77 explicit Brush(
const QBrush& b) noexcept;
78 Brush& operator=(
const QBrush& b) noexcept;
84 Pair(QString&& str, QColor&& c)
85 : first{std::move(str)}
86 , second{std::move(c)}
92 class SCORE_LIB_BASE_EXPORT
Skin :
public QObject
96 static Skin& instance() noexcept;
99 void load(
const QJsonObject& style);
158 Brush SelectedCable1;
159 Brush SelectedCable2;
160 Brush SelectedCable3;
169 const QPen TransparentPen;
170 const QBrush TransparentBrush;
172 const QBrush NoBrush;
179 QBrush SliderInteriorBrush;
184 QCursor CursorPointer;
185 QCursor CursorOpenHand;
186 QCursor CursorClosedHand;
187 QCursor CursorPointingHand;
188 QCursor CursorMagnifier;
190 QCursor CursorScaleH;
191 QCursor CursorScaleV;
192 QCursor CursorScaleFDiag;
195 QCursor CursorPlayFromHere;
196 QCursor CursorCreationMode;
198 const Brush* fromString(
const QString& s)
const;
199 Brush* fromString(
const QString& s);
200 QString toString(
const Brush*)
const;
202 QVector<QPair<QColor, QString>> getColors()
const;
203 QVector<QPair<QColor, QString>> getDefaultPaletteColors()
const;
211 void changed() E_SIGNAL(SCORE_LIB_BASE_EXPORT, changed)
214 void timerEvent(QTimerEvent* event)
override;
220 explicit Skin(NoGUI);
225 std::vector<Brush::Pair> m_defaultPalette;
227 bool m_pulseDirection{
false};
Base toolkit upon which the software is built.
Definition: Application.cpp:90