diff options
Diffstat (limited to 'plugingui/bleedcontrolframecontent.cc')
-rw-r--r-- | plugingui/bleedcontrolframecontent.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugingui/bleedcontrolframecontent.cc b/plugingui/bleedcontrolframecontent.cc index 5d28169..f831210 100644 --- a/plugingui/bleedcontrolframecontent.cc +++ b/plugingui/bleedcontrolframecontent.cc @@ -69,6 +69,24 @@ void BleedcontrolframeContent::resize(std::size_t width, std::size_t height) label_value.resize(slider_width, 15); } +void BleedcontrolframeContent::setEnabled(bool enabled) +{ + this->enabled = enabled; + + if (enabled) { + label_text.resetColour(); + label_value.resetColour(); + slider.setEnabled(true); + } + else { + label_text.setColour(0.7); + label_value.setColour(0.7); + slider.setEnabled(false); + } + + redraw(); +} + void BleedcontrolframeContent::bleedSettingsValueChanged(float value) { slider.setValue(value); |