mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
padding_x in lab_img_render() was just to make sure window icons in the titlebar doesn't get too close to adjacent buttons and it didn't felt clean. To remove it from lab_img, this commit changes the size of window icon buffers from (window.button.width)x(window.button.height) to (window.button.width * 0.8)x(window.button.height) and horizontally slide it by (window.button.width * 0.1) to keep the horizontal padding. Note that the size of the hitbox for a window icon is kept the same and nothing is changed from user's perspective.
14 lines
310 B
C
14 lines
310 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef LABWC_IMG_SVG_H
|
|
#define LABWC_IMG_SVG_H
|
|
|
|
#include <librsvg/rsvg.h>
|
|
|
|
struct lab_data_buffer;
|
|
|
|
RsvgHandle *img_svg_load(const char *filename);
|
|
|
|
struct lab_data_buffer *img_svg_render(RsvgHandle *svg, int w, int h,
|
|
double scale);
|
|
|
|
#endif /* LABWC_IMG_SVG_H */
|