From b2d3792f59b2bf5115a290db7e36f9b2b13190e0 Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Tue, 6 Oct 2026 10:58:42 +0200 Subject: [PATCH] Einstellungsdialog angepasst --- editor.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/editor.py b/editor.py index 64d54e5..bc5498d 100644 --- a/editor.py +++ b/editor.py @@ -47,14 +47,17 @@ DEFAULT_SETTINGS = { } BASE_THEME = { - "background": "#111111", "surface": "#181818", "surface_dark": "#0b0b0b", "border": "#4a4a4a", "text": "#eeeeee", - "text_secondary": "#cccccc", "primary": "#1769aa", "accent": "#ffcc33", + "background": "#111111", "surface": "#181818", "surface_alt": "#1e1e1e", "surface_dark": "#0b0b0b", "border": "#4a4a4a", "text": "#eeeeee", + "text_secondary": "#cccccc", "live_surface": "#2a1717", "recording": "#d32f2f", + "primary": "#1769aa", "accent": "#ffcc33", "success": "#2e7d32", "warning": "#ed6c02", "danger": "#d32f2f", } BASE_COLOR_LABELS = { - "background": "Hintergrund", "surface_dark": "Dunkle Fläche", "surface": "Flächen", "border": "Rahmen", "text": "Text", - "text_secondary": "Sekundärtext", "primary": "Primärfarbe", "accent": "Akzentfarbe", + "background": "Hintergrund", "surface": "Flächen", "surface_alt": "Alternative Fläche / Tabellenkopf", + "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", } @@ -84,16 +87,16 @@ def derive_theme(base): primary, accent = c["primary"], c["accent"] success, warning, danger = c["success"], c["warning"], c["danger"] 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), "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, "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), - "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), - "scroll_thumb_hover": _mix(secondary,bg,.18), "scroll_thumb_active": secondary, "live_surface": _mix(danger,bg,.84), - "table_header": _lighten(surface,.08), "table_text": text, "footer": _mix(secondary,bg,.50), "white": "#ffffff", + "scroll_thumb_hover": _mix(secondary,bg,.18), "scroll_thumb_active": secondary, "live_surface": c["live_surface"], + "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)", }