summaryrefslogtreecommitdiff
path: root/plugingui/diskstreamingframecontent.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-20 20:30:03 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-20 20:36:27 +0200
commit769fc2a150f73f9fff48f72ce6f7d9a42ce0e366 (patch)
tree55a9fc2cd80544e224a446a1c88ca0ffcf962855 /plugingui/diskstreamingframecontent.cc
parent73fc462b95827920e5225f4f655b6640f6affce0 (diff)
Introduce gaps between buttons and content.
This was necessary because of the new button texture.
Diffstat (limited to 'plugingui/diskstreamingframecontent.cc')
-rw-r--r--plugingui/diskstreamingframecontent.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugingui/diskstreamingframecontent.cc b/plugingui/diskstreamingframecontent.cc
index 228702f..b4c2c7c 100644
--- a/plugingui/diskstreamingframecontent.cc
+++ b/plugingui/diskstreamingframecontent.cc
@@ -70,12 +70,14 @@ void DiskstreamingframeContent::resize(std::size_t width, std::size_t height)
{
Widget::resize(width, height);
+ std::size_t slider_button_gap = 10;
+
slider_width = 0.8 * width;
- button_width = width - slider_width;
+ button_width = width - slider_width - slider_button_gap;
label_text.move(0, 0);
slider.move(0, 20);
- button.move(slider_width, 10);
+ button.move(slider_width + slider_button_gap, 10);
label_size.move(0, 40);
label_text.resize(slider_width, 15);