CVolumeBar: optimize icon position

Origin commit data
------------------
Commit: 6a50e56321
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-25 (Sun, 25 Jan 2015)
This commit is contained in:
2015-01-25 20:01:35 +01:00
parent d436fff1c1
commit ad5eb1e2a2

View File

@@ -89,14 +89,14 @@ void CVolumeBar::initVolumeBarSize()
vb_pbw = 200; vb_pbw = 200;
vb_pbh = height-4*vb_item_offset; vb_pbh = height-4*vb_item_offset;
//adapt x-pos
vb_icon_x = vb_item_offset;
vb_pbx = vb_icon_x + vb_icon_w + vb_item_offset;
vb_digit_x = vb_pbx + vb_pbw + vb_item_offset;
//result for width //result for width
width = (vb_icon_w + vb_pbw + vb_digit_w) + 4*vb_item_offset; width = (vb_icon_w + vb_pbw + vb_digit_w) + 4*vb_item_offset;
//adapt x-pos
vb_pbx = vb_item_offset + vb_icon_w + vb_item_offset;
vb_icon_x = vb_pbx/2 - vb_icon_w/2 + vb_item_offset;
vb_digit_x = vb_pbx + vb_pbw + vb_item_offset;
// mute icon // mute icon
cvh->getMuteIconDimensions(&mute_ax, &mute_ay, &mute_dx, &mute_dy); cvh->getMuteIconDimensions(&mute_ax, &mute_ay, &mute_dx, &mute_dy);
// info clock // info clock