Adapt playback layout and fonts for displays and add contrast fading
This commit is contained in:
9 files changed
+104
-28
No files matched your search
+11
-5
@@ -22,12 +22,14 @@ type Settings struct {
|
||||
}
|
||||
|
||||
type DisplaySettings struct {
|
||||
Contrast uint8 `hcl:"contrast" menu:"Display contrast" icon:"md_contrast_box"`
|
||||
Sleep string `hcl:"sleep" menu:"Display sleep time" options:"5min,15min,hour,day" icon:"md_power"`
|
||||
Contrast uint8 `hcl:"contrast" menu:"Display contrast" icon:"md_contrast_box"`
|
||||
Sleep string `hcl:"sleep" menu:"Display sleep time" options:"5min,15min,hour,day" icon:"md_power"`
|
||||
Brightness uint8 `hcl:"brightness" menu:"Display brightness" icon:"md_brightness_6"`
|
||||
}
|
||||
|
||||
type PlayerSettings struct {
|
||||
Pause bool
|
||||
Pause bool `hcl:"pause" menu:"Pause" icon:"md_pause"`
|
||||
ShowArt bool `hcl:"show_art" menu:"Show album art" icon:"md_image"`
|
||||
}
|
||||
|
||||
type SpectrumSettings struct {
|
||||
@@ -45,8 +47,12 @@ type SystemSettings struct {
|
||||
|
||||
var DefaultSettings = Settings{
|
||||
Display: DisplaySettings{
|
||||
Contrast: 0x80,
|
||||
Sleep: "hour",
|
||||
Contrast: 0x80,
|
||||
Sleep: "hour",
|
||||
Brightness: 0x7F,
|
||||
},
|
||||
Player: PlayerSettings{
|
||||
ShowArt: true,
|
||||
},
|
||||
Spectrum: SpectrumSettings{
|
||||
Hold: 10,
|
||||
|
||||
Reference in new issue
Block a user