perf: eliminate theme switch lag by suppressing CSS transitions

Disable all CSS transitions/animations during theme toggle so color
changes apply instantly instead of animating over 150ms. Also cache
Tauri window module import and set color-scheme for native UI elements.
This commit is contained in:
t8y2 committed 2026-05-13 16:04:35 +08:00
1 parent 70becfd74f
commit b4d1f4b04e
6 files changed
+63 -18

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ const AGENT_TYPES: &[(&str, &str)] = &[
("vastbase", "Vastbase"),
("goldendb", "GoldenDB"),
("oracle", "Oracle"),
("oracle-10g", "Oracle 10g"),
("h2", "H2"),
("snowflake", "Snowflake"),
("trino", "Trino (Presto)"),