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