mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
Render titles
This commit is contained in:
parent
f3d0885524
commit
b667298a0a
11 changed files with 155 additions and 19 deletions
|
|
@ -206,7 +206,7 @@ struct bar_config {
|
|||
struct border_colors {
|
||||
float border[4];
|
||||
float background[4];
|
||||
float text[4];
|
||||
uint32_t text; /**< uint32_t because that's the format that cairo uses */
|
||||
float indicator[4];
|
||||
float child_border[4];
|
||||
};
|
||||
|
|
@ -461,6 +461,8 @@ struct bar_config *default_bar_config(void);
|
|||
|
||||
void free_bar_config(struct bar_config *bar);
|
||||
|
||||
int get_font_text_height(char *font);
|
||||
|
||||
/* Global config singleton. */
|
||||
extern struct sway_config *config;
|
||||
|
||||
|
|
|
|||
|
|
@ -85,6 +85,11 @@ struct sway_container {
|
|||
|
||||
float alpha;
|
||||
|
||||
struct wlr_texture *title_focused;
|
||||
struct wlr_texture *title_focused_inactive;
|
||||
struct wlr_texture *title_unfocused;
|
||||
struct wlr_texture *title_urgent;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
// Raised after the tree updates, but before arrange_windows
|
||||
|
|
@ -191,4 +196,6 @@ struct sway_container *container_reap_empty_recursive(
|
|||
|
||||
struct sway_container *container_flatten(struct sway_container *container);
|
||||
|
||||
void container_update_title_textures(struct sway_container *container);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue