diff --git a/subtitle_sync.py b/subtitle_sync.py index ad9dec8..abad8da 100644 --- a/subtitle_sync.py +++ b/subtitle_sync.py @@ -5,155 +5,822 @@ import os +# ============================================================================ +# MODERN COLOR SCHEME +# ============================================================================ +class Colors: + """Modern dark theme color palette""" + # Background colors + BG_DARK = "#1a1b26" # Main background + BG_MEDIUM = "#24283b" # Panel background + BG_LIGHT = "#2f3549" # Input/card background + BG_HOVER = "#3d4259" # Hover state + + # Accent colors + ACCENT_PRIMARY = "#7aa2f7" # Primary blue + ACCENT_SUCCESS = "#9ece6a" # Green for success + ACCENT_WARNING = "#e0af68" # Orange/yellow for warnings + ACCENT_ERROR = "#f7768e" # Red for errors + ACCENT_PURPLE = "#bb9af7" # Purple accent + + # Text colors + TEXT_PRIMARY = "#c0caf5" # Main text + TEXT_SECONDARY = "#565f89" # Muted text + TEXT_BRIGHT = "#ffffff" # Bright text + + # Border colors + BORDER = "#3d4259" + BORDER_FOCUS = "#7aa2f7" + + # Timestamp highlighting + TIMESTAMP_BG = "#2d3250" + TIMESTAMP_FG = "#7dcfff" + + +# ============================================================================ +# CUSTOM TOOLTIP CLASS +# ============================================================================ +class Tooltip: + """Modern tooltip implementation""" + def __init__(self, widget, text, delay=500): + self.widget = widget + self.text = text + self.delay = delay + self.tooltip_window = None + self.scheduled_id = None + + widget.bind('', self.schedule_show) + widget.bind('', self.hide) + widget.bind('