|
2 | 2 |
|
3 | 3 | ParameterPanel::ParameterPanel(SurgefxAudioProcessor &p)
|
4 | 4 | : processor(p), styleSheet(sst::jucegui::style::StyleSheet::getBuiltInStyleSheet(
|
5 |
| - sst::jucegui::style::StyleSheet::DARK)) |
| 5 | + sst::jucegui::style::StyleSheet ::DARK)) |
6 | 6 |
|
7 | 7 | {
|
8 |
| - sst::jucegui::style::StyleSheet::initializeStyleSheets([]() {}); |
| 8 | + sst::jucegui::style ::StyleSheet::initializeStyleSheets([]() {}); |
9 | 9 |
|
10 | 10 | using knobStyle = sst::jucegui::components::Knob::Styles;
|
11 |
| - // auto backgroundColour = findColour(SurgeLookAndFeel::SurgeColourIds::componentBgStart); |
12 |
| - // auto surgeOrange = findColour(SurgeLookAndFeel::SurgeColourIds::orange); |
13 | 11 |
|
14 |
| - // // styleSheet->setColour(knobStyle::styleClass, knobStyle::handle, backgroundColour); |
15 |
| - // // styleSheet->setColour(knobStyle::styleClass, knobStyle::knobbase, backgroundColour); |
16 |
| - // // styleSheet->setColour(knobStyle::styleClass, knobStyle::value, surgeOrange); |
17 |
| - // // styleSheet->setColour(knobStyle::styleClass, knobStyle::value_hover, surgeOrange); |
| 12 | + styleSheet->setColour(knobStyle::styleClass, knobStyle::handle, backgroundColour); |
| 13 | + styleSheet->setColour(knobStyle::styleClass, knobStyle::knobbase, backgroundColour); |
| 14 | + styleSheet->setColour(knobStyle::styleClass, knobStyle::value, surgeOrange); |
| 15 | + styleSheet->setColour(knobStyle::styleClass, knobStyle::value_hover, surgeOrange); |
18 | 16 |
|
19 | 17 | for (int i = 0; i < n_fx_params; ++i)
|
20 | 18 | {
|
@@ -116,7 +114,7 @@ ParameterPanel::ParameterPanel(SurgefxAudioProcessor &p)
|
116 | 114 |
|
117 | 115 | ParameterPanel::~ParameterPanel() {}
|
118 | 116 |
|
119 |
| -void ParameterPanel::paint(juce::Graphics &g) { g.fillAll(juce::Colours::darkgrey); } |
| 117 | +void ParameterPanel::paint(juce::Graphics &g) { g.fillAll(backgroundColour); } |
120 | 118 |
|
121 | 119 | void ParameterPanel::reset()
|
122 | 120 | {
|
@@ -187,8 +185,8 @@ void ParameterPanel::reset()
|
187 | 185 | }
|
188 | 186 | void ParameterPanel::resized()
|
189 | 187 | {
|
190 |
| - int ypos0 = topSection - 5; |
191 |
| - int rowHeight = (getHeight() - topSection - 40 - 10) / 6.0; |
| 188 | + int ypos0 = 5; |
| 189 | + int rowHeight = getHeight() / 6.0; |
192 | 190 | int byoff = 7;
|
193 | 191 |
|
194 | 192 | int sliderOff = 5;
|
|
0 commit comments