|
34 | 34 |
|
35 | 35 | #define MSD_MEDIA_KEYS_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MSD_TYPE_MEDIA_KEYS_WINDOW, MsdMediaKeysWindowPrivate)) |
36 | 36 |
|
| 37 | +#define ICON_SCALE 0.65 /* size of the icon compared to the whole OSD */ |
| 38 | + |
37 | 39 | struct MsdMediaKeysWindowPrivate |
38 | 40 | { |
39 | 41 | MsdMediaKeysWindowAction action; |
@@ -482,8 +484,8 @@ draw_action_volume (MsdMediaKeysWindow *window, |
482 | 484 |
|
483 | 485 | gtk_window_get_size (GTK_WINDOW (window), &window_width, &window_height); |
484 | 486 |
|
485 | | - icon_box_width = round (window_width * 0.65); |
486 | | - icon_box_height = round (window_height * 0.65); |
| 487 | + icon_box_width = round (window_width * ICON_SCALE); |
| 488 | + icon_box_height = round (window_height * ICON_SCALE); |
487 | 489 | volume_box_width = icon_box_width; |
488 | 490 | volume_box_height = round (window_height * 0.05); |
489 | 491 |
|
@@ -618,8 +620,8 @@ draw_action_custom (MsdMediaKeysWindow *window, |
618 | 620 |
|
619 | 621 | gtk_window_get_size (GTK_WINDOW (window), &window_width, &window_height); |
620 | 622 |
|
621 | | - icon_box_width = round (window_width * 0.65); |
622 | | - icon_box_height = round (window_height * 0.65); |
| 623 | + icon_box_width = round (window_width * ICON_SCALE); |
| 624 | + icon_box_height = round (window_height * ICON_SCALE); |
623 | 625 | label_box_width = round (window_width); |
624 | 626 | label_box_height = round (window_height * 0.175); |
625 | 627 |
|
|
0 commit comments