Add infrastructure to generatecustom highlight/lowlight

This commit is contained in:
Jack Zeal 2026-04-06 09:58:09 -07:00
parent 2591661005
commit 6dffb80d6a
9 changed files with 33 additions and 22 deletions

View file

@ -18,6 +18,8 @@ struct borderset {
enum border_type type;
// So we can disambiguate multiple possible designs cached together
int bevelSize;
int highlight;
int lowlight;
struct lab_data_buffer *top;
struct lab_data_buffer *left;
struct lab_data_buffer *right;
@ -45,9 +47,11 @@ struct bufferset {
extern struct borderset *border_cache;
struct borderset *get_borders(uint32_t id, int size, enum border_type, int bevelSize);
struct borderset *get_borders(uint32_t id, int size, enum border_type, int bevelSize,
int highlight, int lowlight);
struct borderset *create_buffer(uint32_t id, int size, enum border_type, int bevelSize);
struct borderset *create_buffer(uint32_t id, int size, enum border_type, int bevelSize,
int highlight, int lowlight);
struct bufferset *generate_bufferset(struct wlr_scene_tree *tree,
struct borderset *borderset, int bw);