new terminal theme
This commit is contained in:
@ -8,10 +8,35 @@
|
|||||||
|
|
||||||
Term TERM;
|
Term TERM;
|
||||||
|
|
||||||
void term_doinit(void *addr) {
|
static uint32_t ansi_colours[8] = {
|
||||||
uint32_t bg = 0x001D1F21;
|
0xFFFFFBF0,
|
||||||
uint32_t fg = 0x00C5C8C6;
|
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(
|
TERM.ftctx = flanterm_fb_init(
|
||||||
NULL, // malloc
|
NULL, // malloc
|
||||||
NULL, // free
|
NULL, // free
|
||||||
@ -26,12 +51,12 @@ void term_doinit(void *addr) {
|
|||||||
BOOT_INFO.fb->blue_mask_size,
|
BOOT_INFO.fb->blue_mask_size,
|
||||||
BOOT_INFO.fb->blue_mask_shift,
|
BOOT_INFO.fb->blue_mask_shift,
|
||||||
NULL, // canvas
|
NULL, // canvas
|
||||||
NULL, // ansi colors
|
ansi_colours, // ansi colors
|
||||||
NULL, // ansi bright colors
|
ansi_bright_colours, // ansi bright colors
|
||||||
&bg, // default bg
|
&default_bg, // default bg
|
||||||
&fg, // default fg
|
&default_fg, // default fg
|
||||||
NULL, // default bg bright
|
&default_fg_bright, // default bg bright
|
||||||
NULL, // default fg bright
|
&default_bg_bright, // default fg bright
|
||||||
FM_T_437_F16,
|
FM_T_437_F16,
|
||||||
8,
|
8,
|
||||||
16,
|
16,
|
||||||
|
Reference in New Issue
Block a user