diff options
author | André Nusser <andre.nusser@googlemail.com> | 2018-06-08 16:58:32 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2018-06-08 16:58:32 +0200 |
commit | 21c9747b3a672d75caff5c2b78c309f481465b93 (patch) | |
tree | 8dd17149c0b30c3a43613dc73933a358c6f85df4 /plugingui | |
parent | 59ec43d9b88dc50f2860b0171f0e4c43e90ee290 (diff) |
Make slider light grey when it is greyed out.
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/resources/slider.png | bin | 1234 -> 1433 bytes | |||
-rw-r--r-- | plugingui/slider.cc | 2 | ||||
-rw-r--r-- | plugingui/slider.h | 15 |
3 files changed, 16 insertions, 1 deletions
diff --git a/plugingui/resources/slider.png b/plugingui/resources/slider.png Binary files differindex 3766e83..d2e5358 100644 --- a/plugingui/resources/slider.png +++ b/plugingui/resources/slider.png 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! |