Setting window sizes, NewDir

This commit is contained in:
Krzosa Karol
2025-05-10 11:19:09 +02:00
parent c139c44503
commit a2b081ec15
12 changed files with 184 additions and 78 deletions

View File

@@ -254,8 +254,6 @@ void GenerateConfig() {
colors.add({"TitleBarSelection", "GruvboxLight3"});
Array<Var> style = {};
style.add({"ConsoleSizeSmall", "10"});
style.add({"ConsoleSizeBig", "30"});
style.add({"WaitForEvents", "1"});
style.add({"DrawLineNumbers", "1"});
style.add({"DrawScrollbar", "1"});
@@ -272,8 +270,11 @@ void GenerateConfig() {
For(gruvbox) sb.add(Fmt("Color %s = %s;", it.name, C(it.value)));
For(colors) sb.add(Fmt("Color Color%s = %s;", it.name, C(it.value)));
For(style) {
if (CHAR_IsDigit(it.value[0])) sb.add(Fmt("Int Style%s = %s;", it.name, it.value));
else sb.add(Fmt("String Style%s = \"%s\";", it.name, it.value));
if (CHAR_IsDigit(it.value[0])) {
sb.add(Fmt("Int Style%s = %s;", it.name, it.value));
} else {
sb.add(Fmt("String Style%s = \"%s\";", it.name, it.value));
}
}
}
S8_String string = Merge(scratch, sb, "\n");