Skip to content
Permalink
Browse files

media-keys: Tweak the OSD's bright bar position

Move it down a little.

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
  • Loading branch information...
zhangxianwei8 authored and raveit65 committed Nov 26, 2018
1 parent 2c2f966 commit ed4afcacb5486ee1c8ba43c83327928cc23b11f2
Showing with 4 additions and 4 deletions.
  1. +4 −4 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",

0 comments on commit ed4afca

Please sign in to comment.
You can’t perform that action at this time.