mirror of
https://github.com/jeessy2/ddns-go.git
synced 2026-01-07 23:26:51 +08:00
* feat: add color-scheme support for Dark Reader detection and native UI theming * feat: add system theme listener and long press to restore auto mode Features: - Add real-time system theme change listener - Long press button (800ms) to restore auto mode - Auto follow system theme on first visit - Optimized UX: instant sync without page reload - Improved tooltip with multi-line instructions Implementation: - Monitor prefers-color-scheme media query changes - Support mousedown/touchstart for cross-device compatibility - Display success message with i18n support - Enable HTML mode for tooltip line breaks * feat: add tooltip to login page and theme-aware styling Features: - Add tooltip to theme button on login page - Multi-line instructions (click to switch, long press to restore) - Theme-aware color scheme (light: white bg, dark: dark bg) - Include tooltips.js on login page for proper initialization Implementation: - Enable HTML mode for tooltip line breaks - Add CSS styles for light/dark theme variants - Style tooltip background, text, and arrow colors * fix: add touchmove handler to cancel long press on mobile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>