new terminal theme

This commit is contained in:
2025-09-28 23:51:17 +02:00
parent e03e950879
commit 8db585f581

View File

@ -8,10 +8,35 @@
Term TERM;
void term_doinit(void *addr) {
uint32_t bg = 0x001D1F21;
uint32_t fg = 0x00C5C8C6;
static uint32_t ansi_colours[8] = {
0xFFFFFBF0,
0xFFE64C4C,
0xFF4CAF50,
0xFFCC9900,
0xFF337AB7,
0xFF9B59B6,
0xFF0097A7,
0xFF555555
};
static uint32_t ansi_bright_colours[8] = {
0xFFBFB9AA,
0xFFFF6B6B,
0xFF66BB6A,
0xFFFFC107,
0xFF42A5F5,
0xFFBA68C8,
0xFF26C6DA,
0xFF000000
};
// defaults
static uint32_t default_bg = 0xFFFFFBF0;
static uint32_t default_fg = 0xFF222222;
static uint32_t default_bg_bright = 0xFFFFFBF0;
static uint32_t default_fg_bright = 0xFF000000;
void term_doinit(void *addr) {
TERM.ftctx = flanterm_fb_init(
NULL, // malloc
NULL, // free
@ -26,12 +51,12 @@ void term_doinit(void *addr) {
BOOT_INFO.fb->blue_mask_size,
BOOT_INFO.fb->blue_mask_shift,
NULL, // canvas
NULL, // ansi colors
NULL, // ansi bright colors
&bg, // default bg
&fg, // default fg
NULL, // default bg bright
NULL, // default fg bright
ansi_colours, // ansi colors
ansi_bright_colours, // ansi bright colors
&default_bg, // default bg
&default_fg, // default fg
&default_fg_bright, // default bg bright
&default_bg_bright, // default fg bright
FM_T_437_F16,
8,
16,