Add status to SaphirGlbls

This commit is contained in:
Alec Murphy
2026-04-25 19:19:23 -04:00
parent edec5d9bb5
commit b6610916c3
3 changed files with 5 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
/* default configuration */ /* 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.focus_fg = LTRED;
saphir.border.fg = LTGRAY; saphir.border.fg = saphir.status.fg = LTGRAY;
saphir.cursor.bg = CYAN; saphir.cursor.bg = CYAN;
saphir.cursor.fg = WHITE; saphir.cursor.fg = WHITE;

View File

@@ -24,6 +24,7 @@ class SaphirGlbls {
Bool blink; Bool blink;
SaphirBorder border; SaphirBorder border;
SaphirCursor cursor; SaphirCursor cursor;
SaphirAttr status;
SaphirKeyDev kd; SaphirKeyDev kd;
I64 doc_cursor_state; I64 doc_cursor_state;
} saphir; } saphir;

View File

@@ -33,9 +33,9 @@ CDoc* saphir_DocBorder(U64)
ac.task = NULL; ac.task = NULL;
} }
saphir_update_cursor; saphir_update_cursor;
gr.dc->color = BLACK; gr.dc->color = saphir.status.bg;
GrRect(gr.dc, 0, GR_HEIGHT - 8, GR_WIDTH, 8); 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, GrPrint(gr.dc, 0, GR_HEIGHT - 8, "[0x%08x] %s", task,
task->task_title); task->task_title);