summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/slider.cc4
-rw-r--r--plugingui/slider.h20
2 files changed, 12 insertions, 12 deletions
diff --git a/plugingui/slider.cc b/plugingui/slider.cc
index 78877b2..19343bc 100644
--- a/plugingui/slider.cc
+++ b/plugingui/slider.cc
@@ -69,9 +69,9 @@ void Slider::repaintEvent(RepaintEvent* repaintEvent)
p.drawImage(0, 0, bar);
// draw inner bar
- inner_bar_green.setSize(
+ inner_bar_blue.setSize(
button_x - bar_boundary, height() - 2 * bar_boundary);
- p.drawImage(bar_boundary, bar_boundary, inner_bar_green);
+ p.drawImage(bar_boundary, bar_boundary, inner_bar_blue);
// draw button
p.drawImage(button_x, button_y, button);
diff --git a/plugingui/slider.h b/plugingui/slider.h
index 26e82ba..7e4037f 100644
--- a/plugingui/slider.h
+++ b/plugingui/slider.h
@@ -78,21 +78,21 @@ private:
7, 1, 7, // dx1, dx2, dx3
7, 1, 7 // dy1, dy2, dy3
};
- TexturedBox inner_bar_green{
- getImageCache(), ":slider.png", 30, 0, // atlas offset (x, y)
- 2, 1, 2, // dx1, dx2, dx3
- 2, 1, 2 // dy1, dy2, dy3
- };
+ // TexturedBox inner_bar_green{
+ // getImageCache(), ":slider.png", 30, 0, // atlas offset (x, y)
+ // 2, 1, 2, // dx1, dx2, dx3
+ // 2, 1, 2 // dy1, dy2, dy3
+ // };
// TexturedBox inner_bar_red{getImageCache(), ":slider.png",
// 30, 5, // atlas offset (x, y)
// 2, 1, 2, // dx1, dx2, dx3
// 2, 1, 2 // dy1, dy2, dy3
// };
- // TexturedBox inner_bar_blue{getImageCache(), ":slider.png",
- // 30, 10, // atlas offset (x, y)
- // 2, 1, 2, // dx1, dx2, dx3
- // 2, 1, 2 // dy1, dy2, dy3
- // };
+ TexturedBox inner_bar_blue{getImageCache(), ":slider.png",
+ 30, 10, // atlas offset (x, y)
+ 2, 1, 2, // dx1, dx2, dx3
+ 2, 1, 2 // dy1, dy2, dy3
+ };
Texture button{
getImageCache(), ":slider.png", 15, 0, // atlas offset (x, y)
15, 15 // width, height