From db196a1bc16be5b9691863af8f8fdd47cca88fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sun, 16 Apr 2017 20:46:14 +0200 Subject: Change slider bar color to blue instead of green. --- plugingui/slider.cc | 4 ++-- 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 -- cgit v1.2.3