Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/pages/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { useState, useEffect } from "react";
import { getVersion } from "@tauri-apps/api/app";
import { useTheme } from "@/components/common/ThemeProvider";
import { useThemeVariant } from "@/hooks/useThemeVariant";
import { useDeveloperMode } from "@/hooks/useDeveloperMode";
Expand All @@ -14,6 +16,12 @@ const Settings = () => {
const { isEnabled: devModeEnabled, setIsEnabled: setDevModeEnabled } = useDeveloperMode();
const { status, updateInfo, downloadProgress, error: updateError, checkForUpdates, downloadAndInstall, relaunchApp } = useUpdater();

const [appVersion, setAppVersion] = useState<string>("");

useEffect(() => {
getVersion().then(setAppVersion).catch(() => setAppVersion("unknown"));
}, []);

const themeOptions = [
{ value: "light", label: "Light", icon: Sun },
{ value: "dark", label: "Dark", icon: Moon },
Expand Down Expand Up @@ -281,6 +289,19 @@ const Settings = () => {
)}
</section>

{/* About Section */}
<section className="border border-border/20 rounded-lg p-6 bg-background">
<div className="flex items-center gap-2.5">
<Info className="h-4 w-4 text-muted-foreground/60" />
<div>
<h2 className="text-sm font-medium">About</h2>
<p className="text-xs text-muted-foreground/70 mt-0.5">
RelWave v{appVersion || "—"}
</p>
</div>
</div>
</section>

{/* Preview Section */}
<section className="border border-border/20 rounded-lg p-6 bg-background">
<h2 className="text-sm font-medium mb-4">Preview</h2>
Expand Down