@@ -116,8 +116,8 @@ function SourceSection({
onClick={() => onSelect(source.id)}
className={`overflow-hidden rounded-lg border-2 text-left transition-colors ${
selectedId === source.id
- ? 'border-blue-500 bg-zinc-800'
- : 'border-transparent bg-zinc-800/50 hover:border-zinc-600'
+ ? 'border-primary bg-accent'
+ : 'border-transparent bg-muted hover:border-border'
}`}
>
![{source.name}]()
-
+
{source.name}
diff --git a/js/desktop/src/components/ui/dialog.tsx b/js/desktop/src/components/ui/dialog.tsx
index 836c0a1..30a27be 100644
--- a/js/desktop/src/components/ui/dialog.tsx
+++ b/js/desktop/src/components/ui/dialog.tsx
@@ -39,7 +39,7 @@ function DialogOverlay({
))}
diff --git a/js/desktop/src/components/ui/sonner.tsx b/js/desktop/src/components/ui/sonner.tsx
index ff59bd9..559d8bd 100644
--- a/js/desktop/src/components/ui/sonner.tsx
+++ b/js/desktop/src/components/ui/sonner.tsx
@@ -6,11 +6,13 @@ import {
OctagonXIcon,
Loader2Icon,
} from 'lucide-react';
+import { useThemeStore } from '@/stores/theme-store';
const Toaster = ({ ...props }: ToasterProps) => {
+ const isDark = useThemeStore((s) => s.isDark);
return (
,
diff --git a/js/desktop/src/components/window-controls.tsx b/js/desktop/src/components/window-controls.tsx
index 5cfd30d..818ef31 100644
--- a/js/desktop/src/components/window-controls.tsx
+++ b/js/desktop/src/components/window-controls.tsx
@@ -21,7 +21,7 @@ export function WindowControls() {
size="icon-sm"
onClick={() => platform.window.minimize()}
aria-label="Minimize"
- className="dark:hover:bg-white/10 rounded text-white/50"
+ className="text-muted-foreground rounded"
>
@@ -34,7 +34,7 @@ export function WindowControls() {
size="icon-sm"
onClick={() => platform.window.maximize()}
aria-label={isMaximized ? 'Restore' : 'Maximize'}
- className="dark:hover:bg-white/10 rounded text-white/50"
+ className="text-muted-foreground rounded"
>
{isMaximized ?
:
}
@@ -47,7 +47,7 @@ export function WindowControls() {
size="icon-sm"
onClick={() => platform.window.close()}
aria-label="Close"
- className="hover:text-destructive dark:hover:bg-white/10 rounded text-white/50"
+ className="hover:text-destructive text-muted-foreground rounded"
>
diff --git a/js/desktop/src/features/attachments/attachment-lightbox.tsx b/js/desktop/src/features/attachments/attachment-lightbox.tsx
index f46b8c9..2018f7c 100644
--- a/js/desktop/src/features/attachments/attachment-lightbox.tsx
+++ b/js/desktop/src/features/attachments/attachment-lightbox.tsx
@@ -172,7 +172,7 @@ export function AttachmentLightbox({
}}
>
-
+
) : (
-
-
+
+
{attachment.file.name}
-
+
{formatFileSize(attachment.file.size)}
)}
{isUploading && (
-
-
+
+
)}
@@ -97,7 +97,7 @@ function AttachmentThumbnail({
e.stopPropagation();
onRemove();
}}
- className="absolute right-0.5 top-0.5 hidden rounded-full bg-black/70 p-0.5 text-white/70 hover:text-white group-hover:block"
+ className="bg-scrim/70 absolute right-0.5 top-0.5 hidden rounded-full p-0.5 text-white/80 hover:text-white group-hover:block"
>
@@ -108,9 +108,9 @@ function AttachmentThumbnail({
function LinkPreviewThumbnail({ entry }: { entry: LinkPreviewEntry }) {
if (entry.isLoading) {
return (
-
-
-
+
+
+
);
}
@@ -124,9 +124,9 @@ function LinkPreviewThumbnail({ entry }: { entry: LinkPreviewEntry }) {