commit 7f222b0
wf
·
2026-06-08 13:52:05 +0000 UTC
parent ea154cf
Handle border-{width,color}
2 files changed,
+3,
-1
+0,
-1
1@@ -6,7 +6,6 @@ An attempt at a module-based panel/bar for Wayland.
2 TODO
3 ----
4
5-* Handle `border-{width,color}` fields in module
6 * Add default values for config/module
7 * Provide sample config
8
+3,
-0
1@@ -648,6 +648,9 @@ module_draw(struct app *app, struct module *m, uint32_t x) {
2 uint32_t tx = cx + (cw - tw) / 2;
3 int32_t ty = cy + ch / 2 + th / 2 - app->wld_font->descent;
4
5+ wld_fill_rectangle(app->wld_ren, m->style.border_color,
6+ mx - m->style.border_width, my - m->style.border_width,
7+ mw + m->style.border_width * 2, mh + m->style.border_width * 2);
8 wld_fill_rectangle(app->wld_ren, m->style.background,
9 mx, my, mw, mh);
10 wld_draw_text(app->wld_ren, app->wld_font, m->style.foreground,