aboutsummaryrefslogtreecommitdiffstats
path: root/src/e_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
commitbdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9 (patch)
tree003492335c1b93c7fae588c75f6117c7840b86fc /src/e_events.go
parentcoool (diff)
downloadhardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.gz
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.bz2
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.xz
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.tar.zst
hardflip-bdf8e0b2e16de39a7fb7f3bf8f51605d542e19c9.zip
fucking great
Diffstat (limited to 'src/e_events.go')
-rw-r--r--src/e_events.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/e_events.go b/src/e_events.go
index 342b871..2889053 100644
--- a/src/e_events.go
+++ b/src/e_events.go
@@ -183,6 +183,12 @@ func e_reload_data(data *HardData) {
} else {
data.opts = c_get_options(conf_dir, &data.load_err)
}
+ if conf_dir == "" {
+ data.colors = DEFAULT_STYLE
+ } else {
+ data.colors = c_get_styles(conf_dir, &data.load_err)
+ }
+ i_init_styles(&data.ui, data.colors)
data.data_dir = c_get_data_dir(&data.ui)
if len(data.data_dir) == 0 {
return