Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: panel-left / panel-right icons for open sidebars, API and home-wifi icons (#12720)

Michael Han4142ec36c74f
diff --git a/studio/frontend/src/components/app-sidebar.tsx b/studio/frontend/src/components/app-sidebar.tsx
index 9e3c78bc820..8bbf7095b58 100644
--- a/studio/frontend/src/components/app-sidebar.tsx
+++ b/studio/frontend/src/components/app-sidebar.tsx
@@ -109,7 +109,6 @@ import {
Folder01Icon,
Folder02Icon,
FlimSlateIcon,
- InternetIcon,
HelpCircleIcon,
Image03Icon,
InformationCircleIcon,
@@ -136,6 +135,7 @@ import {
LeftToRightListBulletIcon,
ArrowUpDownIcon,
LayerIcon,
+ ApiIcon,
} from "@hugeicons/core-free-icons";
import {
MessageCircleIcon,
@@ -2853,7 +2853,7 @@ export function AppSidebar() {
},
// The monitor page, not the API keys dialog the profile menu opens.
api: {
- icon: InternetIcon,
+ icon: ApiIcon,
label: t("shell.navigation.api"),
active: pathname === "/api-monitor" || pathname.startsWith("/api-monitor/"),
onClick: () => {
@@ -5234,7 +5234,7 @@ export function AppSidebar() {
className="inline-flex size-[calc(30px*var(--ui-space-scale,1))] cursor-pointer items-center justify-center rounded-[10px] text-nav-icon-idle dark:text-nav-fg-muted transition-colors hover:bg-nav-surface-hover hover:text-black dark:hover:text-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
aria-label={t("shell.aria.closeSidebar")}
>
- <HugeiconsIcon icon={LayoutAlignLeftIcon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon icon={PanelLeftIcon} strokeWidth={1.75} className="size-icon" />
</button>
</TooltipPrimitive.Trigger>
<TooltipContent
@@ -5249,7 +5249,8 @@ export function AppSidebar() {
</div>
</div>
{!isMobile && (!usesDesktopTitlebar || usesNativeMacTitlebar) && (
- <div className="relative z-10 hidden group-data-[collapsible=icon]:flex h-[calc(33px*var(--ui-space-scale,1))] items-center justify-center w-full">
+ // Level with the expanded header's 30px close button, so the toggle doesn't jump.
+ <div className="relative z-10 hidden group-data-[collapsible=icon]:flex h-[calc(33px*var(--ui-space-scale,1))] items-start justify-center w-full pt-[calc(1px*var(--ui-space-scale,1))]">
<Tooltip>
<TooltipPrimitive.Trigger asChild>
<button
@@ -5930,7 +5931,7 @@ export function AppSidebar() {
key={item.id}
onSelect={() => useSettingsDialogStore.getState().openDialog("api-keys")}
>
- <HugeiconsIcon icon={InternetIcon} strokeWidth={1.75} className="size-[calc(18px*var(--ui-space-scale,1))]" />
+ <HugeiconsIcon icon={ApiIcon} strokeWidth={1.75} className="size-[calc(18px*var(--ui-space-scale,1))]" />
<span>{t("shell.navigation.api")}</span>
</DropdownMenuItem>
);
diff --git a/studio/frontend/src/components/command-palette.tsx b/studio/frontend/src/components/command-palette.tsx
index bf6a8cd5d8f..fc9fb1ef66a 100644
--- a/studio/frontend/src/components/command-palette.tsx
+++ b/studio/frontend/src/components/command-palette.tsx
@@ -37,7 +37,6 @@ import {
DownloadSquare01Icon,
FlimSlateIcon,
Folder01Icon,
- InternetIcon,
Image03Icon,
LibrariesIcon,
Message01Icon,
@@ -46,6 +45,7 @@ import {
Settings02Icon,
Sun03Icon,
TestTube01Icon,
+ ApiIcon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useNavigate, useRouterState } from "@tanstack/react-router";
@@ -303,7 +303,7 @@ function PaletteContent() {
onSelect={runAndClose(() => void navigate({ to: "/api-monitor" }))}
keywords={["api", "monitor", "requests"]}
>
- <HugeiconsIcon icon={InternetIcon} strokeWidth={1.75} />
+ <HugeiconsIcon icon={ApiIcon} strokeWidth={1.75} />
<span>{t("shell.navigation.api")}</span>
</PaletteItem>
<PaletteItem onSelect={openSettings()} keywords={["preferences"]}>
diff --git a/studio/frontend/src/components/tauri/window-titlebar.tsx b/studio/frontend/src/components/tauri/window-titlebar.tsx
index 111109f5c72..4ebc7233f3d 100644
--- a/studio/frontend/src/components/tauri/window-titlebar.tsx
+++ b/studio/frontend/src/components/tauri/window-titlebar.tsx
@@ -7,7 +7,7 @@ import { useSidebarWidth } from "@/hooks/use-sidebar-width";
import { isTauri } from "@/lib/api-base";
import { cn } from "@/lib/utils";
import { Z_LAYER } from "@/lib/z-layers";
-import { LayoutAlignLeftIcon } from "@hugeicons/core-free-icons";
+import { LayoutAlignLeftIcon, PanelLeftIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import type { Window as TauriWindow } from "@tauri-apps/api/window";
import { ArrowLeft, ArrowRight } from "lucide-react";
@@ -208,8 +208,9 @@ export function DesktopTitlebarNavigation({
}}
className={buttonClass}
>
+ {/* The open sidebar as a panel; closed, Studio's own glyph. */}
<HugeiconsIcon
- icon={LayoutAlignLeftIcon}
+ icon={expanded ? PanelLeftIcon : LayoutAlignLeftIcon}
strokeWidth={1.75}
className={iconClass}
/>
diff --git a/studio/frontend/src/components/ui/sidebar.tsx b/studio/frontend/src/components/ui/sidebar.tsx
index 48e8d303f55..cfd9aaac0d2 100644
--- a/studio/frontend/src/components/ui/sidebar.tsx
+++ b/studio/frontend/src/components/ui/sidebar.tsx
@@ -38,7 +38,7 @@ import {
useSidebarWidth,
} from "@/hooks/use-sidebar-width"
import { HugeiconsIcon } from "@hugeicons/react"
-import { LayoutAlignLeftIcon } from "@hugeicons/core-free-icons"
+import { LayoutAlignLeftIcon, PanelLeftIcon } from "@hugeicons/core-free-icons"
const noop = () => {}
@@ -541,7 +541,7 @@ function SidebarTrigger({
onClick,
...props
}: React.ComponentProps<typeof Button>) {
- const { toggleSidebar } = useSidebar()
+ const { toggleSidebar, isMobile, open, openMobile } = useSidebar()
return (
<Button
@@ -556,7 +556,11 @@ function SidebarTrigger({
}}
{...props}
>
- <HugeiconsIcon icon={LayoutAlignLeftIcon} strokeWidth={1.75} className="size-icon" />
+ <HugeiconsIcon
+ icon={(isMobile ? openMobile : open) ? PanelLeftIcon : LayoutAlignLeftIcon}
+ strokeWidth={1.75}
+ className="size-icon"
+ />
<span className="sr-only">Toggle Sidebar</span>
</Button>
)
diff --git a/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx b/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx
index 03dda2d2a62..dac3e3beb92 100644
--- a/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx
+++ b/studio/frontend/src/features/api-monitor/api-monitor-overlay.tsx
@@ -17,7 +17,7 @@ import { cn } from "@/lib/utils";
import {
ExpandIcon,
DragDropVerticalIcon,
- InternetIcon,
+ ApiIcon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useNavigate, useRouterState } from "@tanstack/react-router";
@@ -356,7 +356,7 @@ function ApiMonitorPanel({
<div className="flex shrink-0 items-center justify-between gap-2 px-1.5 pb-2 pt-0.5">
<div className="flex min-w-0 flex-1 items-center gap-2">
<HugeiconsIcon
- icon={InternetIcon}
+ icon={ApiIcon}
strokeWidth={1.75}
className="size-icon shrink-0 text-nav-fg"
/>
diff --git a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
index 79059dc7b36..d81d4efb53d 100644
--- a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
+++ b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
@@ -34,12 +34,12 @@ import { cn } from "@/lib/utils";
import {
Copy01Icon,
Delete02Icon,
- InternetIcon,
PauseIcon,
PlayIcon,
PowerSocket01Icon,
Refresh01Icon,
Settings02Icon,
+ ApiIcon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { type ReactElement, useEffect, useMemo, useRef, useState } from "react";
@@ -825,7 +825,7 @@ export function ApiMonitorPage(): ReactElement {
<div className="flex min-w-0 items-center gap-2.5">
<span className="flex size-8 shrink-0 items-center justify-center rounded-lg border border-border/60 bg-muted/40">
<HugeiconsIcon
- icon={InternetIcon}
+ icon={ApiIcon}
strokeWidth={1.75}
className="size-4"
/>
diff --git a/studio/frontend/src/features/chat/chat-settings-sheet.tsx b/studio/frontend/src/features/chat/chat-settings-sheet.tsx
index 9098725e6dd..a96fa1d2569 100644
--- a/studio/frontend/src/features/chat/chat-settings-sheet.tsx
+++ b/studio/frontend/src/features/chat/chat-settings-sheet.tsx
@@ -64,7 +64,7 @@ import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { toast } from "@/lib/toast";
import { watchChatSettingsInset } from "@/lib/toast-offset";
import { cn } from "@/lib/utils";
-import { Edit03Icon, LayoutAlignRightIcon } from "@hugeicons/core-free-icons";
+import { Edit03Icon, PanelRightIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { Braces, ChevronDown, ExternalLink } from "lucide-react";
import { Tooltip as TooltipPrimitive } from "radix-ui";
@@ -1119,14 +1119,15 @@ export function ChatSettingsPanel({
</span>
<Tooltip>
<TooltipPrimitive.Trigger asChild={true}>
+ {/* Centred in the control row, as the header's open button is, so the toggle doesn't jump. */}
<button
type="button"
onClick={() => onOpenChange?.(false)}
- className="flex size-[calc(30px*var(--ui-space-scale,1))] cursor-pointer items-center justify-center rounded-[10px] text-nav-icon-idle dark:text-nav-fg-muted transition-colors hover:bg-nav-surface-hover hover:text-black dark:hover:text-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ className="mt-[calc((var(--studio-chat-control-height,33px)-30px*var(--ui-space-scale,1))/2)] flex size-[calc(30px*var(--ui-space-scale,1))] cursor-pointer items-center justify-center rounded-[10px] text-nav-icon-idle dark:text-nav-fg-muted transition-colors hover:bg-nav-surface-hover hover:text-black dark:hover:text-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
aria-label="Close run settings"
>
<HugeiconsIcon
- icon={LayoutAlignRightIcon}
+ icon={PanelRightIcon}
strokeWidth={1.75}
className="size-icon"
/>
diff --git a/studio/frontend/src/features/settings/components/remote-access-section.tsx b/studio/frontend/src/features/settings/components/remote-access-section.tsx
index 373ca0290ea..2edece5f8de 100644
--- a/studio/frontend/src/features/settings/components/remote-access-section.tsx
+++ b/studio/frontend/src/features/settings/components/remote-access-section.tsx
@@ -33,8 +33,8 @@ import { Tick02Icon } from "@/lib/tick-icon";
import { cn } from "@/lib/utils";
import {
Copy01Icon,
- InternetIcon,
QrCodeIcon,
+ HomeWifiIcon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { useCallback, useEffect, useRef, useState } from "react";
@@ -365,7 +365,7 @@ export function RemoteAccessSection() {
<div className="flex min-w-0 items-start gap-3">
<div className="flex size-8 shrink-0 items-center justify-center rounded-md border border-border/70 bg-muted/40">
<HugeiconsIcon
- icon={InternetIcon}
+ icon={HomeWifiIcon}
className="size-4 text-foreground"
/>
</div>
diff --git a/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx b/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx
index e1f06f15cb8..257de2e7833 100644
--- a/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx
+++ b/studio/frontend/src/features/settings/components/sidebar-menu-customizer.tsx
@@ -7,13 +7,13 @@ import {
CursorInfo02Icon,
DragDropVerticalIcon,
HelpCircleIcon,
- InternetIcon,
Logout05Icon,
Moon02Icon,
PaintBrush02Icon,
PowerIcon,
Settings02Icon,
UserCircleIcon,
+ ApiIcon,
} from "@hugeicons/core-free-icons";
import { MessageCircleIcon } from "@/lib/hugeicons-derived";
import { HugeiconsIcon } from "@hugeicons/react";
@@ -29,7 +29,7 @@ const ITEM_META: Record<
SidebarMenuItemPref["id"],
{ icon: IconSvgElement; labelKey: TranslationKey }
> = {
- api: { icon: InternetIcon, labelKey: "shell.navigation.api" },
+ api: { icon: ApiIcon, labelKey: "shell.navigation.api" },
darkMode: { icon: Moon02Icon, labelKey: "settings.appearance.sidebarMenu.darkModeToggle" },
guidedTour: { icon: CursorInfo02Icon, labelKey: "shell.navigation.guidedTour" },
profile: { icon: UserCircleIcon, labelKey: "settings.tabs.profile" },
diff --git a/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx b/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
index 61187a6ba8e..dff63c7a11b 100644
--- a/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
+++ b/studio/frontend/src/features/settings/components/sidebar-nav-customizer.tsx
@@ -10,10 +10,10 @@ import {
FlimSlateIcon,
Folder01Icon,
Image03Icon,
- InternetIcon,
LibrariesIcon,
MoreHorizontalIcon,
PencilEdit02Icon,
+ ApiIcon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import { Reorder, useDragControls } from "motion/react";
@@ -44,7 +44,7 @@ const ITEM_META: Record<
audio: { icon: AudioWave01Icon, labelKey: "shell.navigation.audio" },
recipes: { icon: ChefHatIcon, labelKey: "shell.navigation.recipes" },
export: { icon: Download01Icon, labelKey: "shell.navigation.export" },
- api: { icon: InternetIcon, labelKey: "shell.navigation.api" },
+ api: { icon: ApiIcon, labelKey: "shell.navigation.api" },
};
function FixedRow({ icon, label }: { icon: IconSvgElement; label: string }) {
diff --git a/studio/frontend/src/features/settings/settings-dialog.tsx b/studio/frontend/src/features/settings/settings-dialog.tsx
index 253dec8a0d0..f4a9aa410fa 100644
--- a/studio/frontend/src/features/settings/settings-dialog.tsx
+++ b/studio/frontend/src/features/settings/settings-dialog.tsx
@@ -18,6 +18,7 @@ import { useScrollFades } from "@/hooks/use-scroll-fades";
import { useUiSpaceScale } from "@/hooks/use-ui-space-scale";
import { scheduleIdleTask } from "@/lib/schedule-idle-task";
import {
+ ApiIcon,
BotIcon,
Cancel01Icon,
CloudIcon,
@@ -209,7 +210,7 @@ const TABS: TabDef[] = [
{
id: "api-keys",
labelKey: "settings.tabs.apiKeys",
- icon: InternetIcon,
+ icon: ApiIcon,
},
{
id: "remote-lan",