mirror of
https://github.com/labwc/labwc.git
synced 2025-11-07 13:30:06 -05:00
img: apply padding around window icon only horizontally
16dbdc64changed the padding around the app icon in the titlebar to be applied both vertically and horizontally rather than only horizontally because it was more natural from a developer's perspective, but some users complained about the smaller icons in certain configurations. So let's undo the change in16dbdc64and apply the icon padding only horizontally for now. We can add configurations for the icon padding (or icon size independent from window.button.{width,height}?) later.
This commit is contained in:
parent
70fb713874
commit
6feb6589ea
5 changed files with 14 additions and 14 deletions
|
|
@ -107,7 +107,7 @@ add_scene_button(struct wl_list *part_list, enum ssd_part_type type,
|
|||
struct ssd_part *icon_part = add_scene_part(part_list, type);
|
||||
struct scaled_img_buffer *img_buffer = scaled_img_buffer_create(
|
||||
parent, imgs[state_set], rc.theme->window_button_width,
|
||||
rc.theme->window_button_height, /* padding */ 0);
|
||||
rc.theme->window_button_height, /* padding_x */ 0);
|
||||
assert(img_buffer);
|
||||
icon_part->node = &img_buffer->scene_buffer->node;
|
||||
wlr_scene_node_set_enabled(icon_part->node, false);
|
||||
|
|
|
|||
|
|
@ -597,7 +597,7 @@ ssd_update_window_icon(struct ssd *ssd)
|
|||
*/
|
||||
int icon_padding = theme->window_button_width / 10;
|
||||
int icon_size = MIN(theme->window_button_width - 2 * icon_padding,
|
||||
theme->window_button_height - 2 * icon_padding);
|
||||
theme->window_button_height);
|
||||
|
||||
/*
|
||||
* Load/render icons at the max scale of any usable output (at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue