mirror of
https://github.com/kolunmi/dwlb.git
synced 2025-10-27 10:14:27 +00:00
Merge 26858d7b620b667ce1aa8dbc35f5d71f04ccdaba into 48dbe00bdb98a1ae6a0e60558ce14503616aa759
This commit is contained in:
commit
d26d17a75d
@ -14,6 +14,8 @@ static bool bottom = false;
|
|||||||
static bool hide_vacant = false;
|
static bool hide_vacant = false;
|
||||||
// vertical pixel padding above and below text
|
// vertical pixel padding above and below text
|
||||||
static uint32_t vertical_padding = 1;
|
static uint32_t vertical_padding = 1;
|
||||||
|
// horizontal pixel padding of the left and right of each character
|
||||||
|
static uint32_t horizontal_padding = 0;
|
||||||
// allow in-line color commands in status text
|
// allow in-line color commands in status text
|
||||||
static bool status_commands = true;
|
static bool status_commands = true;
|
||||||
// center title text
|
// center title text
|
||||||
|
|||||||
2
dwlb.c
2
dwlb.c
@ -1904,7 +1904,7 @@ main(int argc, char **argv)
|
|||||||
snprintf(buf, sizeof buf, "dpi=%u", dpi);
|
snprintf(buf, sizeof buf, "dpi=%u", dpi);
|
||||||
if (!(font = fcft_from_name(1, (const char *[]) {fontstr}, buf)))
|
if (!(font = fcft_from_name(1, (const char *[]) {fontstr}, buf)))
|
||||||
DIE("Could not load font");
|
DIE("Could not load font");
|
||||||
textpadding = font->height / 2;
|
textpadding = (font->height + horizontal_padding) / 2;
|
||||||
height = font->height / buffer_scale + vertical_padding * 2;
|
height = font->height / buffer_scale + vertical_padding * 2;
|
||||||
|
|
||||||
/* Configure tag names */
|
/* Configure tag names */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user