From b6610916c33c7c70cbb724e7a64909bc5d63f19b Mon Sep 17 00:00:00 2001 From: Alec Murphy Date: Sat, 25 Apr 2026 19:19:23 -0400 Subject: [PATCH] Add status to SaphirGlbls --- Defaults.HC | 4 ++-- Saphir/Class.HC | 1 + Saphir/WinMgr.HC | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Defaults.HC b/Defaults.HC index 5c44ec6..833e53e 100644 --- a/Defaults.HC +++ b/Defaults.HC @@ -1,8 +1,8 @@ /* default configuration */ -saphir.border.focus_bg = saphir.border.bg = BLACK; +saphir.border.focus_bg = saphir.border.bg = saphir.status.bg = BLACK; saphir.border.focus_fg = LTRED; -saphir.border.fg = LTGRAY; +saphir.border.fg = saphir.status.fg = LTGRAY; saphir.cursor.bg = CYAN; saphir.cursor.fg = WHITE; diff --git a/Saphir/Class.HC b/Saphir/Class.HC index 19aa3d2..d59a363 100644 --- a/Saphir/Class.HC +++ b/Saphir/Class.HC @@ -24,6 +24,7 @@ class SaphirGlbls { Bool blink; SaphirBorder border; SaphirCursor cursor; + SaphirAttr status; SaphirKeyDev kd; I64 doc_cursor_state; } saphir; diff --git a/Saphir/WinMgr.HC b/Saphir/WinMgr.HC index 807a7e3..4e371d0 100644 --- a/Saphir/WinMgr.HC +++ b/Saphir/WinMgr.HC @@ -33,9 +33,9 @@ CDoc* saphir_DocBorder(U64) ac.task = NULL; } saphir_update_cursor; - gr.dc->color = BLACK; + gr.dc->color = saphir.status.bg; GrRect(gr.dc, 0, GR_HEIGHT - 8, GR_WIDTH, 8); - gr.dc->color = LTGRAY; + gr.dc->color = saphir.status.fg; GrPrint(gr.dc, 0, GR_HEIGHT - 8, "[0x%08x] %s", task, task->task_title);