Doc: add TerminalTheme

This commit is contained in:
李通洲 2024-01-22 18:50:11 +08:00
parent ec6195133b
commit bbf04f0d40
No known key found for this signature in database
GPG Key ID: 79D0E1C4B64C86A0
5 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
# 2.6.4
Features:
* Add new module `TerminalTheme`
# 2.6.3 # 2.6.3
Bugfixes: Bugfixes:

View File

@ -648,6 +648,7 @@
"terminal", "terminal",
"terminalfont", "terminalfont",
"terminalsize", "terminalsize",
"terminaltheme",
"title", "title",
"theme", "theme",
"uptime", "uptime",
@ -772,6 +773,10 @@
"const": "terminalsize", "const": "terminalsize",
"description": "Print current terminal size" "description": "Print current terminal size"
}, },
{
"const": "terminaltheme",
"description": "Print current terminal theme (foreground and background colors)"
},
{ {
"const": "theme", "const": "theme",
"description": "Print current theme of desktop environment" "description": "Print current theme of desktop environment"

View File

@ -28,6 +28,7 @@
"terminal", "terminal",
"terminalfont", "terminalfont",
"terminalsize", "terminalsize",
"terminaltheme",
"cpu", "cpu",
"cpuusage", "cpuusage",
"gpu", "gpu",

View File

@ -34,6 +34,7 @@
"terminal", "terminal",
"terminalfont", "terminalfont",
"terminalsize", "terminalsize",
"terminaltheme",
"cpu", "cpu",
"cpuusage", "cpuusage",
"gpu", "gpu",

View File

@ -300,7 +300,7 @@ static void listModules(bool pretty)
{ {
++count; ++count;
if (pretty) 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 else
printf("%s:%s\n", (*modules)->name, (*modules)->description); printf("%s:%s\n", (*modules)->name, (*modules)->description);
} }