aboutsummaryrefslogtreecommitdiff
path: root/src/draw.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-19 14:28:18 +0100
committerFederico Angelilli <code@fedang.net>2023-11-19 14:28:18 +0100
commit89b205f3138b94325458ab121d5adb4a00091860 (patch)
treeb536773d235ec6ce8be37b2cce781c70441aa523 /src/draw.h
parente774c39c76379738e383e23938f3762b1a57e3b2 (diff)
Add custom bar color
Diffstat (limited to 'src/draw.h')
-rw-r--r--src/draw.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/draw.h b/src/draw.h
index 35a9f68..47ff02d 100644
--- a/src/draw.h
+++ b/src/draw.h
@@ -15,8 +15,8 @@ struct Drawable {
int left_pad;
int right_pad;
int top_pad;
- double alpha;
int line_w;
+ Color background;
GList *layouts;
PangoFontDescription *desc;
};
@@ -29,12 +29,14 @@ typedef struct {
PangoLayout *pl;
} Layout;
-Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha, int line_w);
+Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, int line_w);
void draw_compute_layout(Drawable *draw, Window *win, GList *btns);
void draw_paint(Drawable *draw, Window *win);
+void draw_set_background(Drawable *draw, Color background);
+
void draw_destroy(Drawable *draw);
#endif