From 26c7ed9c40d0b3798e678e972b08a66c25e1979b Mon Sep 17 00:00:00 2001 From: piexel Date: Wed, 25 Nov 2026 18:25:31 +0100 Subject: [PATCH] Show the Iris logo at the start of the title bar - Draw the logo as SVG with its brackets in the icon colour so dark themes show them --- studio/src/renderer/src/studio/IrisLogo.tsx | 25 +++++++++++++++++++ .../src/renderer/src/studio/StudioToolbar.tsx | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 studio/src/renderer/src/studio/IrisLogo.tsx diff --git a/studio/src/renderer/src/studio/IrisLogo.tsx b/studio/src/renderer/src/studio/IrisLogo.tsx new file mode 100644 index 000000000..843c499c9 --- /dev/null +++ b/studio/src/renderer/src/studio/IrisLogo.tsx @@ -0,0 +1,25 @@ +import { useId } from 'react' +import { cn } from '@/lib/utils' + +const HEXAGON = 'M12 5 18.06 8.5V15.5L12 19 5.94 15.5V8.5Z' +// Each bracket follows two edges of the hexagon two units out, as the Iris logo has; the second is the first turned half way. +const UPPER_BRACKET = 'M12.2 2.57 3.94 7.35V10.2' +const LOWER_BRACKET = 'M11.8 21.43 20.06 16.65V13.8' + +/** The Iris logo: its hexagon in the logo's teal and its brackets in the theme's icon colour, so both themes show them. */ +export function IrisLogo({ className }: { className?: string }): React.JSX.Element { + const gradient = useId() + return ( + + + + + + + + + + + + ) +} diff --git a/studio/src/renderer/src/studio/StudioToolbar.tsx b/studio/src/renderer/src/studio/StudioToolbar.tsx index ebea95756..a49e8076a 100644 --- a/studio/src/renderer/src/studio/StudioToolbar.tsx +++ b/studio/src/renderer/src/studio/StudioToolbar.tsx @@ -10,6 +10,7 @@ import { Glyph } from './Glyph' import type { StudioToggles } from './MapStudio' import type { ShortcutAction } from './shortcuts' import { useKeyText } from './useBindings' +import { IrisLogo } from './IrisLogo' interface StudioToolbarProps { world: WorldInfo @@ -22,6 +23,7 @@ interface StudioToolbarProps { export function StudioToolbar({ world, onHelp, onSettings, onDisconnect }: StudioToolbarProps): React.JSX.Element { return (
+