From 95fb3cad63941466e913775a3c080b310d45d13a Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Tue, 4 Nov 2025 17:29:52 -0500 Subject: refactor onfig file and delete word backward --- config.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 8deca15..dd1488f 100644 --- a/config.h +++ b/config.h @@ -8,12 +8,18 @@ typedef struct { float r,g,b,a; } color_t; -static const bool fancy_scroll = false; -static const uint32_t min_width = 500; -static const uint32_t font_size = 16; -static const color_t text_color = {0.85, 0.85, 0.85, 1.0}; -static const color_t highlight_color = {0.1, 0.3, 0.7, 1.0}; -static const color_t background_color = {0.1, 0.1, 0.1, 1.0}; -static const color_t cursor_color = {0.9, 0.9, 0.9, 0.5}; +typedef struct { + bool fancy_scroll; + uint32_t min_width; + uint32_t font_size; + color_t text_color; + color_t highlight_color; + color_t background_color; + color_t cursor_color; +} config_t; + +extern config_t config; + +void init_conf(); #endif -- cgit v1.2.3