UI: header icon + title; always show OC controls; About Logo cleanup

- Use gui_icon.png next to APP_TITLE in the applet header (replaces text-only header Logo).
- Simplify Logo to About tab only; drop unused HEADER style.
- Show frequency/voltage/toggle controls even when INI keys are absent (defaults until edited).
- Add resources/gui_icon.png to RomFS.

Made-with: Cursor
This commit is contained in:
Niklas Friesen
2026-03-30 19:57:12 +02:00
parent a61fa67dca
commit b5ba2d71df
6 changed files with 19 additions and 61 deletions

View File

@@ -86,11 +86,8 @@ void OsConfigTab::buildUI()
for (const auto& def : OC_BOOL_KEYS)
{
if (this->ini.hasKey(this->osSection, def.key))
{
bool val = this->ini.getBool(this->osSection, def.key);
addBooleanToggle(def.label, "", def.key, val);
}
bool val = this->ini.getBool(this->osSection, def.key, false);
addBooleanToggle(def.label, "", def.key, val);
}
// ── Frequency Settings ──
@@ -101,11 +98,9 @@ void OsConfigTab::buildUI()
for (const auto& def : OC_FREQ_KEYS)
{
if (this->ini.hasKey(this->osSection, def.key))
{
uint32_t val = (uint32_t)this->ini.getInt(this->osSection, def.key, 0);
addFreqDropdown(def.label, "", def.key, val, def.options);
}
int defVal = def.options.empty() ? 0 : (int)def.options.front();
uint32_t val = (uint32_t)this->ini.getInt(this->osSection, def.key, defVal);
addFreqDropdown(def.label, "", def.key, val, def.options);
}
// ── Voltage Settings ──
@@ -116,11 +111,9 @@ void OsConfigTab::buildUI()
for (const auto& def : OC_VOLTAGE_KEYS)
{
if (this->ini.hasKey(this->osSection, def.key))
{
uint32_t val = (uint32_t)this->ini.getInt(this->osSection, def.key, 0);
addVoltageDropdown(def.label, "", def.key, val, def.options);
}
int defVal = def.options.empty() ? 0 : (int)def.options.front();
uint32_t val = (uint32_t)this->ini.getInt(this->osSection, def.key, defVal);
addVoltageDropdown(def.label, "", def.key, val, def.options);
}
// ── Other Keys (read-only info) ──