diff options
author | André Nusser <andre.nusser@googlemail.com> | 2017-04-16 20:46:14 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2017-04-16 20:46:14 +0200 |
commit | db196a1bc16be5b9691863af8f8fdd47cca88fb7 (patch) | |
tree | 6c720f9962891831730fefc7f5292aac3058e885 | |
parent | 862e93b48bde709874b9b6bb2d99a26b65247c88 (diff) |
Change slider bar color to blue instead of green.
-rw-r--r-- | plugingui/slider.cc | 4 | ||||
-rw-r--r-- | plugingui/slider.h | 20 |
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 |