2 #include <score/model/ColorReference.hpp>
3 #include <score/model/Skin.hpp>
7 #include <qnamespace.h>
9 #include <score_lib_process_export.h>
12 struct SCORE_LIB_PROCESS_EXPORT
Style
21 void setIntervalWidth(
double w);
23 static Style& instance() noexcept;
26 const QPen& TransparentPen()
const noexcept {
return skin.NoPen; }
27 const QPen& NoPen()
const noexcept {
return skin.NoPen; }
28 const QBrush& TransparentBrush()
const noexcept {
return skin.NoBrush; }
29 const QBrush& NoBrush()
const noexcept {
return skin.NoBrush; }
31 const score::Brush& IntervalBase()
const noexcept {
return skin.Base1; }
32 const score::Brush& IntervalSelected()
const noexcept {
return skin.Base2; }
33 const score::Brush& IntervalDropTarget()
const noexcept {
return skin.Warn1; }
34 const score::Brush& IntervalPlayFill()
const noexcept {
return skin.Base3; }
35 const score::Brush& IntervalPlayDashFill()
const noexcept {
return skin.Pulse1; }
36 const score::Brush& IntervalWaitingDashFill()
const noexcept {
return skin.Pulse2; }
37 const score::Brush& IntervalLoop()
const noexcept {
return skin.Warn1; }
38 const score::Brush& IntervalWarning()
const noexcept {
return skin.Warn2; }
39 const score::Brush& IntervalInvalid()
const noexcept {
return skin.Warn3; }
40 const score::Brush& IntervalMuted()
const noexcept {
return skin.HalfDark; }
41 const score::Brush& IntervalDefaultLabel()
const noexcept {
return skin.Gray; }
42 const score::Brush& IntervalDefaultBackground()
const noexcept
44 return skin.Transparent1;
47 const score::Brush& RackSideBorder()
const noexcept {
return skin.Base1; }
49 const score::Brush& IntervalFullViewParentSelected()
const noexcept
51 return skin.Emphasis1;
54 const score::Brush& IntervalHeaderText()
const noexcept {
return skin.Light; }
55 const score::Brush& IntervalHeaderBottomLine()
const noexcept
57 return skin.Transparent1;
59 const score::Brush& IntervalHeaderRackHidden()
const noexcept
61 return skin.Transparent1;
63 const score::Brush& IntervalHeaderSideBorder()
const noexcept {
return skin.Base1; }
65 const score::Brush& ProcessViewBorder()
const noexcept {
return skin.Gray; }
67 const score::Brush& SlotFocus()
const noexcept {
return skin.Base2; }
68 const score::Brush& SlotOverlayBorder()
const noexcept {
return skin.Dark; }
69 const score::Brush& SlotOverlay()
const noexcept {
return skin.Transparent2; }
70 const score::Brush& SlotHandle()
const noexcept {
return skin.Transparent3; }
72 const score::Brush& TimenodeDefault()
const noexcept {
return skin.Gray; }
73 const score::Brush& TimenodeSelected()
const noexcept {
return skin.Base2; }
75 const score::Brush& EventDefault()
const noexcept {
return skin.Emphasis4; }
76 const score::Brush& EventWaiting()
const noexcept {
return skin.HalfLight; }
77 const score::Brush& EventPending()
const noexcept {
return skin.Warn1; }
78 const score::Brush& EventHappened()
const noexcept {
return skin.Base3; }
79 const score::Brush& EventDisposed()
const noexcept {
return skin.Warn3; }
80 const score::Brush& EventSelected()
const noexcept {
return skin.Base2; }
82 const score::Brush& ConditionDefault()
const noexcept {
return skin.Smooth3; }
83 const score::Brush& ConditionWaiting()
const noexcept {
return skin.Gray; }
84 const score::Brush& ConditionDisabled()
const noexcept {
return skin.Base1; }
85 const score::Brush& ConditionFalse()
const noexcept {
return skin.Smooth1; }
86 const score::Brush& ConditionTrue()
const noexcept {
return skin.Smooth2; }
88 const score::Brush& StateOutline()
const noexcept {
return skin.Light; }
89 const score::Brush& StateSelected()
const noexcept {
return skin.Base2; }
90 const score::Brush& StateDot()
const noexcept {
return skin.Base1; }
92 const score::Brush& Background()
const noexcept {
return skin.Background1; }
93 const score::Brush& ProcessPanelBackground()
const noexcept
95 return skin.Transparent1;
98 const score::Brush& TimeRulerBackground()
const noexcept {
return skin.DarkGray; }
99 const score::Brush& MinimapBackground()
const noexcept {
return skin.Background1; }
100 const score::Brush& TimeRuler()
const noexcept {
return skin.Base1; }
101 const score::Brush& LocalTimeRuler()
const noexcept {
return skin.Gray; }
103 const score::Brush& SlotHeader()
const noexcept {
return skin.Base5; }
105 const score::Brush& SeparatorBrush()
const noexcept {
return skin.Base1; }
106 const QBrush& SlotHeaderBrush()
const noexcept {
return skin.NoBrush; }
109 const QPen& CommentBlockPen()
const noexcept {
return skin.Light.main.pen1; }
110 const QPen& CommentBlockSelectedPen()
const noexcept {
return skin.Light.main.pen2; }
112 const QPen& SeparatorPen()
const noexcept {
return skin.Light.main.pen2; }
114 const QPen& RectPen()
const noexcept
116 return skin.Emphasis1.main.pen2_solid_round_round;
118 const QPen& RectHighlightPen()
const noexcept
120 return skin.Emphasis1.lighter.pen2_solid_round_round;
122 const QBrush& RectBrush()
const noexcept {
return skin.NoBrush; }
123 const QBrush& RectHighlightBrush()
const noexcept {
return skin.NoBrush; }
125 static const QPen& IntervalSolidPen(
const score::Brush& b) noexcept
127 return b.main.pen3_solid_flat_miter;
129 static const QPen& IntervalDashPen(
const score::Brush& b) noexcept
131 return b.main.pen3_dashed_flat_miter;
133 static const QPen& IntervalRackPen(
const score::Brush& b) noexcept
135 return b.main.pen_cosmetic;
137 static const QPen& IntervalPlayLinePen(
const score::Brush& b) noexcept
139 return b.main.pen_cosmetic;
141 const QPen& IntervalHeaderTextPen()
const noexcept
143 return IntervalHeaderText().main.pen1;
146 const QPen& IntervalBrace()
const noexcept
148 return IntervalBase().main.pen2_solid_flat_miter;
150 const QPen& IntervalBraceSelected()
const noexcept
152 return IntervalSelected().main.pen2_solid_flat_miter;
154 const QPen& IntervalBraceWarning()
const noexcept
156 return IntervalWarning().main.pen2_solid_flat_miter;
158 const QPen& IntervalBraceInvalid()
const noexcept
160 return IntervalInvalid().main.pen2_solid_flat_miter;
163 const score::Brush& MutedIntervalHeaderBackground()
const noexcept
165 return skin.HalfDark;
168 const QPen& IntervalHeaderSeparator()
const noexcept
170 return IntervalHeaderSideBorder().main.pen2_solid_flat_miter;
173 static const QPen& ConditionPen(
const score::Brush& b) noexcept {
return b.main.pen2; }
174 static const QPen& ConditionTrianglePen(
const score::Brush& b) noexcept
176 return b.main.pen_cosmetic;
179 static const QPen& TimenodePen(
const score::Brush& b) noexcept
181 return b.main.pen2_dotted_square_miter;
184 const QPen& MinimapPen()
const noexcept {
return skin.LightGray.main.pen_cosmetic; }
185 const score::Brush& MinimapBrush()
const noexcept {
return skin.DarkGray; }
187 static const QPen& StateTemporalPointPen(
const score::Brush& b) noexcept
189 return b.main.pen_cosmetic;
192 static const QPen& EventPen(
const score::Brush& b) noexcept
194 return b.main.pen_cosmetic;
197 const QPen& TimeRulerLargePen()
const noexcept {
return TimeRuler().main.pen2; }
198 const QPen& TimeRulerSmallPen()
const noexcept {
return TimeRuler().main.pen1; }
200 const QPen& SlotHandlePen()
const noexcept {
return ProcessViewBorder().main.pen0; }
202 static const QPen& MiniScenarioPen(
const score::Brush& b) noexcept
204 return b.main.pen_cosmetic;
207 const score::Brush& DefaultBrush()
const noexcept {
return skin.Base1; }
209 const QPen& AudioCablePen()
const noexcept
211 return skin.Cable1.main.pen3_solid_round_round;
213 const QPen& DataCablePen()
const noexcept
215 return skin.Cable2.main.pen3_solid_round_round;
217 const QPen& MidiCablePen()
const noexcept
219 return skin.Cable3.main.pen3_solid_round_round;
222 const QPen& SelectedAudioCablePen()
const noexcept
224 return skin.SelectedCable1.lighter.pen3_solid_round_round;
226 const QPen& SelectedDataCablePen()
const noexcept
228 return skin.SelectedCable2.lighter.pen3_solid_round_round;
230 const QPen& SelectedMidiCablePen()
const noexcept
232 return skin.SelectedCable3.lighter.pen3_solid_round_round;
235 const QPen& AudioPortPen()
const noexcept {
return skin.Port1.main.pen1_5; }
236 const QPen& DataPortPen()
const noexcept {
return skin.Port2.main.pen1_5; }
237 const QPen& MidiPortPen()
const noexcept {
return skin.Port3.main.pen1_5; }
239 const score::BrushSet& AudioPortBrush()
const noexcept {
return skin.Port1.darker; }
240 const score::BrushSet& DataPortBrush()
const noexcept {
return skin.Port2.darker; }
241 const score::BrushSet& MidiPortBrush()
const noexcept {
return skin.Port3.darker; }
243 const QPen& SlotHeaderTextPen()
const noexcept
245 return TimenodeDefault().main.pen_cosmetic;
247 const QPen& SlotHeaderPen()
const noexcept
249 return IntervalHeaderSideBorder().main.pen1_solid_flat_miter;
252 const score::Brush& LoopBrush()
const noexcept {
return skin.Tender3; }
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: ScenarioStyle.hpp:13