19 bgColor.x =
static_cast<float>(config.
getDouble(
"Viewport/BgR", 71.0 / 255.0));
20 bgColor.y =
static_cast<float>(config.
getDouble(
"Viewport/BgG", 95.0 / 255.0));
21 bgColor.z =
static_cast<float>(config.
getDouble(
"Viewport/BgB", 121.0 / 255.0));
53 LOG_INFO <<
"Settings and UI layout saved.";
Simple INI file reader/writer with section/key support.
bool getBool(const std::string &key, bool defaultValue=false) const
int getInt(const std::string &key, int defaultValue=0) const
void setValue(const std::string &key, int value)
std::string getString(const std::string &key, const std::string &defaultValue="") const
double getDouble(const std::string &key, double defaultValue=0.0) const
constexpr int themeCount() noexcept
Number of available themes.
int & currentThemeRef() noexcept
Writable reference so ImGui::Combo can bind directly.
static constexpr const char * configPath
static constexpr const char * imguiIniPath
void save() const
Persist to Config.ini and save the ImGui layout to disk.
void load()
Load from Config.ini (also restores the current ThemeManager theme).