mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-24 01:32:56 -05:00
feature/new-feature-cleanup (#389)
* add json editor to theme editor * add toolbars tools to recipe sections * fix recipe yield * add updated_date to recipe schema * update time cards * fix mobile buttons * fix asset URL * fix PG errors CRUD * remove -d from docker-pro * fix theme tests * remvoe old typing * abstract count function Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -24,7 +24,23 @@ def init_db(db: Session = None) -> None:
|
||||
|
||||
|
||||
def default_theme_init(session: Session):
|
||||
db.themes.create(session, SiteTheme().dict())
|
||||
default_themes = [
|
||||
SiteTheme().dict(),
|
||||
{
|
||||
"name": "Dark",
|
||||
"colors": {
|
||||
"primary": "#424242",
|
||||
"accent": "#455A64",
|
||||
"secondary": "#00796B",
|
||||
"success": "#43A047",
|
||||
"info": "#1976D2",
|
||||
"warning": "#FF6F00",
|
||||
"error": "#EF5350",
|
||||
},
|
||||
},
|
||||
]
|
||||
for theme in default_themes:
|
||||
db.themes.create(session, theme)
|
||||
|
||||
|
||||
def default_settings_init(session: Session):
|
||||
|
||||
Reference in New Issue
Block a user