mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
Doc: add TerminalTheme
This commit is contained in:
parent
ec6195133b
commit
bbf04f0d40
@ -1,3 +1,8 @@
|
|||||||
|
# 2.6.4
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Add new module `TerminalTheme`
|
||||||
|
|
||||||
# 2.6.3
|
# 2.6.3
|
||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
@ -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"
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
"terminal",
|
"terminal",
|
||||||
"terminalfont",
|
"terminalfont",
|
||||||
"terminalsize",
|
"terminalsize",
|
||||||
|
"terminaltheme",
|
||||||
"cpu",
|
"cpu",
|
||||||
"cpuusage",
|
"cpuusage",
|
||||||
"gpu",
|
"gpu",
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
"terminal",
|
"terminal",
|
||||||
"terminalfont",
|
"terminalfont",
|
||||||
"terminalsize",
|
"terminalsize",
|
||||||
|
"terminaltheme",
|
||||||
"cpu",
|
"cpu",
|
||||||
"cpuusage",
|
"cpuusage",
|
||||||
"gpu",
|
"gpu",
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user