From a996c83e1079f49830138858f6c54816102daeba Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Mon, 2 Mar 2026 16:36:23 -0500 Subject: add my own bar --- README.md | 3 +++ images/iamcheesemans.png | Bin 0 -> 11190 bytes src/tsar.c | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 images/iamcheesemans.png diff --git a/README.md b/README.md index 9e1e6df..f9f7f01 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,9 @@ tsarc layout -[side] [component 1 2 ... n] -[side] [component 1 2 ... n] ... ne_mene's bar :) ![image](images/nemenes.png) +iamcheeseman's bar :D +![image](images/iamcheesemans.png) + This will set the text value of the component `label` to `"Lorem ipsum"`. Since that component doesn't exist yet, it will also implicitly create it. ``` diff --git a/images/iamcheesemans.png b/images/iamcheesemans.png new file mode 100644 index 0000000..2dc5808 Binary files /dev/null and b/images/iamcheesemans.png differ diff --git a/src/tsar.c b/src/tsar.c index f2fbcc3..00eed2f 100644 --- a/src/tsar.c +++ b/src/tsar.c @@ -139,7 +139,7 @@ void draw_comp_set(float pos_ratio, comp_t **set, int size) { int x = (bar_width - width) * pos_ratio; x += padding * 2*(0.5 - pos_ratio); // Magic formula lol - int y = (bar_height - font->height) / 2; + int y = 0;//(bar_height - font->height) / 2; for (int i = 0; i < size; i++) { comp_t *comp = set[i]; -- cgit v1.3-2-g0d8e