mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-07 00:13:12 -05:00
fix: dynamically load theme from API endpoint (#2688)
* dynamically load theme from API endpoint * add documentation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user