summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugingui/resources/slider.pngbin1234 -> 1433 bytes
-rw-r--r--plugingui/slider.cc2
-rw-r--r--plugingui/slider.h15
3 files changed, 16 insertions, 1 deletions
diff --git a/plugingui/resources/slider.png b/plugingui/resources/slider.png
index 3766e83..d2e5358 100644
--- a/plugingui/resources/slider.png
+++ b/plugingui/resources/slider.png
Binary files differ
diff --git a/plugingui/slider.cc b/plugingui/slider.cc
index bec9405..15a82b3 100644
--- a/plugingui/slider.cc
+++ b/plugingui/slider.cc
@@ -99,7 +99,7 @@ void Slider::setEnabled(bool enabled)
}
else {
active_inner_bar = inner_bar;
- inner_bar = &inner_bar_grey;
+ inner_bar = &inner_bar_light_grey;
}
redraw();
diff --git a/plugingui/slider.h b/plugingui/slider.h
index c12144d..90905fd 100644
--- a/plugingui/slider.h
+++ b/plugingui/slider.h
@@ -122,6 +122,21 @@ private:
2, 1, 2, // dx1, dx2, dx3
2, 1, 2 // dy1, dy2, dy3
};
+ TexturedBox inner_bar_turquoise{getImageCache(), ":resources/slider.png",
+ 40, 0, // atlas offset (x, y)
+ 2, 1, 2, // dx1, dx2, dx3
+ 2, 1, 2 // dy1, dy2, dy3
+ };
+ TexturedBox inner_bar_orange{getImageCache(), ":resources/slider.png",
+ 40, 5, // atlas offset (x, y)
+ 2, 1, 2, // dx1, dx2, dx3
+ 2, 1, 2 // dy1, dy2, dy3
+ };
+ TexturedBox inner_bar_light_grey{getImageCache(), ":resources/slider.png",
+ 40, 10, // atlas offset (x, y)
+ 2, 1, 2, // dx1, dx2, dx3
+ 2, 1, 2 // dy1, dy2, dy3
+ };
// This points to the inner_bar_* of the current color.
// It should never be a nullptr!