Nord theme and undo system refinements

- Improve text input/event batching
- Enhance debugging with optional instrumentation
- Begin implementation of non-linear undo tree structure.
This commit is contained in:
2025-12-01 11:59:51 -08:00
parent 0cb7d36f2a
commit 464ad8d1ae
10 changed files with 944 additions and 294 deletions

View File

@@ -23,7 +23,7 @@ default_config_path()
{
const char *home = std::getenv("HOME");
if (!home || !*home)
return std::string();
return {};
std::string path(home);
path += "/.config/kte/kge.ini";
return path;
@@ -34,7 +34,8 @@ GUIConfig
GUIConfig::Load()
{
GUIConfig cfg; // defaults already set
std::string path = default_config_path();
const std::string path = default_config_path();
if (!path.empty()) {
cfg.LoadFromFile(path);
}
@@ -98,8 +99,9 @@ GUIConfig::LoadFromFile(const std::string &path)
try {
v = std::stof(val);
} catch (...) {}
if (v > 0.0f)
if (v > 0.0f) {
font_size = v;
}
}
}