summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZhang Xianwei <[email protected]>2018-11-26 14:26:30 +0800
committerraveit65 <[email protected]>2018-11-27 13:50:14 +0100
commited4afcacb5486ee1c8ba43c83327928cc23b11f2 (patch)
tree8cb215196caba25d39a97db10d91498200b31b58 /src
parent2c2f966a9cf902890519ef0d727a8b0fedc89654 (diff)
downloadmate-power-manager-ed4afcacb5486ee1c8ba43c83327928cc23b11f2.tar.bz2
mate-power-manager-ed4afcacb5486ee1c8ba43c83327928cc23b11f2.tar.xz
media-keys: Tweak the OSD's bright bar position
Move it down a little. Signed-off-by: Zhang Xianwei <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gsd-media-keys-window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gsd-media-keys-window.c b/src/gsd-media-keys-window.c
index 6c2a981..9371940 100644
--- a/src/gsd-media-keys-window.c
+++ b/src/gsd-media-keys-window.c
@@ -457,9 +457,9 @@ draw_action_volume (MsdMediaKeysWindow *window,
volume_box_height = round (window_height * 0.05);
icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height - volume_box_height) / 2;
+ icon_box_y0 = (window_height - icon_box_height) / 2;
volume_box_x0 = round (icon_box_x0);
- volume_box_y0 = round (icon_box_height + icon_box_y0);
+ volume_box_y0 = round (window_height - icon_box_y0 / 2 - volume_box_height);
res = render_speaker (window,
cr,
@@ -581,9 +581,9 @@ draw_action_custom (MsdMediaKeysWindow *window,
bright_box_height = round (window_height * 0.05);
icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height - bright_box_height) / 2;
+ icon_box_y0 = (window_height - icon_box_height) / 2;
bright_box_x0 = round (icon_box_x0);
- bright_box_y0 = round (icon_box_height + icon_box_y0);
+ bright_box_y0 = round (window_height - icon_box_y0 / 2 - bright_box_height);
#if 0
g_message ("icon box: w=%f h=%f _x0=%f _y0=%f",