From e10f1abed5f87b95f3da7e73a95315f0e4289111 Mon Sep 17 00:00:00 2001 From: thindil Date: Sat, 9 Dec 2023 04:51:25 +0000 Subject: [PATCH] feat: use the shell's theme's colors in showFormHeader FossilOrigin-Name: d8408ed078353a5914a3d0d8bedf9851cce2169115ef0946e0b4967388354c09 --- src/output.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/output.nim b/src/output.nim index eb0904da..1fb351e5 100644 --- a/src/output.nim +++ b/src/output.nim @@ -62,7 +62,8 @@ proc showOutput*(message; db; newLine: bool = true; else: message try: - stdout.write(a = style(ss = newMessage, style = getColor(db = db, name = color))) + stdout.write(a = style(ss = newMessage, style = getColor(db = db, + name = color))) except IOError, ValueError: try: stdout.write(s = newMessage) @@ -138,7 +139,8 @@ proc showFormHeader*(message; width: ColumnAmount = (try: terminalWidth().Column if headerType == "hidden": return var table: TerminalTable = TerminalTable() - table.add(parts = yellow(ss = message.center(width = width.int))) + table.add(parts = style(ss = message.center(width = width.int), + style = getColor(db = db, name = headers))) case headerType of "unicode": table.echoTableSeps(seps = boxSeps)