From 3f22228a220d065af3f99ba6a538ff80517ecaa2 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Thu, 31 Dec 2020 16:35:40 -0500 Subject: configurable colors --- ted-base.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ted-base.c') diff --git a/ted-base.c b/ted-base.c index 8771f02..784bbe9 100644 --- a/ted-base.c +++ b/ted-base.c @@ -4,10 +4,6 @@ typedef struct { i64 argument; } KeyAction; -typedef struct { - u32 colors[COLOR_COUNT]; -} Settings; - #define SCANCODE_COUNT 0x120 // SDL scancodes should be less than this value. // a "key combo" is some subset of {control, shift, alt} + some key. #define KEY_COMBO_COUNT (SCANCODE_COUNT << 3) @@ -21,6 +17,7 @@ typedef struct { typedef struct { TextBuffer *active_buffer; + Settings settings; KeyAction key_actions[KEY_COMBO_COUNT]; char error[256]; } Ted; -- cgit v1.2.3