feat(win32 gui): add gui_config.json config file

This commit is contained in:
CJ van den Berg 2025-01-08 12:51:35 +01:00
parent 6d7a316abb
commit eaa7ad87b7
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 40 additions and 21 deletions

View file

@ -83,7 +83,7 @@ fn start(args: StartArgs) tp.result {
fn init(allocator: Allocator) !*Self {
var self = try allocator.create(Self);
var conf, const conf_bufs = root.read_config(allocator);
var conf, const conf_bufs = root.read_config(config, allocator);
defer root.free_config(allocator, conf_bufs);
const theme = get_theme_by_name(conf.theme) orelse get_theme_by_name("dark_modern") orelse return tp.exit("unknown theme");