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:
@@ -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) ──
|
||||
|
||||
Reference in New Issue
Block a user