aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-11-04 17:29:52 -0500
committerJack Jamison <jackqjamison@gmail.com>2025-11-06 19:45:03 -0500
commit95fb3cad63941466e913775a3c080b310d45d13a (patch)
tree555cbaf4d5fd7454efbe6ab200e268c04b53ed49 /config.h
parent38d43004656a2d00960484e5e5a5ece46bde840b (diff)
refactor onfig file and delete word backward
Diffstat (limited to 'config.h')
-rw-r--r--config.h20
1 files changed, 13 insertions, 7 deletions
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