This commit is contained in:
dmitry-erin 2024-04-22 05:11:55 +01:00 committed by GitHub
commit d298311a32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 207 additions and 102 deletions

View file

@ -80,12 +80,11 @@ add_scene_buffer(struct wl_list *list, enum ssd_part_type type,
struct ssd_part *
add_scene_button_corner(struct wl_list *part_list, enum ssd_part_type type,
enum ssd_part_type corner_type, struct wlr_scene_tree *parent,
enum ssd_part_type corner_type, struct wlr_scene_tree *parent, float *bg_color,
struct wlr_buffer *corner_buffer, struct wlr_buffer *icon_buffer,
struct wlr_buffer *hover_buffer, int x, struct view *view)
{
int offset_x;
float invisible[4] = { 0, 0, 0, 0 };
if (corner_type == LAB_SSD_PART_CORNER_TOP_LEFT) {
offset_x = rc.theme->border_width;
@ -110,7 +109,7 @@ add_scene_button_corner(struct wl_list *part_list, enum ssd_part_type type,
-offset_x, -rc.theme->border_width);
/* Finally just put a usual theme button on top, using an invisible hitbox */
add_scene_button(part_list, type, parent, invisible, icon_buffer, hover_buffer, 0, view);
add_scene_button(part_list, type, parent, bg_color, icon_buffer, hover_buffer, 0, view);
return button_root;
}