aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.c
diff options
context:
space:
mode:
authoruser <user@clank>2026-09-02 15:09:36 +0200
committeruser <user@clank>2026-09-02 15:09:36 +0200
commitcafa48e0a7e1eb48a783bfde6862c5fd82c7aede (patch)
tree8e7874fc9a26a0354154906fd9e6fd30e10fe197 /src/app.c
parentweb: chore (diff)
downloadslosh-cafa48e0a7e1eb48a783bfde6862c5fd82c7aede.tar.gz
slosh-cafa48e0a7e1eb48a783bfde6862c5fd82c7aede.tar.xz
slosh-cafa48e0a7e1eb48a783bfde6862c5fd82c7aede.zip
attach tag: just the count, in theme colours
The +x+y offset goes -- 'N clients' says the thing that matters. The inverse-video chip goes with it: the tag now draws in attach_fg / attach_bg from the theme, defaulting to gray ink on the terminal's own background. Standing information, not an announcement.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index b7af3d1..cc06924 100644
--- a/src/app.c
+++ b/src/app.c
@@ -98,6 +98,12 @@ bool app_cfg_attach_indicator(void) {
return CFG.attach_indicator;
}
+void app_cfg_attach_colors(color_t *fg, color_t *bg) {
+ ensure_config();
+ if (fg) *fg = CFG.attach_fg;
+ if (bg) *bg = CFG.attach_bg;
+}
+
int app_cfg_size_follows(void) {
ensure_config();
return CFG.size_follows;