mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-10 13:09:55 +02:00
Media/Themes/Umami: Set terminal colors in @umami_terminal_os_cmd()
This commit is contained in:
@@ -523,6 +523,20 @@ U0 @umami_terminal_os_cmd(Window* win, TerminalWidget* widget)
|
||||
StrPrint(win->title, "Terminal - %s", argv[1]);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
// Set foreground color
|
||||
if (argc > 3) {
|
||||
widget->color.foreground = Color(Str2I64(argv[1]), Str2I64(argv[2]), Str2I64(argv[3]),
|
||||
@t(argc > 4, Str2I64(argv[4]), 255));
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
// Set background color
|
||||
if (argc > 3) {
|
||||
widget->color.background = Color(Str2I64(argv[1]), Str2I64(argv[2]), Str2I64(argv[3]),
|
||||
@t(argc > 4, Str2I64(argv[4]), 255));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user