UI Customize: add custom-theme flag for default theme (#33042)
This commit is contained in:
parent
eeb2f593bf
commit
a8c4dfd372
7 changed files with 50 additions and 1 deletions
|
|
@ -46,6 +46,9 @@ const (
|
|||
flagCustomPhone = "custom-phone"
|
||||
flagCustomPhoneDescription = "Support phone number shown in the UI"
|
||||
|
||||
flagCustomTheme = "custom-theme"
|
||||
flagCustomThemeDescription = "Default UI theme (auto, light, dark). Users can override in the UI."
|
||||
|
||||
flagBatteryMode = "battery-mode"
|
||||
flagBatteryModeDescription = "Set battery mode (normal, hold, charge, holdcharge)"
|
||||
flagBatteryModeWait = "battery-mode-wait"
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ func init() {
|
|||
rootCmd.Flags().StringVar(&customization.Website, flagCustomWebsite, os.Getenv("EVCC_CUSTOM_WEBSITE"), flagCustomWebsiteDescription)
|
||||
rootCmd.Flags().StringVar(&customization.Email, flagCustomEmail, os.Getenv("EVCC_CUSTOM_EMAIL"), flagCustomEmailDescription)
|
||||
rootCmd.Flags().StringVar(&customization.Phone, flagCustomPhone, os.Getenv("EVCC_CUSTOM_PHONE"), flagCustomPhoneDescription)
|
||||
rootCmd.Flags().StringVar(&customization.Theme, flagCustomTheme, os.Getenv("EVCC_CUSTOM_THEME"), flagCustomThemeDescription)
|
||||
}
|
||||
|
||||
// initConfig reads in config file and ENV variables if set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue