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
Bugfixes:

View File

@ -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"

View File

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

View File

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

View File

@ -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);
}