Re-organize Settings Menu

This commit is contained in:
NeilClack
2026-04-23 17:29:20 -05:00
parent 6b358bae42
commit 9c88f0c9fd
+16 -13
View File
@@ -78,15 +78,6 @@ func (p *Settings) Init(ctx *PageCtx) error {
label: proclamationsLabel,
})
wifiLabel, err := NewStringItem("WiFi Setup", font, colors.White)
if err != nil {
return fmt.Errorf("creating wifi label: %w", err)
}
p.options = append(p.options, Option{
target: WIFI,
label: wifiLabel,
})
audioLabel, err := NewStringItem("Audio", font, colors.White)
if err != nil {
return fmt.Errorf("creating audio label: %w", err)
@@ -114,13 +105,13 @@ func (p *Settings) Init(ctx *PageCtx) error {
label: licenseKeyLabel,
})
logsLabel, err := NewStringItem("Logs", font, colors.White)
wifiLabel, err := NewStringItem("WiFi Setup", font, colors.White)
if err != nil {
return fmt.Errorf("creating logs label: %w", err)
return fmt.Errorf("creating wifi label: %w", err)
}
p.options = append(p.options, Option{
target: LOGS,
label: logsLabel,
target: WIFI,
label: wifiLabel,
})
updateLabel, err := NewStringItem("Check for Updates", font, colors.White)
@@ -132,6 +123,18 @@ func (p *Settings) Init(ctx *PageCtx) error {
label: updateLabel,
})
logsLabel, err := NewStringItem("Logs", font, colors.White)
if err != nil {
return fmt.Errorf("creating logs label: %w", err)
}
p.options = append(p.options, Option{
target: LOGS,
label: logsLabel,
})
// TODO: Add entry for "Tutorial"
// TODO: Add entry for "About"
// Get base font size from database
baseFontSize := p.Context.CfgPtr.StandardFontSize