Files
Aethersailor b1f7cecbd8 feat: enhance theme experience and tooltip support (#1599)
* 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>
2025-12-20 17:57:45 +08:00
..
2024-01-22 04:34:46 -08:00
2024-04-26 19:35:08 -07:00