feat: theme - 01
This commit is contained in:
@@ -6,7 +6,7 @@ from backend.app.db.settings_repository import SettingsRepository
|
||||
from backend.app.security.path_guard import PathGuard
|
||||
|
||||
|
||||
VALID_THEMES = {"default"}
|
||||
VALID_THEMES = {"default", "macos-soft", "midnight", "graphite", "windows11"}
|
||||
VALID_COLOR_MODES = {"dark", "light"}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ class SettingsService:
|
||||
raise AppError(
|
||||
status_code=400,
|
||||
code="invalid_request",
|
||||
message="Theme must be one of: default",
|
||||
message="Theme must be one of: default, macos-soft, midnight, graphite, windows11",
|
||||
)
|
||||
return normalized
|
||||
|
||||
|
||||
Reference in New Issue
Block a user