save peak meter window size

This commit is contained in:
Drew Weymouth
2024-07-22 19:04:59 -07:00
parent 9d0b381572
commit 4d635d88b9
4 changed files with 30 additions and 5 deletions
+10
View File
@@ -124,6 +124,11 @@ type TranscodingConfig struct {
ForceRawFile bool
}
type PeakMeterConfig struct {
WindowHeight int
WindowWidth int
}
type Config struct {
Application AppConfig
Servers []*ServerConfig
@@ -141,6 +146,7 @@ type Config struct {
ReplayGain ReplayGainConfig
Transcoding TranscodingConfig
Theme ThemeConfig
PeakMeter PeakMeterConfig
}
var SupportedStartupPages = []string{"Albums", "Favorites", "Playlists"}
@@ -221,6 +227,10 @@ func DefaultConfig(appVersionTag string) *Config {
Theme: ThemeConfig{
Appearance: "Dark",
},
PeakMeter: PeakMeterConfig{
WindowWidth: 375,
WindowHeight: 100,
},
}
}