|
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; |
@@ -449,8 +451,8 @@ draw_action_volume (MsdMediaKeysWindow *window, |
449 | 451 |
|
450 | 452 | gtk_window_get_size (GTK_WINDOW (window), &window_width, &window_height); |
451 | 453 |
|
452 | | - icon_box_width = round (window_width * 0.65); |
453 | | - icon_box_height = round (window_height * 0.65); |
| 454 | + icon_box_width = round (window_width * ICON_SCALE); |
| 455 | + icon_box_height = round (window_height * ICON_SCALE); |
454 | 456 | volume_box_width = icon_box_width; |
455 | 457 | volume_box_height = round (window_height * 0.05); |
456 | 458 |
|
@@ -573,8 +575,8 @@ draw_action_custom (MsdMediaKeysWindow *window, |
573 | 575 |
|
574 | 576 | gtk_window_get_size (GTK_WINDOW (window), &window_width, &window_height); |
575 | 577 |
|
576 | | - icon_box_width = round (window_width * 0.65); |
577 | | - icon_box_height = round (window_height * 0.65); |
| 578 | + icon_box_width = round (window_width * ICON_SCALE); |
| 579 | + icon_box_height = round (window_height * ICON_SCALE); |
578 | 580 | bright_box_width = round (icon_box_width); |
579 | 581 | bright_box_height = round (window_height * 0.05); |
580 | 582 |
|
|
0 commit comments