diff --git a/src/main/desktop-shell-service.ts b/src/main/desktop-shell-service.ts index 108c849c..307d855a 100644 --- a/src/main/desktop-shell-service.ts +++ b/src/main/desktop-shell-service.ts @@ -8,6 +8,7 @@ import { dialog, Menu, nativeImage, + nativeTheme, net, protocol, session, @@ -220,6 +221,9 @@ export function createDesktopShellService({ }, }); + // Sync native theme with app to ensure Windows title bar matches content + nativeTheme.themeSource = "light"; + if (isDev && devServerUrl) { await mainWindow.loadURL(devServerUrl); } else { diff --git a/src/renderer/components/automation/automation-config.ts b/src/renderer/components/automation/automation-config.ts index f7787bf1..9cb07032 100644 --- a/src/renderer/components/automation/automation-config.ts +++ b/src/renderer/components/automation/automation-config.ts @@ -2,8 +2,11 @@ import type { AutomationAction, AutomationStatus, AutomationTrigger, WorkflowSta import { ArrowsClockwise, Eye, Funnel, Lightning, Pause, Play, Plus, Robot, Timer, Trash } from "@phosphor-icons/react" import { DEPARTMENT_OPTIONS } from "@shared/constants" -export const ACCENT = "var(--primary)" -export const LINE = "var(--border)" +// ACCENT/LINE used in template literals for opacity suffixes like `${ACCENT}15` +// Must be hex values (not CSS vars) so hex alpha notation works. +// These are the primary/border colors from the OKLCH design tokens converted to hex. +export const ACCENT = "#343434" +export const LINE = "#ebebeb" export const triggerConfig: Record = { task_status_changed: { label: "Task Status Changed", description: "When a task transitions to a new status", icon: ArrowsClockwise }, diff --git a/src/renderer/components/communication/ChannelSidebar.tsx b/src/renderer/components/communication/ChannelSidebar.tsx index b078c881..bcf5e6ce 100644 --- a/src/renderer/components/communication/ChannelSidebar.tsx +++ b/src/renderer/components/communication/ChannelSidebar.tsx @@ -148,8 +148,8 @@ export function ChannelSidebar({ selectedChannelKey === discussion.key ? "bg-accent" : "hover:bg-muted/50" }`} > -
- +
+
{discussion.label} diff --git a/src/renderer/components/communication/MessageItem.tsx b/src/renderer/components/communication/MessageItem.tsx index cc398931..b47a0925 100644 --- a/src/renderer/components/communication/MessageItem.tsx +++ b/src/renderer/components/communication/MessageItem.tsx @@ -13,10 +13,10 @@ import { getAgentInitials, formatMessageTime } from "../../lib/formatters" import { DEPARTMENT_COLORS } from "@shared/constants" -const priorityConfig: Record = { - urgent: { label: "Urgent", color: "var(--destructive)", bg: "color-mix(in oklch, var(--destructive) 15%, transparent)" }, - normal: { label: "Normal", color: "var(--muted-foreground)", bg: "color-mix(in oklch, var(--muted-foreground) 15%, transparent)" }, - low: { label: "Low", color: "var(--muted-foreground)", bg: "color-mix(in oklch, var(--muted-foreground) 15%, transparent)" }, +const priorityConfig: Record = { + urgent: { label: "Urgent", className: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400" }, + normal: { label: "Normal", className: "bg-muted text-muted-foreground" }, + low: { label: "Low", className: "bg-muted text-muted-foreground" }, } function getDepartmentColor(department: DepartmentId | null | undefined): string { @@ -87,8 +87,7 @@ export const MessageBubble = memo(function MessageBubble({ ) : null} {agent?.department ? ( {agent.department.replace("_", " ")} @@ -98,14 +97,10 @@ export const MessageBubble = memo(function MessageBubble({ {message.priority !== "normal" ? ( {message.priority === "urgent" ? : null} - {priorityConfig[message.priority].label} + {priorityConfig[message.priority]?.label} ) : null} {isUnread ? (