Einstellungsdialog angepasst

This commit is contained in:
Bernd Reuther committed 2026-10-06 10:58:42 +02:00
1 parent aa1bcb7c75
commit b2d3792f59
1 file changed
+11 -8
+11 -8
View File
@@ -47,14 +47,17 @@ DEFAULT_SETTINGS = {
} }
BASE_THEME = { BASE_THEME = {
"background": "#111111", "surface": "#181818", "surface_dark": "#0b0b0b", "border": "#4a4a4a", "text": "#eeeeee", "background": "#111111", "surface": "#181818", "surface_alt": "#1e1e1e", "surface_dark": "#0b0b0b", "border": "#4a4a4a", "text": "#eeeeee",
"text_secondary": "#cccccc", "primary": "#1769aa", "accent": "#ffcc33", "text_secondary": "#cccccc", "live_surface": "#2a1717", "recording": "#d32f2f",
"primary": "#1769aa", "accent": "#ffcc33",
"success": "#2e7d32", "warning": "#ed6c02", "danger": "#d32f2f", "success": "#2e7d32", "warning": "#ed6c02", "danger": "#d32f2f",
} }
BASE_COLOR_LABELS = { BASE_COLOR_LABELS = {
"background": "Hintergrund", "surface_dark": "Dunkle Fläche", "surface": "Flächen", "border": "Rahmen", "text": "Text", "background": "Hintergrund", "surface": "Flächen", "surface_alt": "Alternative Fläche / Tabellenkopf",
"text_secondary": "Sekundärtext", "primary": "Primärfarbe", "accent": "Akzentfarbe", "surface_dark": "Dunkle Fläche", "border": "Rahmen", "text": "Text",
"text_secondary": "Sekundärtext", "live_surface": "Fläche laufende Aufnahme", "recording": "Aufnahme / Aufnahme-Rahmen",
"primary": "Primärfarbe", "accent": "Akzentfarbe",
"success": "Erfolg", "warning": "Warnung", "danger": "Fehler / Gefahr", "success": "Erfolg", "warning": "Warnung", "danger": "Fehler / Gefahr",
} }
@@ -84,16 +87,16 @@ def derive_theme(base):
primary, accent = c["primary"], c["accent"] primary, accent = c["primary"], c["accent"]
success, warning, danger = c["success"], c["warning"], c["danger"] success, warning, danger = c["success"], c["warning"], c["danger"]
return { return {
"background": bg, "surface": surface, "surface_alt": _lighten(surface,.12), "surface_dark": surface_dark, "background": bg, "surface": surface, "surface_alt": c["surface_alt"], "surface_dark": surface_dark,
"text": text, "text_secondary": secondary, "text_muted": _mix(secondary,bg,.35), "text_faint": _mix(secondary,bg,.58), "text": text, "text_secondary": secondary, "text_muted": _mix(secondary,bg,.35), "text_faint": _mix(secondary,bg,.58),
"border": c["border"], "border_subtle": _mix(surface,c["border"],.45), "control": _mix(surface,c["border"],.55), "control_hover": _lighten(c["border"],.12), "border": c["border"], "border_subtle": _mix(surface,c["border"],.45), "control": _mix(surface,c["border"],.55), "control_hover": _lighten(c["border"],.12),
"primary": primary, "primary_hover": _lighten(primary,.16), "accent": accent, "primary": primary, "primary_hover": _lighten(primary,.16), "accent": accent,
"success": _darken(success,.42), "success_text": _lighten(success,.68), "warning": _darken(warning,.48), "success": _darken(success,.42), "success_text": _lighten(success,.68), "warning": _darken(warning,.48),
"danger": danger, "danger_soft": _darken(danger,.58), "danger_soft_hover": _darken(danger,.42), "danger": danger, "danger_soft": _darken(danger,.58), "danger_soft_hover": _darken(danger,.42),
"error": _darken(danger,.62), "error_text": _lighten(danger,.70), "recording": _darken(danger,.08), "recording_border": _darken(danger,.52), "error": _darken(danger,.62), "error_text": _lighten(danger,.70), "recording": c["recording"], "recording_border": c["recording"],
"selection": "rgba(80,150,255,.16)", "shadow": "#000000", "scroll_thumb": _mix(secondary,bg,.35), "selection": "rgba(80,150,255,.16)", "shadow": "#000000", "scroll_thumb": _mix(secondary,bg,.35),
"scroll_thumb_hover": _mix(secondary,bg,.18), "scroll_thumb_active": secondary, "live_surface": _mix(danger,bg,.84), "scroll_thumb_hover": _mix(secondary,bg,.18), "scroll_thumb_active": secondary, "live_surface": c["live_surface"],
"table_header": _lighten(surface,.08), "table_text": text, "footer": _mix(secondary,bg,.50), "white": "#ffffff", "table_header": c["surface_alt"], "table_text": text, "footer": _mix(secondary,bg,.50), "white": "#ffffff",
"surface_modal": _lighten(surface,.05), "overlay": "rgba(0,0,0,.78)", "surface_modal": _lighten(surface,.05), "overlay": "rgba(0,0,0,.78)",
} }