mirror of
https://github.com/hoornet/vega.git
synced 2026-05-10 22:29:11 -07:00
Bump to v0.9.3 — color themes, font size, settings polish
7 color themes (Midnight, Light, Catppuccin Mocha, Tokyo Night, Gruvbox, Ethereal, Hackerman), font size presets (Small/Normal/Large/Extra Large), collapsible muted accounts list, removed old sidebar connection indicator.
This commit is contained in:
14
src/App.tsx
14
src/App.tsx
@@ -24,6 +24,7 @@ import { ToastContainer } from "./components/shared/ToastContainer";
|
||||
import { DebugPanel } from "./components/shared/DebugPanel";
|
||||
import { HelpModal } from "./components/shared/HelpModal";
|
||||
import { useUIStore } from "./stores/ui";
|
||||
import { getTheme, applyTheme } from "./lib/themes";
|
||||
import { useUpdater } from "./hooks/useUpdater";
|
||||
import { useKeyboardShortcuts } from "./hooks/useKeyboardShortcuts";
|
||||
|
||||
@@ -56,12 +57,25 @@ function App() {
|
||||
const toggleHelp = useUIStore((s) => s.toggleHelp);
|
||||
const showDebugPanel = useUIStore((s) => s.showDebugPanel);
|
||||
const toggleDebugPanel = useUIStore((s) => s.toggleDebugPanel);
|
||||
const fontSize = useUIStore((s) => s.fontSize);
|
||||
const themeId = useUIStore((s) => s.themeId);
|
||||
const [onboardingDone, setOnboardingDone] = useState(
|
||||
() => !!localStorage.getItem("wrystr_pubkey")
|
||||
);
|
||||
|
||||
useKeyboardShortcuts();
|
||||
|
||||
// Apply zoom level based on font size setting
|
||||
useEffect(() => {
|
||||
document.documentElement.style.zoom = `${fontSize / 14}`;
|
||||
}, [fontSize]);
|
||||
|
||||
// Apply color theme
|
||||
useEffect(() => {
|
||||
const theme = getTheme(themeId);
|
||||
if (theme) applyTheme(theme);
|
||||
}, [themeId]);
|
||||
|
||||
// Intercept external link clicks and open in system browser via Tauri opener
|
||||
useEffect(() => {
|
||||
const handler = (e: MouseEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user