File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
#include " ParameterPanel.h"
2
2
3
- ParameterPanel::ParameterPanel (SurgefxAudioProcessor &p) : processor(p)
3
+ ParameterPanel::ParameterPanel (SurgefxAudioProcessor &p,
4
+ std::shared_ptr<sst::jucegui::style::StyleSheet> styleSheet)
5
+ : processor(p),
6
+ sst::jucegui::style::StyleConsumer(sst::jucegui::components::Knob::Styles::styleClass)
7
+
4
8
{
5
9
10
+ setStyle (styleSheet);
11
+
6
12
for (int i = 0 ; i < n_fx_params; ++i)
7
13
{
8
14
auto knob = std::make_unique<sst::jucegui::components::Knob>();
Original file line number Diff line number Diff line change 19
19
20
20
#include " juce_audio_processors/juce_audio_processors.h"
21
21
22
- class ParameterPanel : public juce ::Component
22
+ class ParameterPanel : public juce ::Component, sst::jucegui::style::StyleConsumer
23
23
{
24
24
public:
25
- ParameterPanel (SurgefxAudioProcessor &);
25
+ ParameterPanel (SurgefxAudioProcessor &,
26
+ std::shared_ptr<sst::jucegui::style::StyleSheet> styleSheet);
26
27
27
28
~ParameterPanel () override ;
28
29
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ SurgefxAudioProcessorEditor::SurgefxAudioProcessorEditor(SurgefxAudioProcessor &
138
138
picker = std::make_unique<Picker>(this );
139
139
addAndMakeVisibleRecordOrder (picker.get ());
140
140
141
- deafultParameterPanel = std::make_unique<ParameterPanel>(p);
141
+ deafultParameterPanel = std::make_unique<ParameterPanel>(p, styleSheet );
142
142
addAndMakeVisibleRecordOrder (deafultParameterPanel.get ());
143
143
144
144
auto backgroundColour = findColour (SurgeLookAndFeel::SurgeColourIds::componentBgStart);
@@ -256,7 +256,6 @@ void SurgefxAudioProcessorEditor::resized()
256
256
auto bounds = getLocalBounds ();
257
257
int topAreaHeight =
258
258
static_cast <int >((static_cast <float >(topSection) / baseHeight) * getHeight ());
259
- std::cout << topAreaHeight << std::endl;
260
259
int bottomAreaHeight = static_cast <int >((static_cast <float >(40 ) / baseHeight) * getHeight ());
261
260
262
261
auto topArea = bounds.removeFromTop (topAreaHeight);
You can’t perform that action at this time.
0 commit comments