Media/Themes/Umami: Set terminal colors in @umami_terminal_os_cmd()

This commit is contained in:
Alec Murphy
2025-09-19 13:44:43 -04:00
parent f35aff6170
commit f434358ea2

View File

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