Re-organize Settings Menu
This commit is contained in:
@@ -78,15 +78,6 @@ func (p *Settings) Init(ctx *PageCtx) error {
|
|||||||
label: proclamationsLabel,
|
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)
|
audioLabel, err := NewStringItem("Audio", font, colors.White)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("creating audio label: %w", err)
|
return fmt.Errorf("creating audio label: %w", err)
|
||||||
@@ -114,13 +105,13 @@ func (p *Settings) Init(ctx *PageCtx) error {
|
|||||||
label: licenseKeyLabel,
|
label: licenseKeyLabel,
|
||||||
})
|
})
|
||||||
|
|
||||||
logsLabel, err := NewStringItem("Logs", font, colors.White)
|
wifiLabel, err := NewStringItem("WiFi Setup", font, colors.White)
|
||||||
if err != nil {
|
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{
|
p.options = append(p.options, Option{
|
||||||
target: LOGS,
|
target: WIFI,
|
||||||
label: logsLabel,
|
label: wifiLabel,
|
||||||
})
|
})
|
||||||
|
|
||||||
updateLabel, err := NewStringItem("Check for Updates", font, colors.White)
|
updateLabel, err := NewStringItem("Check for Updates", font, colors.White)
|
||||||
@@ -132,6 +123,18 @@ func (p *Settings) Init(ctx *PageCtx) error {
|
|||||||
label: updateLabel,
|
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
|
// Get base font size from database
|
||||||
baseFontSize := p.Context.CfgPtr.StandardFontSize
|
baseFontSize := p.Context.CfgPtr.StandardFontSize
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user