feat: add new icon assets for macOS and update tray icon handling

This commit is contained in:
Anish Sarkar 2026-05-19 20:04:37 +05:30
parent cd4e5ae7f2
commit 07688263d8
6 changed files with 17 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -11,11 +11,20 @@ let registeredGeneralAssist: string | null = null;
let registeredScreenshotAssist: string | null = null; let registeredScreenshotAssist: string | null = null;
function getTrayIcon(): NativeImage { function getTrayIcon(): NativeImage {
const iconName = process.platform === 'win32' ? 'icon.ico' : 'icon.png'; const iconName =
process.platform === 'darwin'
? 'iconTemplate.png'
: process.platform === 'win32'
? 'icon.ico'
: 'icon.png';
const iconPath = app.isPackaged const iconPath = app.isPackaged
? path.join(process.resourcesPath, 'assets', iconName) ? path.join(process.resourcesPath, 'assets', iconName)
: path.join(__dirname, '..', 'assets', iconName); : path.join(__dirname, '..', 'assets', iconName);
const img = nativeImage.createFromPath(iconPath); const img = nativeImage.createFromPath(iconPath);
if (process.platform === 'darwin') {
img.setTemplateImage(true);
return img;
}
return img.resize({ width: 16, height: 16 }); return img.resize({ width: 16, height: 16 });
} }

View file

@ -441,7 +441,12 @@ export function LayoutShell({
/> />
) : null} ) : null}
<div className="flex min-h-0 flex-1 w-full gap-2 px-2 py-0 overflow-hidden"> <div className="flex min-h-0 flex-1 w-full gap-2 px-2 py-0 overflow-hidden">
<div className="hidden md:flex overflow-hidden -mr-2 pr-2 bg-rail"> <div
className={cn(
"hidden md:flex overflow-hidden -mr-2 pr-2 bg-rail",
!isMacDesktop && "border-r"
)}
>
<IconRail <IconRail
searchSpaces={searchSpaces} searchSpaces={searchSpaces}
activeSearchSpaceId={activeSearchSpaceId} activeSearchSpaceId={activeSearchSpaceId}

View file

@ -251,7 +251,7 @@ export function LLMConfigForm({
role="combobox" role="combobox"
aria-expanded={modelComboboxOpen} aria-expanded={modelComboboxOpen}
className={cn( className={cn(
"w-full justify-between font-normal bg-transparent", "w-full justify-between border-popover-border bg-transparent font-normal",
!field.value && "text-muted-foreground" !field.value && "text-muted-foreground"
)} )}
> >