mirror of
https://github.com/labwc/labwc.git
synced 2026-02-07 04:07:42 -05:00
theme: add button padding and spacing (#2127)
While at it, separate corner width from button width. Both are independed and having them separately improves readability.
This commit is contained in:
parent
8850368ab9
commit
824b0fa4e3
13 changed files with 105 additions and 39 deletions
|
|
@ -79,6 +79,7 @@ struct wlr_scene_node;
|
|||
*/
|
||||
struct ssd *ssd_create(struct view *view, bool active);
|
||||
struct border ssd_get_margin(const struct ssd *ssd);
|
||||
int ssd_get_corner_width(void);
|
||||
void ssd_update_margin(struct ssd *ssd);
|
||||
void ssd_set_active(struct ssd *ssd, bool active);
|
||||
void ssd_update_title(struct ssd *ssd);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,14 @@ struct theme_snapping_overlay {
|
|||
|
||||
struct theme {
|
||||
int border_width;
|
||||
|
||||
/*
|
||||
* the space between title bar border and
|
||||
* buttons on the left/right/top
|
||||
*/
|
||||
int padding_width;
|
||||
int padding_height;
|
||||
|
||||
int title_height;
|
||||
int menu_overlap_x;
|
||||
int menu_overlap_y;
|
||||
|
|
@ -48,6 +55,8 @@ struct theme {
|
|||
|
||||
/* button width */
|
||||
int window_button_width;
|
||||
/* the space between buttons */
|
||||
int window_button_spacing;
|
||||
|
||||
/* button colors */
|
||||
float window_active_button_menu_unpressed_image_color[4];
|
||||
|
|
|
|||
|
|
@ -538,6 +538,7 @@ const char *view_get_string_prop(struct view *view, const char *prop);
|
|||
void view_update_title(struct view *view);
|
||||
void view_update_app_id(struct view *view);
|
||||
void view_reload_ssd(struct view *view);
|
||||
int view_get_min_width(void);
|
||||
|
||||
void view_set_shade(struct view *view, bool shaded);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue