fix: dynamically load theme from API endpoint (#2688)

* dynamically load theme from API endpoint

* add documentation
This commit is contained in:
Hayden
2023-10-26 22:09:22 -05:00
committed by GitHub
parent 18b7e3ac9a
commit 75e95817a3
6 changed files with 132 additions and 5 deletions

View File

@@ -16,6 +16,24 @@ class AppInfo(MealieModel):
allow_signup: bool
class AppTheme(MealieModel):
light_primary: str = "#E58325"
light_accent: str = "#007A99"
light_secondary: str = "#973542"
light_success: str = "#43A047"
light_info: str = "#1976D2"
light_warning: str = "#FF6D00"
light_error: str = "#EF5350"
dark_primary: str = "#E58325"
dark_accent: str = "#007A99"
dark_secondary: str = "#973542"
dark_success: str = "#43A047"
dark_info: str = "#1976D2"
dark_warning: str = "#FF6D00"
dark_error: str = "#EF5350"
class AdminAboutInfo(AppInfo):
versionLatest: str
api_port: int