diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-31 16:35:40 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-31 16:35:40 -0500 |
commit | 3f22228a220d065af3f99ba6a538ff80517ecaa2 (patch) | |
tree | 918e0254e63eb63ad9311491022ee55be2f312ac /ted-base.c | |
parent | e26bc35d04c136a142da37a87f6ba47940399879 (diff) |
configurable colors
Diffstat (limited to 'ted-base.c')
-rw-r--r-- | ted-base.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |