From 5d6b52c7d4c0cf14d9889d28c94025c231d66b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Thu, 20 Apr 2017 19:21:27 +0200 Subject: Color the slider bar green for diskstreaming slider if "unlimited". --- plugingui/diskstreamingframecontent.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugingui') 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); -- cgit v1.2.3