From bbf04f0d4081bec81242bade88d6da5cb005c158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 22 Jan 2024 18:50:11 +0800 Subject: [PATCH] Doc: add TerminalTheme --- CHANGELOG.md | 5 +++++ doc/json_schema.json | 5 +++++ presets/all.jsonc | 1 + presets/ci.jsonc | 1 + src/fastfetch.c | 2 +- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de29ac606..d01a10ccc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.6.4 + +Features: +* Add new module `TerminalTheme` + # 2.6.3 Bugfixes: diff --git a/doc/json_schema.json b/doc/json_schema.json index 88ffbec0b..ce10159d8 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -648,6 +648,7 @@ "terminal", "terminalfont", "terminalsize", + "terminaltheme", "title", "theme", "uptime", @@ -772,6 +773,10 @@ "const": "terminalsize", "description": "Print current terminal size" }, + { + "const": "terminaltheme", + "description": "Print current terminal theme (foreground and background colors)" + }, { "const": "theme", "description": "Print current theme of desktop environment" diff --git a/presets/all.jsonc b/presets/all.jsonc index 53b553aea..06a415963 100644 --- a/presets/all.jsonc +++ b/presets/all.jsonc @@ -28,6 +28,7 @@ "terminal", "terminalfont", "terminalsize", + "terminaltheme", "cpu", "cpuusage", "gpu", diff --git a/presets/ci.jsonc b/presets/ci.jsonc index 0283d9ec2..833f8a4d7 100644 --- a/presets/ci.jsonc +++ b/presets/ci.jsonc @@ -34,6 +34,7 @@ "terminal", "terminalfont", "terminalsize", + "terminaltheme", "cpu", "cpuusage", "gpu", diff --git a/src/fastfetch.c b/src/fastfetch.c index 68bcea67f..9fdfff513 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -300,7 +300,7 @@ static void listModules(bool pretty) { ++count; if (pretty) - printf("%d)%s%-13s: %s\n", count, count > 9 ? " " : " ", (*modules)->name, (*modules)->description); + printf("%d)%s%-14s: %s\n", count, count > 9 ? " " : " ", (*modules)->name, (*modules)->description); else printf("%s:%s\n", (*modules)->name, (*modules)->description); }