summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-20 19:21:27 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-20 19:21:27 +0200
commit5d6b52c7d4c0cf14d9889d28c94025c231d66b6e (patch)
treeb836026127e9054804bda3788fd96eb27a08af36 /plugingui
parent89b3bde1cfeb9fa3c7097555a86c6436da848a97 (diff)
Color the slider bar green for diskstreaming slider if "unlimited".
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/diskstreamingframecontent.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/diskstreamingframecontent.cc b/plugingui/diskstreamingframecontent.cc
index bb93bc9..228702f 100644
--- a/plugingui/diskstreamingframecontent.cc
+++ b/plugingui/diskstreamingframecontent.cc
@@ -92,9 +92,11 @@ void DiskstreamingframeContent::limitSettingsValueChanged(std::size_t value)
if (new_slider_value < 0.99) {
int value_in_mb = value/(1024 * 1024);
label_size.setText(std::to_string(value_in_mb) + " MB");
+ slider.setColour(Slider::Colour::Blue);
}
else {
label_size.setText("Unlimited");
+ slider.setColour(Slider::Colour::Green);
}
button.setEnabled(true);