Restyle the studio after IntelliJ's Islands theme

- Take the colours from Islands Light and Islands Dark: islands on a frame in the main window colour, without the accent glow
- Draw generic actions with IntelliJ's new UI icons, vendored with their Apache 2.0 license and notice
- Draw the remaining icons at IntelliJ's stroke and icon colour
- Give the stripe and main toolbar IntelliJ's 30 px buttons with 20 px icons
- Show the chosen entry as a muted subtitle in island headers and drop the repeated view icon
- Turn outlined switches into segments with the chosen one filled
- Use crisp focus edges, flat popups and 28 px controls
- Show server memory as IntelliJ's memory indicator
This commit is contained in:
piexel committed 2026-11-25 15:22:43 +01:00
1 parent 36b352ea05
commit b128df4720
65 files changed
+655 -225

No files matched your search

@@ -4,30 +4,30 @@ import { cn } from "@/lib/utils"
import { Slot } from "radix-ui"
const buttonVariants = cva(
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-[13px] font-normal whitespace-nowrap outline-none focus-visible:focused disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
default: "bg-primary text-primary-foreground hover:bg-primary/90",
default: "icon-tint bg-primary text-primary-foreground hover:bg-primary/90",
destructive:
"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
"icon-tint bg-destructive text-white hover:bg-destructive/90",
outline:
"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
secondary:
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost:
"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
"hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
},
size: {
default: "h-9 px-4 py-2 has-[>svg]:px-3",
default: "h-7 px-3 has-[>svg]:px-2.5",
xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
icon: "size-9",
sm: "h-7 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2",
lg: "h-8 rounded-md px-4 has-[>svg]:px-3",
icon: "size-7",
"icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
"icon-sm": "size-8",
"icon-lg": "size-10",
"icon-sm": "size-7",
"icon-lg": "size-8",
},
},
defaultVariants: {
@@ -1,7 +1,7 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import { Check, ChevronRight } from "lucide-react"
import { ContextMenu as ContextMenuPrimitive } from "radix-ui"
import { Glyph } from "@/studio/Glyph"
function ContextMenu({
...props
@@ -63,14 +63,14 @@ function ContextMenuSubTrigger({
data-slot="context-menu-sub-trigger"
data-inset={inset}
className={cn(
"flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
"flex cursor-default items-center rounded-md px-2 py-1 text-[13px] outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
className
)}
{...props}
>
{children}
<span className="ml-auto">
<ChevronRight />
<Glyph glyph="chevronRight" />
</span>
</ContextMenuPrimitive.SubTrigger>
)
@@ -86,7 +86,7 @@ function ContextMenuSubContent({
<ContextMenuPrimitive.SubContent
data-slot="context-menu-sub-content"
className={cn(
"z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 backdrop-blur-sm text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
"z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden popup p-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
className
)}
{...props}
@@ -104,7 +104,7 @@ function ContextMenuContent({
<ContextMenuPrimitive.Content
data-slot="context-menu-content"
className={cn(
"z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground backdrop-blur-sm shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
"z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto popup p-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
className
)}
{...props}
@@ -128,7 +128,7 @@ function ContextMenuItem({
data-inset={inset}
data-variant={variant}
className={cn(
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",
"relative flex cursor-default items-center gap-2 rounded-md px-2 py-1 text-[13px] outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",
className
)}
{...props}
@@ -146,7 +146,7 @@ function ContextMenuCheckboxItem({
<ContextMenuPrimitive.CheckboxItem
data-slot="context-menu-checkbox-item"
className={cn(
"relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"relative flex cursor-default items-center gap-2 rounded-md py-1 pr-2 pl-8 text-[13px] outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
checked={checked}
@@ -154,7 +154,7 @@ function ContextMenuCheckboxItem({
>
<span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
<ContextMenuPrimitive.ItemIndicator>
<Check />
<Glyph glyph="check" />
</ContextMenuPrimitive.ItemIndicator>
</span>
{children}
@@ -171,7 +171,7 @@ function ContextMenuRadioItem({
<ContextMenuPrimitive.RadioItem
data-slot="context-menu-radio-item"
className={cn(
"relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"relative flex cursor-default items-center gap-2 rounded-md py-1 pr-2 pl-8 text-[13px] outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...props}
@@ -198,7 +198,7 @@ function ContextMenuLabel({
data-slot="context-menu-label"
data-inset={inset}
className={cn(
"px-2 py-1.5 text-sm font-medium text-foreground data-[inset]:pl-8",
"px-2 py-1 text-[12px] font-semibold text-muted-foreground data-[inset]:pl-8",
className
)}
{...props}
@@ -2,10 +2,10 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import { X } from "lucide-react"
import { Dialog as DialogPrimitive } from "radix-ui"
import { Button } from "@/components/ui/button"
import { Glyph } from "@/studio/Glyph"
function Dialog({
...props
@@ -61,7 +61,7 @@ function DialogContent({
<DialogPrimitive.Content
data-slot="dialog-content"
className={cn(
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-card p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 popup bg-card p-6 duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
className
)}
{...props}
@@ -70,9 +70,9 @@ function DialogContent({
{showCloseButton && (
<DialogPrimitive.Close
data-slot="dialog-close"
className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
className="absolute top-4 right-4 grid size-6 place-items-center rounded-md outline-none hover:bg-accent focus-visible:focused disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
>
<X />
<Glyph glyph="close" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
)}
@@ -1,12 +1,12 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import { ChevronRight } from "lucide-react"
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"
import { Glyph } from "@/studio/Glyph"
const MENU_SURFACE =
"z-50 min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md backdrop-blur-sm data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0"
"z-50 min-w-[8rem] overflow-x-hidden overflow-y-auto popup p-1 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0"
const MENU_ROW =
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
"relative flex cursor-default items-center gap-2 rounded-md px-2 py-1 text-[13px] outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
function DropdownMenu(props: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />
@@ -45,7 +45,7 @@ function DropdownMenuSubTrigger({ className, children, ...props }: React.Compone
{...props}
>
{children}
<ChevronRight className="ml-auto size-3.5" />
<Glyph glyph="chevronRight" className="ml-auto size-3.5" />
</DropdownMenuPrimitive.SubTrigger>
)
}
@@ -53,7 +53,7 @@ function DropdownMenuSubTrigger({ className, children, ...props }: React.Compone
function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {
return (
<DropdownMenuPrimitive.Portal>
<DropdownMenuPrimitive.SubContent data-slot="dropdown-menu-sub-content" className={cn(MENU_SURFACE, "shadow-lg", className)} {...props} />
<DropdownMenuPrimitive.SubContent data-slot="dropdown-menu-sub-content" className={cn(MENU_SURFACE, className)} {...props} />
</DropdownMenuPrimitive.Portal>
)
}
@@ -7,8 +7,8 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
type={type}
data-slot="input"
className={cn(
"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
"h-7 w-full min-w-0 rounded-md border border-input bg-transparent px-2 py-1 text-[13px] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
"focus-visible:focused",
"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
className
)}
@@ -18,7 +18,7 @@ function PopoverContent({ className, align = "start", sideOffset = 4, ...props }
align={align}
sideOffset={sideOffset}
className={cn(
"z-50 rounded-md border bg-popover p-2 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
"z-50 popup p-2 outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
className
)}
{...props}
@@ -17,7 +17,7 @@ function ScrollArea({
>
<ScrollAreaPrimitive.Viewport
data-slot="scroll-area-viewport"
className="size-full rounded-[inherit] [&>div]:block! transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1"
className="size-full rounded-[inherit] [&>div]:block! outline-none focus-visible:outline-1 focus-visible:outline-ring"
>
{children}
</ScrollAreaPrimitive.Viewport>
@@ -24,7 +24,7 @@ function ToggleGroup({
data-variant={variant}
data-size={size}
className={cn(
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:h-7 data-[variant=outline]:border data-[variant=outline]:border-input data-[variant=outline]:bg-muted data-[variant=outline]:p-0.5",
className
)}
{...props}
@@ -56,7 +56,7 @@ function ToggleGroupItem({
variant: context.variant || variant,
size: context.size || size,
}),
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:h-[22px] data-[variant=outline]:min-w-[22px] data-[variant=outline]:rounded-[4px] data-[variant=outline]:border-0 data-[variant=outline]:px-2 data-[variant=outline]:text-[12px] data-[variant=outline]:text-muted-foreground data-[variant=outline]:hover:bg-transparent data-[variant=outline]:hover:text-foreground data-[variant=outline]:data-[state=on]:bg-secondary data-[variant=outline]:data-[state=on]:text-foreground",
className
)}
{...props}
@@ -4,13 +4,13 @@ import { cn } from "@/lib/utils"
import { Toggle as TogglePrimitive } from "radix-ui"
const toggleVariants = cva(
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"inline-flex items-center justify-center gap-2 rounded-md text-[13px] font-normal whitespace-nowrap outline-none hover:bg-accent hover:text-accent-foreground focus-visible:focused disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
default: "bg-transparent",
outline:
"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground",
"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
},
size: {
default: "h-9 min-w-9 px-2",
@@ -41,7 +41,7 @@ function TooltipContent({
data-slot="tooltip-content"
sideOffset={sideOffset}
className={cn(
"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md border border-overlay-border bg-popover px-2.5 py-1.5 text-xs text-balance text-popover-foreground shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
"z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in popup px-2.5 py-1.5 text-xs text-balance fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
className
)}
{...props}
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,3 @@
This software includes code from IntelliJ IDEA
Copyright (C) JetBrains s.r.o.
https://www.jetbrains.com/idea/
@@ -0,0 +1 @@
Dark new-UI icons copied unchanged from JetBrains intellij-community, `platform/icons/src/expui`, under the Apache License 2.0 (LICENSE.txt). NOTICE.txt is that repository's notice. The folder layout matches the source. `Glyph` draws them in the current colour, so one copy serves both themes.
@@ -0,0 +1,4 @@
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.5 8.25L6 11.75L13.5 4.25" stroke="#CED0D6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 353 B

@@ -0,0 +1,6 @@
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 1.5C4 1.22386 4.22386 1 4.5 1H11.5C11.7761 1 12 1.22386 12 1.5C12 1.77614 11.7761 2 11.5 2H4.5C4.22386 2 4 1.77614 4 1.5Z" fill="#CED0D6"/>
<path d="M8 5.5C8.27614 5.5 8.5 5.72386 8.5 6V8.13378C8.7989 8.30669 9 8.62986 9 9C9 9.55229 8.55229 10 8 10C7.44772 10 7 9.55229 7 9C7 8.62986 7.2011 8.30669 7.5 8.13378V6C7.5 5.72386 7.72386 5.5 8 5.5Z" fill="#CED0D6"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645C13.6583 2.95118 13.3417 2.95118 13.1464 3.14645L11.8744 4.41847C10.8291 3.53358 9.47685 3 8 3C4.68629 3 2 5.68629 2 9C2 12.3137 4.68629 15 8 15C11.3137 15 14 12.3137 14 9C14 7.52315 13.4664 6.17092 12.5815 5.12558L13.8536 3.85355ZM13 9C13 11.7614 10.7614 14 8 14C5.23858 14 3 11.7614 3 9C3 6.23858 5.23858 4 8 4C10.7614 4 13 6.23858 13 9Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.2441 2.75C10.6584 2.75 10.9941 3.08579 10.9941 3.5V9.49414H17C17.4141 9.49414 17.7498 9.83014 17.75 10.2441C17.75 10.6584 17.4142 10.9941 17 10.9941H10.9941V17C10.9939 17.414 10.6582 17.75 10.2441 17.75C9.83006 17.75 9.49435 17.414 9.49414 17V10.9941H3.5C3.08579 10.9941 2.75 10.6584 2.75 10.2441C2.75025 9.83014 3.08594 9.49414 3.5 9.49414H9.49414V3.5C9.49414 3.08579 9.82993 2.75 10.2441 2.75Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 657 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 1C7.77614 1 8 1.22386 8 1.5V7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H8V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V8H1.5C1.22386 8 1 7.77614 1 7.5C1 7.22386 1.22386 7 1.5 7H7V1.5C7 1.22386 7.22386 1 7.5 1Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 547 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11.5 6.25L8 9.75L4.5 6.25" stroke="#B4B8BF" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 309 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.5 11.5L6 8L9.5 4.5" stroke="#B4B8BF" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 304 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6 11.5L9.5 8L6 4.5" stroke="#B4B8BF" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 302 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.5 12.5L12.5 3.5M12.5 12.5L3.5 3.5" stroke="#CED0D6" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 319 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2H9C9.55228 2 10 2.44772 10 3H6C6 2.44772 6.44772 2 7 2ZM5 3C5 1.89543 5.89543 1 7 1H9C10.1046 1 11 1.89543 11 3H13C13.5523 3 14 3.44772 14 4V5V6H13V13C13 14.1046 12.1046 15 11 15H5C3.89543 15 3 14.1046 3 13V6H2V5V4C2 3.44772 2.44772 3 3 3H5ZM11 4H10H6H5H3V5H4H12H13V4H11ZM4 6H12V13C12 13.5523 11.5523 14 11 14H5C4.44772 14 4 13.5523 4 13V6ZM6.5 7C6.22386 7 6 7.22386 6 7.5V11.5C6 11.7761 6.22386 12 6.5 12C6.77614 12 7 11.7761 7 11.5V7.5C7 7.22386 6.77614 7 6.5 7ZM9 7.5C9 7.22386 9.22386 7 9.5 7C9.77614 7 10 7.22386 10 7.5V11.5C10 11.7761 9.77614 12 9.5 12C9.22386 12 9 11.7761 9 11.5V7.5Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 893 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.5 5V2.02054C11.4149 2.26101 13.739 4.5851 13.9795 7.5H11C10.7239 7.5 10.5 7.72386 10.5 8C10.5 8.27614 10.7239 8.5 11 8.5H13.9795C13.739 11.4149 11.4149 13.739 8.5 13.9795V11C8.5 10.7239 8.27614 10.5 8 10.5C7.72386 10.5 7.5 10.7239 7.5 11V13.9795C4.5851 13.739 2.26101 11.4149 2.02054 8.5H5C5.27614 8.5 5.5 8.27614 5.5 8C5.5 7.72386 5.27614 7.5 5 7.5H2.02054C2.26101 4.5851 4.5851 2.26101 7.5 2.02054V5C7.5 5.27614 7.72386 5.5 8 5.5C8.27614 5.5 8.5 5.27614 8.5 5ZM1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 866 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5 5C5 3.34315 6.34315 2 8 2C9.65685 2 11 3.34315 11 5V6C12.1046 6 13 6.89543 13 8V12C13 13.1046 12.1046 14 11 14H5C3.89543 14 3 13.1046 3 12V8C3 6.89543 3.89543 6 5 6V5ZM10 5V6H6V5C6 3.89543 6.89543 3 8 3C9.10457 3 10 3.89543 10 5ZM5 7C4.44772 7 4 7.44772 4 8V12C4 12.5523 4.44772 13 5 13H11C11.5523 13 12 12.5523 12 12V8C12 7.44772 11.5523 7 11 7H5ZM8 8.5C7.72386 8.5 7.5 8.72386 7.5 9V11C7.5 11.2761 7.72386 11.5 8 11.5C8.27614 11.5 8.5 11.2761 8.5 11V9C8.5 8.72386 8.27614 8.5 8 8.5Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 785 B

@@ -0,0 +1,6 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="3.5" cy="10" r="1.5" transform="rotate(-90 3.5 10)" fill="#CED0D6"/>
<circle cx="10" cy="10" r="1.5" transform="rotate(-90 10 10)" fill="#CED0D6"/>
<circle cx="16.5" cy="10" r="1.5" transform="rotate(-90 16.5 10)" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 473 B

@@ -0,0 +1,6 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="3" cy="8" r="1" transform="rotate(-90 3 8)" fill="#CED0D6"/>
<circle cx="8" cy="8" r="1" transform="rotate(-90 8 8)" fill="#CED0D6"/>
<circle cx="13" cy="8" r="1" transform="rotate(-90 13 8)" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 451 B

@@ -0,0 +1,6 @@
<!-- Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="6.5" stroke="#6F737A"/>
<path d="M7.59245 8.521C7.67312 8.33767 7.77212 8.18 7.88945 8.048C8.00679 7.916 8.16445 7.75833 8.36245 7.575C8.55312 7.40267 8.70345 7.25417 8.81345 7.1295C8.92712 7.00483 9.02245 6.86 9.09945 6.695C9.17645 6.52633 9.21495 6.33933 9.21495 6.134C9.21495 5.903 9.16545 5.69767 9.06645 5.518C8.97112 5.33833 8.83545 5.199 8.65945 5.1C8.48345 5.001 8.28179 4.9515 8.05445 4.9515C7.80145 4.9515 7.57779 5.0065 7.38345 5.1165C7.18912 5.2265 7.03879 5.3805 6.93245 5.5785C6.90638 5.62705 6.88351 5.67735 6.86383 5.72943C6.75806 6.00931 6.5304 6.2605 6.2312 6.2605V6.2605C5.932 6.2605 5.68157 6.01527 5.74167 5.72217C5.78989 5.48707 5.87148 5.27051 5.98645 5.0725C6.18445 4.7315 6.46312 4.4675 6.82245 4.2805C7.18179 4.0935 7.59612 4 8.06545 4C8.51279 4 8.90695 4.08617 9.24795 4.2585C9.58895 4.43083 9.85295 4.67467 10.04 4.99C10.227 5.30167 10.3186 5.661 10.315 6.068C10.315 6.38333 10.2655 6.662 10.1665 6.904C10.0675 7.14233 9.94645 7.34217 9.80345 7.5035C9.66045 7.66483 9.47529 7.84633 9.24795 8.048C9.07929 8.19833 8.94729 8.32483 8.85195 8.4275C8.75662 8.53017 8.67595 8.64567 8.60995 8.774C8.59197 8.80996 8.57743 8.84636 8.56569 8.88312C8.47784 9.15799 8.28252 9.401 7.99395 9.401V9.401C7.70538 9.401 7.45381 9.16525 7.4934 8.87941C7.51026 8.75764 7.54001 8.6378 7.59245 8.521Z" fill="#6F737A"/>
<circle cx="8" cy="10.75" r="0.75" fill="#6F737A"/>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1 10.5C1 10.7761 1.22386 11 1.5 11C1.77614 11 2 10.7761 2 10.5H1ZM13.6263 10.3322C13.8098 10.5386 14.1258 10.5572 14.3322 10.3737C14.5386 10.1902 14.5572 9.87421 14.3737 9.66782L13.6263 10.3322ZM11.5 9.99999C11.2239 9.99999 11 10.2238 11 10.5C11 10.7761 11.2239 11 11.5 11V9.99999ZM14.5 10.5V11H15V10.5H14.5ZM15 7.49999C15 7.22385 14.7761 6.99999 14.5 6.99999C14.2239 6.99999 14 7.22385 14 7.49999H15ZM1.5 10.5C2 10.5 2 10.5002 2 10.5004C2 10.5005 2 10.5007 2 10.5008C2 10.5009 2 10.501 2 10.5011C2 10.5011 2 10.5009 2 10.5003C2.00001 10.4993 2.00003 10.4971 2.00009 10.4937C2.0002 10.487 2.00043 10.4759 2.00094 10.4605C2.00197 10.4298 2.00409 10.3824 2.00849 10.3208C2.01731 10.1974 2.03519 10.0178 2.07132 9.80095C2.14399 9.36495 2.28839 8.79125 2.57221 8.22361C2.85506 7.65792 3.27147 7.10745 3.88673 6.69728C4.49885 6.28919 5.33749 6 6.5 6V5C5.16251 5 4.12615 5.33581 3.33203 5.86522C2.54103 6.39255 2.01994 7.09208 1.67779 7.77639C1.33661 8.45875 1.16851 9.13505 1.08493 9.63655C1.04294 9.88848 1.02175 10.0995 1.01104 10.2495C1.00567 10.3246 1.00292 10.3847 1.0015 10.4272C1.00079 10.4485 1.00041 10.4654 1.00022 10.4776C1.00012 10.4837 1.00006 10.4887 1.00003 10.4924C1.00002 10.4943 1.00001 10.4959 1.00001 10.4971C1 10.4978 1 10.4983 1 10.4988C1 10.499 1 10.4993 1 10.4995C1 10.4997 1 10.5 1.5 10.5ZM6.5 6C8.06824 6 9.82619 7.02606 11.2543 8.14375C11.9546 8.69176 12.5497 9.24102 12.97 9.65366C13.1799 9.85969 13.3454 10.0309 13.4578 10.15C13.514 10.2094 13.5568 10.2558 13.5853 10.287C13.5995 10.3025 13.6102 10.3142 13.617 10.3219C13.6205 10.3257 13.623 10.3285 13.6245 10.3302C13.6253 10.3311 13.6258 10.3317 13.6261 10.332C13.6263 10.3322 13.6264 10.3323 13.6264 10.3323C13.6264 10.3323 13.6264 10.3323 13.6264 10.3323C13.6264 10.3322 13.6263 10.3322 14 10C14.3737 9.66782 14.3736 9.66772 14.3735 9.66761C14.3735 9.66755 14.3733 9.66742 14.3732 9.66729C14.373 9.66705 14.3727 9.66674 14.3724 9.66636C14.3717 9.6656 14.3708 9.66457 14.3696 9.66327C14.3673 9.66068 14.364 9.65701 14.3598 9.65231C14.3513 9.64292 14.3391 9.62938 14.3231 9.61197C14.2913 9.57717 14.2448 9.52688 14.1848 9.46333C14.0648 9.33626 13.8904 9.15594 13.6706 8.94009C13.2315 8.50898 12.6079 7.93324 11.8707 7.35625C10.4238 6.22394 8.43176 5 6.5 5V6ZM11.5 11H14.5V9.99999H11.5V11ZM15 10.5V7.49999H14V10.5H15Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

@@ -0,0 +1,7 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.5 9V8C2.5 4.96243 4.96243 2.5 8 2.5C9.10679 2.5 10.1372 2.82692 11 3.38947" stroke="#CED0D6" stroke-linecap="round"/>
<path d="M5 12.6105C5.86278 13.1731 6.89321 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8V7" stroke="#CED0D6" stroke-linecap="round"/>
<path d="M0.49997 7.50027L2.5 9.5L4.49998 7.50023" stroke="#CED0D6" stroke-linecap="round"/>
<path d="M11.5 8.49982L13.5 6.5L15.5 8.49982" stroke="#CED0D6" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 675 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.85363 2.35355C6.04889 2.15829 6.04889 1.84171 5.85363 1.64645C5.65837 1.45118 5.34178 1.45118 5.14652 1.64645L1.64652 5.14645L1.29297 5.5L1.64652 5.85355L5.14652 9.35355C5.34178 9.54882 5.65837 9.54882 5.85363 9.35355C6.04889 9.15829 6.04889 8.84171 5.85363 8.64645L3.20718 6H10.5001C12.4331 6 14.0001 7.567 14.0001 9.5C14.0001 11.433 12.4331 13 10.5001 13H5.50008C5.22393 13 5.00008 13.2239 5.00008 13.5C5.00008 13.7761 5.22393 14 5.50008 14H10.5001C12.9854 14 15.0001 11.9853 15.0001 9.5C15.0001 7.01472 12.9854 5 10.5001 5H3.20718L5.85363 2.35355Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 851 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 9C14.5 12.0376 12.0376 14.5 9 14.5C5.96243 14.5 3.5 12.0376 3.5 9C3.5 5.96243 5.96243 3.5 9 3.5C12.0376 3.5 14.5 5.96243 14.5 9ZM13.3584 14.478C12.1625 15.4307 10.6478 16 9 16C5.13401 16 2 12.866 2 9C2 5.13401 5.13401 2 9 2C12.866 2 16 5.13401 16 9C16 10.6478 15.4307 12.1625 14.478 13.3584C14.5086 13.3812 14.5379 13.4065 14.5657 13.4343L18.5657 17.4343C18.8781 17.7467 18.8781 18.2533 18.5657 18.5657C18.2533 18.8781 17.7467 18.8781 17.4343 18.5657L13.4343 14.5657C13.4065 14.5379 13.3812 14.5086 13.3584 14.478Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 818 B

@@ -0,0 +1,5 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="7" cy="7" r="4.5" stroke="#CED0D6"/>
<path d="M10.1992 10.2002L13.4992 13.4961" stroke="#CED0D6" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 364 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.96446 5.54781C3.63344 5.99572 3.35137 6.48132 3.12584 6.99671L4.14987 8.72634C4.61489 9.51177 4.61489 10.4882 4.14987 11.2736L3.12584 13.0033C3.35137 13.5187 3.63344 14.0043 3.96446 14.4522L5.9723 14.4302C6.88501 14.4202 7.73062 14.9084 8.17831 15.7038L9.16331 17.4539C9.43778 17.4843 9.71717 17.5 10.0007 17.5C10.2843 17.5 10.5637 17.4843 10.8382 17.4539L11.8232 15.7038C12.2709 14.9084 13.1165 14.4202 14.0292 14.4302L16.037 14.4522C16.368 14.0043 16.6501 13.5186 16.8756 13.0033L15.8516 11.2736C15.3866 10.4882 15.3866 9.51177 15.8516 8.72634L16.8756 6.99671C16.6501 6.48132 16.368 5.99572 16.037 5.54781L14.0292 5.56981C13.1165 5.57981 12.2709 5.09159 11.8232 4.29617L10.8382 2.5461C10.5637 2.51567 10.2843 2.5 10.0007 2.5C9.71717 2.5 9.43779 2.51567 9.16332 2.54609L8.17831 4.29617C7.73062 5.09159 6.88501 5.57981 5.9723 5.56981L3.96446 5.54781ZM13.6234 10C13.6234 12.0008 12.0015 13.6227 10.0007 13.6227C7.99996 13.6227 6.37802 12.0008 6.37802 10C6.37802 7.99924 7.99996 6.37729 10.0007 6.37729C12.0015 6.37729 13.6234 7.99923 13.6234 10ZM5.98873 4.0699C6.35382 4.0739 6.69206 3.87861 6.87114 3.56044L7.98752 1.57695C8.13019 1.32346 8.37572 1.14153 8.66343 1.09868C9.09976 1.03368 9.54632 1 10.0007 1C10.4552 1 10.9017 1.03368 11.3381 1.09868C11.6258 1.14154 11.8713 1.32346 12.014 1.57695L13.1303 3.56044C13.3094 3.87861 13.6477 4.0739 14.0127 4.0699L16.2875 4.04498C16.5778 4.0418 16.8576 4.16301 17.0387 4.38992C17.594 5.08559 18.0482 5.8654 18.3793 6.70716C18.4856 6.9775 18.4507 7.28065 18.3027 7.53062L17.1424 9.49053C16.9563 9.8047 16.9563 10.1953 17.1424 10.5094L18.3027 12.4694C18.4507 12.7193 18.4856 13.0225 18.3793 13.2928C18.0482 14.1346 17.594 14.9144 17.0387 15.6101C16.8576 15.837 16.5778 15.9582 16.2875 15.955L14.0128 15.9301C13.6477 15.9261 13.3094 16.1214 13.1303 16.4395L12.014 18.423C11.8713 18.6765 11.6258 18.8584 11.3381 18.9013C10.9017 18.9663 10.4552 19 10.0007 19C9.54631 19 9.09976 18.9663 8.66343 18.9013C8.37571 18.8584 8.13018 18.6765 7.98751 18.423L6.87114 16.4395C6.69206 16.1214 6.35382 15.9261 5.98873 15.9301L3.71401 15.955C3.4237 15.9582 3.14389 15.837 2.96277 15.6101C2.40752 14.9144 1.95325 14.1346 1.62217 13.2928C1.51585 13.0225 1.55076 12.7193 1.69876 12.4694L2.85913 10.5094C3.04514 10.1953 3.04514 9.8047 2.85913 9.49053L1.69876 7.53061C1.55076 7.28064 1.51584 6.97749 1.62217 6.70715C1.95325 5.86539 2.40751 5.08558 2.96276 4.38992C3.14388 4.16301 3.42369 4.0418 3.71401 4.04498L5.98873 4.0699ZM12.1234 10C12.1234 11.1723 11.1731 12.1227 10.0007 12.1227C8.82839 12.1227 7.87802 11.1723 7.87802 10C7.87802 8.82766 8.82839 7.87729 10.0007 7.87729C11.1731 7.87729 12.1234 8.82766 12.1234 10Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.22655 4.36961C2.92233 4.76924 2.66735 5.20781 2.47037 5.67626L3.30992 7.0943C3.6406 7.65283 3.6406 8.34718 3.30992 8.9057L2.47037 10.3237C2.66736 10.7922 2.92233 11.2308 3.22656 11.6304L4.87261 11.6124C5.52165 11.6053 6.12297 11.9524 6.44133 12.5181L7.24899 13.953C7.49593 13.984 7.74792 14 8.00408 14C8.2602 14 8.51214 13.984 8.75904 13.9531L9.56671 12.5181C9.88507 11.9524 10.4864 11.6053 11.1354 11.6124L12.7816 11.6304C13.0858 11.2308 13.3408 10.7923 13.5377 10.3239L12.6981 8.9057C12.3674 8.34718 12.3674 7.65283 12.6981 7.0943L13.5377 5.67613C13.3408 5.20773 13.0858 4.76921 12.7816 4.36961L11.1354 4.38764C10.4864 4.39475 9.88507 4.04758 9.56671 3.48194L8.75904 2.04693C8.51214 2.01599 8.2602 2 8.00408 2C7.74792 2 7.49594 2.016 7.24899 2.04695L6.44133 3.48194C6.12297 4.04758 5.52165 4.39475 4.87261 4.38764L3.22655 4.36961ZM10.655 8.00001C10.655 9.46412 9.46811 10.651 8.004 10.651C6.5399 10.651 5.353 9.46412 5.353 8.00001C5.353 6.53591 6.5399 5.34902 8.004 5.34902C9.46811 5.34902 10.655 6.53591 10.655 8.00001ZM4.88356 3.3877C5.16752 3.39081 5.4306 3.23892 5.56988 2.99146L6.43817 1.44875C6.54914 1.25159 6.7401 1.1101 6.96387 1.07676C7.30327 1.0262 7.65062 1 8.00408 1C8.3575 1 8.7048 1.02619 9.04414 1.07674C9.26792 1.11007 9.45889 1.25157 9.56986 1.44873L10.4382 2.99146C10.5774 3.23892 10.8405 3.39081 11.1245 3.3877L12.8938 3.36832C13.1196 3.36585 13.3372 3.46012 13.4781 3.63661C13.9099 4.17766 14.2632 4.78416 14.5207 5.43884C14.6034 5.6491 14.5763 5.88489 14.4612 6.07931L13.5586 7.60376C13.4139 7.84811 13.4139 8.15189 13.5586 8.39625L14.4612 9.92069C14.5763 10.1151 14.6034 10.3509 14.5207 10.5612C14.2632 11.2158 13.9099 11.8223 13.4781 12.3634C13.3372 12.5399 13.1196 12.6342 12.8938 12.6317L11.1245 12.6123C10.8405 12.6092 10.5774 12.7611 10.4382 13.0085L9.56986 14.5513C9.45889 14.7484 9.26792 14.8899 9.04414 14.9233C8.7048 14.9738 8.3575 15 8.00408 15C7.65062 15 7.30327 14.9738 6.96387 14.9232C6.7401 14.8899 6.54914 14.7484 6.43817 14.5512L5.56988 13.0085C5.4306 12.7611 5.16752 12.6092 4.88356 12.6123L3.1144 12.6317C2.8886 12.6342 2.67096 12.5399 2.5301 12.3634C2.09822 11.8223 1.74489 11.2158 1.48738 10.561C1.40469 10.3508 1.43184 10.115 1.54695 9.92057L2.44942 8.39625C2.5941 8.15189 2.5941 7.84811 2.44942 7.60376L1.54695 6.07944C1.43184 5.88502 1.40469 5.64924 1.48738 5.43898C1.74489 4.78425 2.09822 4.1777 2.53009 3.63661C2.67096 3.46012 2.8886 3.36585 3.1144 3.36832L4.88356 3.3877ZM9.655 8.00001C9.655 8.91183 8.91582 9.65101 8.004 9.65101C7.09218 9.65101 6.353 8.91183 6.353 8.00001C6.353 7.08819 7.09218 6.34902 8.004 6.34902C8.91582 6.34902 9.655 7.08819 9.655 8.00001Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1.62632 9.66782C1.44286 9.87421 1.46145 10.1902 1.66785 10.3737C1.87424 10.5572 2.19027 10.5386 2.37373 10.3322L1.62632 9.66782ZM14 10.5C14 10.7761 14.2239 11 14.5 11C14.7761 11 15 10.7761 15 10.5H14ZM2 7.5C2 7.22386 1.77614 7 1.5 7C1.22386 7 1 7.22386 1 7.5H2ZM1.5 10.5H1V11H1.5V10.5ZM4.5 11C4.77614 11 5 10.7761 5 10.5C5 10.2239 4.77614 10 4.5 10V11ZM2.00003 10C2.37373 10.3322 2.37368 10.3322 2.37364 10.3323C2.37364 10.3323 2.37362 10.3323 2.37363 10.3323C2.37366 10.3323 2.37375 10.3322 2.37389 10.332C2.37419 10.3317 2.37473 10.3311 2.3755 10.3302C2.37705 10.3285 2.37955 10.3257 2.38299 10.3219C2.38987 10.3142 2.40049 10.3025 2.41472 10.287C2.44318 10.2558 2.48606 10.2094 2.54224 10.15C2.65466 10.0309 2.82016 9.85969 3.03001 9.65366C3.45029 9.24102 4.04545 8.69176 4.74568 8.14375C6.17384 7.02606 7.93178 6 9.50003 6V5C7.56827 5 5.57621 6.22394 4.12937 7.35625C3.39211 7.93324 2.76851 8.50898 2.32942 8.94009C2.10958 9.15594 1.93524 9.33626 1.81523 9.46333C1.75521 9.52688 1.70873 9.57717 1.67689 9.61197C1.66096 9.62938 1.6487 9.64292 1.64023 9.65231C1.63599 9.65701 1.6327 9.66068 1.63038 9.66327C1.62922 9.66457 1.6283 9.6656 1.62762 9.66636C1.62728 9.66674 1.627 9.66705 1.62679 9.66729C1.62668 9.66742 1.62656 9.66755 1.62651 9.66761C1.62641 9.66772 1.62632 9.66782 2.00003 10ZM9.50003 6C10.6625 6 11.5012 6.28919 12.1133 6.69727C12.7285 7.10745 13.1449 7.65792 13.4278 8.22361C13.7116 8.79125 13.856 9.36494 13.9287 9.80095C13.9648 10.0178 13.9827 10.1974 13.9915 10.3208C13.9959 10.3824 13.998 10.4298 13.9991 10.4605C13.9996 10.4759 13.9998 10.487 13.9999 10.4937C14 10.4971 14 10.4993 14 10.5003C14 10.5009 14 10.5011 14 10.5011C14 10.501 14 10.5009 14 10.5008C14 10.5007 14 10.5005 14 10.5004C14 10.5002 14 10.5 14.5 10.5C15 10.5 15 10.4997 15 10.4995C15 10.4993 15 10.499 15 10.4988C15 10.4983 15 10.4978 15 10.4971C15 10.4959 15 10.4943 15 10.4924C14.9999 10.4887 14.9999 10.4837 14.9998 10.4776C14.9996 10.4654 14.9992 10.4485 14.9985 10.4272C14.9971 10.3847 14.9943 10.3246 14.989 10.2495C14.9782 10.0995 14.9571 9.88848 14.9151 9.63655C14.8315 9.13506 14.6634 8.45875 14.3222 7.77639C13.9801 7.09208 13.459 6.39255 12.668 5.86523C11.8739 5.33581 10.8375 5 9.50003 5V6ZM1 7.5V10.5H2V7.5H1ZM1.5 11H4.5V10H1.5V11Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.346 12V6.096H1.372V4.872H2.488C2.732 4.872 2.946 4.82 3.13 4.716C3.318 4.612 3.462 4.464 3.562 4.272C3.662 4.08 3.712 3.856 3.712 3.6H3.718H4.816V12H3.346ZM7.06909 10.398H8.67109V12H7.06909V10.398ZM7.06909 5.658H8.67109V7.26H7.06909V5.658ZM11.9621 12V6.096H9.98809V4.872H11.1041C11.3481 4.872 11.5621 4.82 11.7461 4.716C11.9341 4.612 12.0781 4.464 12.1781 4.272C12.2781 4.08 12.3281 3.856 12.3281 3.6H12.3341H13.4321V12H11.9621Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 689 B

@@ -0,0 +1,7 @@
<!-- Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="11" y="2" width="1" height="12" rx="0.5" fill="#CED0D6"/>
<rect x="14" y="11" width="1" height="12" rx="0.5" transform="rotate(90 14 11)" fill="#CED0D6"/>
<rect x="4" y="2" width="1" height="12" rx="0.5" fill="#CED0D6"/>
<rect x="14" y="4" width="1" height="12" rx="0.5" transform="rotate(90 14 4)" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 555 B

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10 1C14.9706 1 19 5.02944 19 10C19 14.9706 14.9706 19 10 19C5.02944 19 1 14.9706 1 10C1 5.02944 5.02944 1 10 1ZM7.86621 13.5C8.05352 14.3539 8.3019 15.1125 8.58887 15.7432C8.90888 16.4463 9.24777 16.9281 9.54297 17.2129C9.83894 17.4984 9.99403 17.5 10 17.5C10.006 17.5 10.1611 17.4984 10.457 17.2129C10.7522 16.9281 11.0911 16.4463 11.4111 15.7432C11.6981 15.1125 11.9465 14.3539 12.1338 13.5H7.86621ZM3.36621 13.5C4.25779 15.1864 5.77323 16.4904 7.60547 17.1074C7.06202 16.1681 6.61554 14.9285 6.33301 13.5H3.36621ZM13.667 13.5C13.3844 14.9287 12.9371 16.1681 12.3936 17.1074C14.2262 16.4905 15.7421 15.1866 16.6338 13.5H13.667ZM2.77148 8C2.59567 8.63686 2.5 9.30722 2.5 10C2.5 10.6928 2.59567 11.3631 2.77148 12H6.10742C6.03836 11.3567 6 10.6874 6 10C6 9.31256 6.03836 8.64327 6.10742 8H2.77148ZM7.61621 8C7.5417 8.63518 7.5 9.30499 7.5 10C7.5 10.695 7.5417 11.3648 7.61621 12H12.3838C12.4583 11.3648 12.5 10.695 12.5 10C12.5 9.30499 12.4583 8.63518 12.3838 8H7.61621ZM13.8926 8C13.9616 8.64327 14 9.31256 14 10C14 10.6874 13.9616 11.3567 13.8926 12H17.2285C17.4043 11.3631 17.5 10.6928 17.5 10C17.5 9.30722 17.4043 8.63686 17.2285 8H13.8926ZM7.60547 2.8916C5.7731 3.50862 4.25784 4.81354 3.36621 6.5H6.33301C6.61562 5.07117 7.06183 3.83096 7.60547 2.8916ZM10 2.5C9.99403 2.5 9.83894 2.50158 9.54297 2.78711C9.24777 3.0719 8.90888 3.5537 8.58887 4.25684C8.3019 4.88747 8.05352 5.64606 7.86621 6.5H12.1338C11.9465 5.64606 11.6981 4.88747 11.4111 4.25684C11.0911 3.5537 10.7522 3.0719 10.457 2.78711C10.1611 2.50158 10.006 2.5 10 2.5ZM12.3936 2.8916C12.9373 3.83101 13.3843 5.07095 13.667 6.5H16.6338C15.742 4.81327 14.2263 3.50849 12.3936 2.8916Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,4 @@
<!-- Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -->
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM6.3125 11C6.44266 11.5858 6.60701 12.1103 6.79785 12.5557C7.03754 13.1149 7.29769 13.5039 7.53516 13.7383C7.76816 13.9681 7.92398 14 8 14C8.07602 14 8.23184 13.9681 8.46484 13.7383C8.70231 13.5039 8.96246 13.1149 9.20215 12.5557C9.39299 12.1103 9.55734 11.5858 9.6875 11H6.3125ZM2.80469 11C3.56455 12.3131 4.80678 13.3106 6.29004 13.751C5.86191 13.0564 5.51476 12.1085 5.28906 11H2.80469ZM10.7109 11C10.4852 12.1088 10.1372 13.0564 9.70898 13.751C11.1926 13.3108 12.4353 12.3133 13.1953 11H10.7109ZM2.34277 6C2.12157 6.62568 2 7.29857 2 8C2 8.70143 2.12157 9.37432 2.34277 10H5.125C5.04416 9.36626 5 8.69501 5 8C5 7.30499 5.04416 6.63374 5.125 6H2.34277ZM6.13379 6C6.04822 6.62358 6 7.29538 6 8C6 8.70462 6.04822 9.37642 6.13379 10H9.86621C9.95178 9.37642 10 8.70462 10 8C10 7.29538 9.95178 6.62358 9.86621 6H6.13379ZM10.875 6C10.9558 6.63374 11 7.30499 11 8C11 8.69501 10.9558 9.36626 10.875 10H13.6572C13.8784 9.37432 14 8.70143 14 8C14 7.29857 13.8784 6.62568 13.6572 6H10.875ZM6.29004 2.24805C4.80666 2.68836 3.56459 3.68685 2.80469 5H5.28906C5.51484 3.89108 5.86171 2.94268 6.29004 2.24805ZM8 2C7.92398 2 7.76816 2.03186 7.53516 2.26172C7.29769 2.49608 7.03754 2.88507 6.79785 3.44434C6.60701 3.88966 6.44266 4.41423 6.3125 5H9.6875C9.55734 4.41423 9.39299 3.88966 9.20215 3.44434C8.96246 2.88507 8.70231 2.49608 8.46484 2.26172C8.23184 2.03186 8.07602 2 8 2ZM9.70898 2.24805C10.1374 2.94272 10.4851 3.89085 10.7109 5H13.1953C12.4353 3.68659 11.1928 2.68823 9.70898 2.24805Z" fill="#CED0D6"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

+1 -1
View File
@@ -6,7 +6,7 @@ import { App } from './App'
import './styles.css'
const ICON_SIZE_PX = 16
const ICON_STROKE_PX = 1.5
const ICON_STROKE_PX = 1.25
createRoot(document.getElementById('root')!).render(
<StrictMode>
+2 -2
View File
@@ -1,10 +1,10 @@
import { Timer } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { cn } from '@/lib/utils'
import type { BridgeClient } from '../bridge/BridgeClient'
import type { BakeRun } from '../bridge/types'
import { BAKE_RUN_COUNT, bakeWeightOf, formatMillis, measureBake, meterFill, runMillis, slowestStageIndex, weightScale } from '../scene/bakeTiming'
import { Glyph } from './Glyph'
const MINIMUM_FILL = '4px'
const MEASURING_LABEL = 'Timing'
@@ -49,7 +49,7 @@ export function BakeMeter({ timing }: BakeMeterProps): React.JSX.Element {
<Tooltip>
<TooltipTrigger asChild>
<div className="flex h-8 shrink-0 items-center gap-2 border-b px-4 text-[11.5px]">
<Timer className={cn(timing === null && 'opacity-50')} />
<Glyph glyph="stopWatch" className={cn(timing === null && 'opacity-50')} />
<span className={cn('w-[62px] shrink-0 font-semibold', timing === null ? 'text-muted-foreground' : weight.textClass)}>
{timing === null ? MEASURING_LABEL : weight.label}
</span>
@@ -1,8 +1,8 @@
import { useEffect, useRef, useState } from 'react'
import { Globe, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import type { BridgeConnection } from '../../../shared/bridge'
import { Glyph } from './Glyph'
const BRIDGE_POLL_MILLIS = 2000
@@ -45,8 +45,8 @@ export function ConnectScreen({ connecting, error, onConnect, onLink }: ConnectS
}, [onConnect])
return (
<div className="window-frame flex h-full items-center justify-center">
<div className="w-[440px] rounded-xl border border-overlay-border bg-card p-6 shadow-lg">
<div className="flex h-full items-center justify-center">
<div className="w-[440px] rounded-lg bg-card p-6">
<h1 className="text-[15px] font-semibold">Open a world</h1>
<p className="mt-1 text-secondary-text">
Run <code className="rounded bg-secondary px-1 font-mono text-[12px]">/iris studio map</code> in game or in the
@@ -56,7 +56,7 @@ export function ConnectScreen({ connecting, error, onConnect, onLink }: ConnectS
<div className="mt-4 flex flex-col gap-1">
{bridges.length === 0 ? (
<div className="flex items-center gap-2 rounded-md px-3 py-2 text-muted-foreground">
<RefreshCw className="animate-spin" /> Waiting for a server on this machine
<Glyph glyph="refresh" className="animate-spin" /> Waiting for a server on this machine
</div>
) : (
bridges.map((bridge) => (
@@ -66,7 +66,7 @@ export function ConnectScreen({ connecting, error, onConnect, onLink }: ConnectS
onClick={() => onConnect(bridge)}
className="flex items-center gap-3 rounded-md px-3 py-2 text-left hover:bg-accent disabled:opacity-60"
>
<Globe />
<Glyph glyph="web" />
<span className="flex-1 truncate font-medium">{bridge.world}</span>
<span className="text-[11px] text-muted-foreground">port {bridge.port}</span>
</button>
@@ -83,7 +83,7 @@ export function ConnectScreen({ connecting, error, onConnect, onLink }: ConnectS
>
<Input value={link} onChange={(event) => setLink(event.target.value)} placeholder="iris-studio://…" className="h-8" />
<Button type="submit" size="sm" disabled={connecting || link.trim() === ''}>
{connecting ? <RefreshCw className="animate-spin" /> : 'Connect'}
{connecting ? <Glyph glyph="refresh" className="animate-spin" /> : 'Connect'}
</Button>
</form>
{error !== null && <p className="mt-2 text-[12px] text-destructive">{error}</p>}
@@ -1,4 +1,3 @@
import { Plus, Trash2 } from 'lucide-react'
import { useRef, useState } from 'react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
@@ -19,6 +18,7 @@ import {
withShape,
type Keyframe
} from '../editor/curves'
import { Glyph } from './Glyph'
const PREVIEW_SAMPLES = 40
const PREVIEW_WIDTH = 100
@@ -192,12 +192,12 @@ function PointsForm({ keys, locked, onWrite }: { keys: Keyframe[]; locked: boole
<NumberBox label="at" value={t} disabled={locked} onCommit={(next) => next !== undefined && onWrite(withKeyframe(keys, index, [next, value]))} />
<NumberBox label="value" value={value} disabled={locked} onCommit={(next) => next !== undefined && onWrite(withKeyframe(keys, index, [t, next]))} />
<Button variant="ghost" size="icon-sm" title="Remove the point" className="size-6 shrink-0" disabled={locked || keys.length <= 1} onClick={() => onWrite(withoutKeyframe(keys, index))}>
<Trash2 className="size-3.5" />
<Glyph glyph="delete" className="size-3.5" />
</Button>
</div>
))}
<Button variant="ghost" size="xs" disabled={locked} onClick={() => onWrite(withAddedKeyframe(keys))}>
<Plus className="size-3.5" /> Point
<Glyph glyph="add" className="size-3.5" /> Point
</Button>
</div>
)
@@ -1,4 +1,3 @@
import { ChevronRight, Plus } from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
import { Button } from '@/components/ui/button'
import { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from '@/components/ui/context-menu'
@@ -6,6 +5,7 @@ import { Input } from '@/components/ui/input'
import { ScrollArea } from '@/components/ui/scroll-area'
import { cn } from '@/lib/utils'
import { folderPrefixOf } from '../editor/entryKeys'
import { Glyph } from './Glyph'
const NUMBER = new Intl.NumberFormat('en-US')
const DELETE_KEY = 'Delete'
@@ -73,7 +73,7 @@ export function EntryBrowser({ title, entries, current, onSelect, fileActions, c
<h2 className="min-w-0 flex-1 truncate text-[13px] font-semibold">{title}</h2>
{fileActions !== undefined && (
<Button variant="ghost" size="icon-xs" title="New entry in the chosen one's folder" onClick={() => fileActions.onCreate(folderPrefixOf(current ?? ''))}>
<Plus />
<Glyph glyph="add" />
</Button>
)}
</div>
@@ -172,7 +172,7 @@ function FolderBranch({ folder, depth, context }: { folder: FolderNode; depth: n
className="flex h-[26px] w-full items-center gap-1 rounded-md px-2 text-left hover:bg-accent"
style={{ paddingLeft: indentOf(depth) }}
>
<ChevronRight className={cn('size-3.5 text-muted-foreground transition-transform', open && 'rotate-90')} />
<Glyph glyph="chevronRight" className={cn('size-3.5 text-muted-foreground transition-transform', open && 'rotate-90')} />
<span className="min-w-0 truncate">{folder.name}</span>
<span className="ml-auto shrink-0 pl-2 text-[11px] text-secondary-text">{NUMBER.format(folder.size)}</span>
</button>
+55
View File
@@ -0,0 +1,55 @@
import { cn } from '@/lib/utils'
const ICON_MARKUP = import.meta.glob('../icons/intellij/**/*.svg', { eager: true, query: '?raw', import: 'default' }) as Record<string, string>
/** Each glyph's IntelliJ new-UI icon, by its path under `icons/intellij` without the `_dark.svg` ending. */
const GLYPHS = {
add: 'general/add',
chevronDown: 'general/chevronDown',
chevronLeft: 'general/chevronLeft',
chevronRight: 'general/chevronRight',
close: 'general/close',
delete: 'general/delete',
help: 'general/questionMark',
locate: 'general/locate',
locked: 'general/locked',
more: 'general/moreHorizontal',
redo: 'general/redo',
undo: 'general/undo',
refresh: 'general/refresh',
reset: 'general/reset',
search: 'general/search',
settings: 'general/settings',
check: 'actions/checked',
stopWatch: 'actions/stopWatch',
actualZoom: 'image/actualZoom',
grid: 'image/grid',
web: 'toolwindows/web',
}
export type GlyphName = keyof typeof GLYPHS
const ICON_COLOUR = /#[0-9A-Fa-f]{6}\b/g
/** The icon's markup drawn in the current colour, sized by its box, so it takes the theme's icon colour. */
function markupOf(path: string): string {
return path.replace(ICON_COLOUR, 'currentColor').replace('<svg ', '<svg class="size-full" ')
}
const MARKUP = new Map(Object.entries(ICON_MARKUP).map(([path, markup]) => [path, markupOf(markup)]))
/**
* An IntelliJ icon: 16 px, 12 px when small, or 20 px when large, as IntelliJ draws stripe and main toolbar icons.
* Large takes the icon's own 20 px drawing where IntelliJ has one.
*/
export function Glyph({ glyph, small, large, className }: { glyph: GlyphName; small?: boolean; large?: boolean; className?: string }): React.JSX.Element {
const path = `../icons/intellij/${GLYPHS[glyph]}`
const markup = (large && MARKUP.get(`${path}@20x20_dark.svg`)) || MARKUP.get(`${path}_dark.svg`)
return (
<span
aria-hidden
className={cn('glyph inline-flex shrink-0', small ? 'size-3' : large ? 'size-5' : 'size-4', className)}
dangerouslySetInnerHTML={{ __html: markup ?? '' }}
/>
)
}
+1 -1
View File
@@ -52,7 +52,7 @@ export function HoverCard({ hover, point, viewId, previewing, detailed, minY }:
return (
<div
ref={card}
className="pointer-events-none absolute z-10 w-80 overflow-hidden rounded-lg border border-overlay-border bg-popover text-popover-foreground shadow-lg"
className="pointer-events-none absolute z-10 w-80 overflow-hidden popup"
style={position}
>
<div className="px-3.5 pt-3 pb-2.5">
@@ -28,7 +28,7 @@ export function ImageMapStudio({ title, client, packRevision, onSummary, tell }:
return (
<>
<ViewIsland title={entry === null ? title : `${title} · ${entry.name}`}>
<ViewIsland title={title} subtitle={entry?.name}>
<div className="absolute inset-0 flex items-center justify-center overflow-auto bg-map-background p-4">
{picture !== null && <img src={picture} alt={entry?.name ?? title} className="max-h-full max-w-full object-contain [image-rendering:pixelated]" />}
{entry === null && <p className="text-[12px] text-secondary-text">This pack has no image maps. Put them in the pack's imageMaps folder.</p>}
+7 -8
View File
@@ -21,12 +21,12 @@ import { SceneStudio } from './SceneStudio'
import { WorldStudio3D } from './WorldStudio3D'
import { isTypingInto, shortcutRows, viewOfShortcutId, windowShortcutFor, type ShortcutAction } from './shortcuts'
import { ShortcutSettings } from './ShortcutSettings'
import { Panel, ShownViewIcon, SidebarPanel, SidebarSlot, ViewIsland } from './Sidebar'
import { Panel, SidebarPanel, SidebarSlot, ViewIsland } from './Sidebar'
import { StatusBar } from './StatusBar'
import { MapTools, StudioToolbar } from './StudioToolbar'
import { useBindings } from './useBindings'
import { usePickInspection } from './usePickInspection'
import { ViewList, viewIcon } from './ViewList'
import { ViewList } from './ViewList'
const KEYBOARD_ZOOM_FACTOR = 2 ** 0.25
const ENTITY_POLL_MILLIS = 2000
@@ -218,11 +218,10 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps
)
return (
<div className="window-frame flex h-full flex-col">
<div className="flex h-full flex-col">
<StudioToolbar world={world} theme={theme} onHelp={() => setHelpOpen(true)} onSettings={() => setSettingsOpen(true)} onDisconnect={onDisconnect} />
<ShownViewIcon.Provider value={viewIcon(viewId)}>
<SidebarSlot.Provider value={sidebarSlot}>
<div className="flex min-h-0 flex-1 gap-1.5 px-1.5">
<div className="flex min-h-0 flex-1 gap-1.5 pr-1.5">
<ViewList views={views} current={viewId} onSelect={selectView} slotRef={setSidebarSlot} />
{viewId === 'regions' && regions.length > 1 && (
<SidebarPanel className="flex-1 overflow-y-auto p-1.5">
@@ -246,7 +245,8 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps
) : (
<>
<ViewIsland
title={previewName === null ? view.label : `${view.label} · ${previewName}`}
title={view.label}
subtitle={previewName ?? undefined}
tools={
<MapTools
toggles={toggles}
@@ -290,7 +290,7 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps
)}
{!connected && (
<div className="absolute inset-0 flex items-center justify-center bg-background/70">
<div className="rounded-xl border border-overlay-border bg-card p-5 text-center shadow-lg">
<div className="popup p-5 text-center">
<p className="font-medium">Lost the connection to the server</p>
<button className="mt-3 text-link hover:underline" onClick={onDisconnect}>
Back to the world list
@@ -322,7 +322,6 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps
)}
</div>
</SidebarSlot.Provider>
</ShownViewIcon.Provider>
<StatusBar viewLabel={statusLabel(view.label, previewName, showsMap ? null : sceneSummary)} status={showsMap ? status : null} notice={notice} usage={usage} progress={showsMap ? null : sceneProgress} />
<HelpDialog open={helpOpen} onOpenChange={setHelpOpen} views={views} />
<ShortcutSettings open={settingsOpen} onOpenChange={setSettingsOpen} views={views} />
+2 -2
View File
@@ -35,7 +35,7 @@ export const NodeBox = memo(function NodeBox({ placed, rows, selected, dropTarge
<div
data-node-id={placed.id}
className={cn(
'absolute cursor-move rounded-md bg-popover text-[11.5px] outline -outline-offset-1 dark:bg-secondary',
'absolute cursor-move rounded-md bg-popover text-[11.5px] outline -outline-offset-1',
dropTarget ? 'outline-2 outline-success' : selected ? 'outline-2 outline-primary' : 'outline-1 outline-overlay-border',
selected && 'z-[5]',
offset !== null && 'z-10 shadow-lg'
@@ -83,7 +83,7 @@ function InputSocket({ handle }: { handle: boolean }): React.JSX.Element {
title={handle ? 'Drag onto another node to grow from it' : undefined}
className={cn(
'absolute rounded-full border-[1.5px] border-secondary-text transition-transform',
handle ? 'cursor-pointer bg-popover hover:scale-[1.35] hover:border-primary dark:bg-secondary' : 'bg-secondary-text'
handle ? 'cursor-pointer bg-popover hover:scale-[1.35] hover:border-primary' : 'bg-secondary-text'
)}
style={socketStyle('left')}
/>
+4 -4
View File
@@ -1,10 +1,10 @@
import { Lock, Redo2, Undo2 } from 'lucide-react'
import { useEffect, useRef } from 'react'
import { Button } from '@/components/ui/button'
import type { GraphNode } from '../bridge/types'
import { idOf } from '../editor/nodeLayout'
import type { SuggestionStore } from '../editor/suggestionStore'
import type { NodeEditor } from '../editor/useNodeEditor'
import { Glyph } from './Glyph'
import { NodeCanvas } from './NodeCanvas'
import { isInEntryBrowser, isTypingInto, nodeEditorActionFor, type NodeEditorAction } from './shortcuts'
import { useBindings, useKeyText } from './useBindings'
@@ -37,16 +37,16 @@ export function NodePane({ editor, entryKey, values, suggestions, selected, onSe
{!locked && <span className="min-w-0 truncate text-[11.5px] text-muted-foreground">Right-click to add or delete · Drag a ring onto a node to regrow · {keyText('undo')} undoes</span>}
{state?.locked != null && (
<span className="flex shrink-0 items-center gap-1 text-[11.5px] whitespace-nowrap text-secondary-text" title={state.locked}>
<Lock className="size-3.5" />
<Glyph glyph="locked" className="size-3.5" />
Read only
</span>
)}
{editor.saving && <span className="text-[11.5px] text-secondary-text">Saving…</span>}
<Button variant="ghost" size="icon-sm" title="Undo (Ctrl+Z)" disabled={locked || !editor.canUndo} onClick={editor.undo}>
<Undo2 />
<Glyph glyph="undo" />
</Button>
<Button variant="ghost" size="icon-sm" title="Redo (Ctrl+Shift+Z)" disabled={locked || !editor.canRedo} onClick={editor.redo}>
<Redo2 />
<Glyph glyph="redo" />
</Button>
</header>
<div className="relative min-h-0 flex-1">
+2 -2
View File
@@ -1,10 +1,10 @@
import { ChevronRight } from 'lucide-react'
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '@/components/ui/dropdown-menu'
import { cn } from '@/lib/utils'
import type { SettingOption } from '../bridge/types'
import { NODE_HEADING, NODE_ROW, type NodeRow } from '../editor/nodeRows'
import { idOfFold, type SettingsFold } from '../editor/settingFolds'
import { defaultLiteral, defaultText } from '../editor/settingText'
import { Glyph } from './Glyph'
import { useNodeEditing } from './nodeEditing'
import { keepFocusOnCanvas, NodeSettingRow, ROW_INDENT, RowButton } from './NodeSettingRow'
@@ -51,7 +51,7 @@ function FoldRow({ fold, open, editable }: { fold: SettingsFold; open: boolean;
style={{ paddingLeft: (fold.depth - 1) * ROW_INDENT }}
onClick={() => onToggleFold(idOfFold(fold))}
>
<ChevronRight className={cn('size-3 text-secondary-text group-hover:text-foreground', open && 'rotate-90')} />
<Glyph glyph="chevronRight" className={cn('size-3 text-secondary-text group-hover:text-foreground', open && 'rotate-90')} />
<span className="shrink-0">{fold.kind === 'item' ? `#${fold.title}` : fold.title}</span>
{showsSummary && <span className="ml-1 min-w-0 truncate text-muted-foreground">{fold.summary}</span>}
</button>
@@ -1,4 +1,3 @@
import { Check, ChevronDown } from 'lucide-react'
import { useRef, useState } from 'react'
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu'
import { Popover, PopoverAnchor, PopoverContent } from '@/components/ui/popover'
@@ -8,6 +7,7 @@ import { NODE_ROW } from '../editor/nodeRows'
import { defaultText, isNumber, isStringList, literalOf, NOT_SET, problemWith, textOf } from '../editor/settingText'
import { suggestionSourceOf } from '../editor/suggestions'
import { CurveEditor, CurvePreview } from './CurveEditor'
import { Glyph } from './Glyph'
import { useNodeEditing, type SettingRow } from './nodeEditing'
import { SuggestionInput } from './SuggestionInput'
@@ -114,7 +114,7 @@ function CheckValue({ row, editable }: SettingRowProps): React.JSX.Element {
className={cn('flex size-3.5 items-center justify-center rounded-[4px] border', checked ? 'border-primary bg-primary' : 'border-input bg-muted', editable && 'hover:border-primary', row.value === undefined && 'opacity-60')}
onClick={() => onEdit({ op: 'set', object: row.fold.path, key: row.option.name, literal: String(!checked) })}
>
{checked && <Check className="size-3 text-primary-foreground" />}
{checked && <Glyph glyph="check" className="size-3 text-primary-foreground" />}
</button>
)
}
@@ -128,7 +128,7 @@ function ChoiceValue({ row, editable }: SettingRowProps): React.JSX.Element {
<DropdownMenuTrigger asChild disabled={!editable}>
<button type="button" data-node-control className={cn(FIELD, editable && EDITABLE_FIELD)}>
<ShownText row={row} />
<ChevronDown className="size-3 text-secondary-text" />
<Glyph glyph="chevronDown" className="size-3 text-secondary-text" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" onCloseAutoFocus={keepFocusOnCanvas}>
@@ -258,7 +258,7 @@ function ValueInput({ row, onDone }: { row: SettingRow; onDone(): void }): React
}}
/>
{shownProblem !== null && (
<p className="absolute top-full left-0 z-30 mt-1 w-max max-w-[260px] rounded-sm border border-destructive bg-popover px-1.5 py-1 text-[11px] whitespace-normal text-foreground shadow-md">
<p className="absolute top-full left-0 z-30 mt-1 w-max max-w-[260px] popup border-destructive px-1.5 py-1 text-[11px] whitespace-normal">
{shownProblem}
</p>
)}
@@ -1,4 +1,3 @@
import { RefreshCw, RotateCcw, Search } from 'lucide-react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
@@ -12,6 +11,7 @@ import { NOISE_PALETTES, noiseScale, type NoisePaletteId, type NoiseScale } from
import { NoiseTerrain } from '../noise/noiseTerrain'
import { createNoiseView, noiseTileSource, type NoiseLayer, type NoiseStatus, type NoiseView } from '../noise/noiseTiles'
import { focusAround, type TerrainStyle } from '../scene/terrainStream'
import { Glyph } from './Glyph'
import { hexColor } from './colors'
import { SceneViewport } from './SceneViewport'
import { TiledCanvas } from './TiledCanvas'
@@ -86,13 +86,14 @@ export function NoiseStudio({ title, client, packRevision, onSummary, tell }: No
return (
<>
<ViewIsland
title={source === null ? title : `${title} · ${source.name}`}
title={title}
subtitle={source?.name}
tools={
<>
{display === 'terrain' && source?.blockRange === null && <ReliefControl blocks={reliefBlocks} onChange={setReliefBlocks} />}
{display === 'flat' && (
<Button variant="ghost" size="icon-sm" className="size-7" title="Back to 0, 0" onClick={() => controllerRef.current?.resetView()}>
<RotateCcw />
<Button variant="ghost" size="icon-sm" className="size-6" title="Back to 0, 0" onClick={() => controllerRef.current?.resetView()}>
<Glyph glyph="reset" />
</Button>
)}
<Separator orientation="vertical" className="mx-1 h-4!" />
@@ -166,7 +167,7 @@ function SeedField({ seed, usesSeed, onChange }: { seed: string; usesSeed: boole
onKeyDown={(event) => event.key === 'Enter' && commit()}
/>
<Button variant="outline" size="icon-sm" title="Random seed" disabled={!usesSeed} onClick={() => onChange(randomSeed())}>
<RefreshCw />
<Glyph glyph="refresh" />
</Button>
</div>
{!usesSeed && <p className="pt-1.5 text-[11.5px] text-secondary-text">Keeps the world&apos;s seed</p>}
@@ -232,7 +233,7 @@ function SourceList({ sources, current, onSelect }: { sources: NoiseSource[]; cu
<section className="flex min-h-0 flex-1 flex-col border-t">
<div className="relative px-3 pt-2.5 pb-1.5">
<span className="pointer-events-none absolute top-[15px] left-5">
<Search className="size-3.5" />
<Glyph glyph="search" className="size-3.5" />
</span>
<Input value={filter} placeholder="Search" className="h-7 pl-7 text-[12px] md:text-[12px]" onChange={(event) => setFilter(event.target.value)} />
</div>
@@ -1,4 +1,3 @@
import { RotateCcw } from 'lucide-react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Button } from '@/components/ui/button'
import { ScrollArea } from '@/components/ui/scroll-area'
@@ -11,6 +10,7 @@ import { BlockModels } from '../scene/blockModels'
import { BridgeAssets } from '../scene/BridgeAssets'
import { BlockIcon } from './BlockIcon'
import { EntryBrowser } from './EntryBrowser'
import { Glyph } from './Glyph'
import { Panel, SidebarPanel, Stepper, ViewIsland } from './Sidebar'
import { TiledCanvas } from './TiledCanvas'
@@ -63,14 +63,15 @@ export function PatternStudio({ client, view, packRevision, onSummary, tell }: P
return (
<>
<ViewIsland
title={entry === null ? view.label : `${view.label} · ${entry.name}`}
title={view.label}
subtitle={entry?.name}
tools={
<>
{entry !== null && entry.depths > 1 && (
<Stepper label={`Depth ${depth + 1} of ${entry.depths}`} backHint="Higher" onHint="Deeper" onBack={() => chooseDepth(depth - 1)} onOn={() => chooseDepth(depth + 1)} />
)}
<Button variant="ghost" size="icon-sm" className="size-7" title="Back to 0, 0" onClick={() => viewRef.current?.resetView()}>
<RotateCcw />
<Button variant="ghost" size="icon-sm" className="size-6" title="Back to 0, 0" onClick={() => viewRef.current?.resetView()}>
<Glyph glyph="reset" />
</Button>
</>
}
@@ -1,14 +1,11 @@
import { ChevronRight } from 'lucide-react'
import { useState } from 'react'
import { ScrollArea } from '@/components/ui/scroll-area'
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group'
import type { PickDisplay, PickInspection, PickSection } from '../bridge/types'
import { Glyph } from './Glyph'
import { hexColor } from './colors'
import { NoiseChart, percent } from './NoiseChart'
// The chosen display reads like the toolbar's switched-on toggles.
const DISPLAY_ITEM = 'h-7 text-[12px] data-[state=on]:bg-selection data-[state=on]:text-foreground'
/** How the map draws the picks, for a view that recolours its tiles. */
export interface PickDisplayChoice {
/** What the map shows when it draws the picks: "Regions" or "Biomes". */
@@ -45,13 +42,13 @@ export function PickInspector({ title, inspection, display }: PickInspectorProps
value={display.value}
onValueChange={(value) => value !== '' && display.onChange(value as PickDisplay)}
>
<ToggleGroupItem value="picks" className={DISPLAY_ITEM}>
<ToggleGroupItem value="picks">
{display.picksLabel}
</ToggleGroupItem>
<ToggleGroupItem value="noise" className={DISPLAY_ITEM}>
<ToggleGroupItem value="noise">
Noise
</ToggleGroupItem>
<ToggleGroupItem value="both" className={DISPLAY_ITEM}>
<ToggleGroupItem value="both">
Both
</ToggleGroupItem>
</ToggleGroup>
@@ -92,7 +89,7 @@ function RegionSection({ section, open, onToggle }: { section: PickSection; open
return (
<div className="border-b last:border-b-0">
<button className="-mx-1.5 flex w-[calc(100%+12px)] items-center gap-2 rounded-md px-1.5 py-2 text-left hover:bg-accent" onClick={onToggle}>
<ChevronRight className={`size-3.5 transition-transform ${open ? 'rotate-90' : ''}`} />
<Glyph glyph="chevronRight" className={`size-3.5 transition-transform ${open ? 'rotate-90' : ''}`} />
{region !== null && <span className="size-2.5 shrink-0 rounded-[3px]" style={{ backgroundColor: hexColor(region.color) }} />}
<span className="min-w-0 flex-1 truncate font-medium">{region?.name ?? 'Regions'}</span>
<span className="shrink-0 text-[11.5px] text-secondary-text tabular-nums">
@@ -1,10 +1,10 @@
import { useState } from 'react'
import { RotateCcw } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { ScrollArea } from '@/components/ui/scroll-area'
import { cn } from '@/lib/utils'
import type { ProfileField, ProfileFormState } from '../bridge/types'
import { Glyph } from './Glyph'
interface ProfileFormPanelProps {
state: ProfileFormState | null
@@ -56,7 +56,7 @@ function FieldEditor({ field, onChange }: { field: ProfileField; onChange(name:
<div className="flex min-w-0 flex-[6] items-center gap-1">
{field.kind === 'boolean' || field.kind === 'enum' ? <ChoiceInput field={field} onChange={onChange} /> : <NumberInput field={field} onChange={onChange} />}
<Button variant="ghost" size="icon-sm" title="Back to the pack's value" className={cn('size-6 shrink-0', !field.changed && 'invisible')} onClick={() => onChange(field.name, null)}>
<RotateCcw className="size-3.5" />
<Glyph glyph="reset" className="size-3.5" />
</Button>
</div>
</div>
@@ -1,4 +1,3 @@
import { RefreshCw } from 'lucide-react'
import { useEffect, useMemo, useRef, useState } from 'react'
import { Button } from '@/components/ui/button'
import { ScrollArea } from '@/components/ui/scroll-area'
@@ -15,6 +14,7 @@ import { SavedTerrain, type ReadSavedTile, type SavedTerrainColoring } from '../
import { savedTileSource, type SavedLayer } from '../scene/savedTileSource'
import { TerrainAtlas } from '../scene/terrainAtlas'
import { focusAround, type TerrainStyle } from '../scene/terrainStream'
import { Glyph } from './Glyph'
import { SceneViewport } from './SceneViewport'
import { Separator } from '@/components/ui/separator'
import { HEADER_CHOICE, SidebarPanel, ViewIsland } from './Sidebar'
@@ -91,7 +91,8 @@ export function SavedWorldStudio({ title, client, world, onSummary, onProgress,
return (
<>
<ViewIsland
title={chosen === null ? title : `${title} · ${chosen.name}`}
title={title}
subtitle={chosen?.name}
tools={
<>
<ToggleGroup type="single" size="sm" className="gap-0.5" value={coloring} onValueChange={(value) => value !== '' && setColoring(value as SavedTerrainColoring)}>
@@ -106,8 +107,8 @@ export function SavedWorldStudio({ title, client, world, onSummary, onProgress,
</ToggleGroupItem>
</ToggleGroup>
<Separator orientation="vertical" className="mx-1 h-4!" />
<Button variant="ghost" size="icon-sm" className="size-7" title="Read again" disabled={reading} onClick={() => setReadings((count) => count + 1)}>
<RefreshCw />
<Button variant="ghost" size="icon-sm" className="size-6" title="Read again" disabled={reading} onClick={() => setReadings((count) => count + 1)}>
<Glyph glyph="refresh" />
</Button>
</>
}
@@ -189,7 +189,8 @@ function SceneArea({ title, entry, variant, sizes, size, shown, status, onVarian
return (
<ViewIsland
className="flex-[11]"
title={entry === null ? title : `${title} · ${entry.name}`}
title={title}
subtitle={entry?.name}
tools={
<>
{sizes !== null && size !== null && <SizeChoice sizes={sizes} size={size} onSize={onSize} />}
+16 -18
View File
@@ -1,9 +1,9 @@
import { createContext, useContext } from 'react'
import { createPortal } from 'react-dom'
import { ChevronLeft, ChevronRight, type LucideIcon } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group'
import { cn } from '@/lib/utils'
import { Glyph } from './Glyph'
/** Where a view puts its own lists: under the views in the left island. */
export const SidebarSlot = createContext<HTMLElement | null>(null)
@@ -17,9 +17,9 @@ export function SidebarPanel({ className, children }: { className?: string; chil
return createPortal(<section className={cn('flex min-h-0 flex-col overflow-hidden', className)}>{children}</section>, slot)
}
/** One choice of a switch in an island's header: plain until chosen and outlined then, as IntelliJ's tabs are. */
/** One choice of a switch in an island's header: plain until chosen and filled then. */
export const HEADER_CHOICE =
'h-7 flex-none rounded-md! border border-transparent px-2.5 text-[12.5px] font-normal hover:bg-accent hover:text-foreground data-[state=on]:border-input data-[state=on]:bg-transparent data-[state=on]:text-foreground'
'h-6 flex-none rounded-md! border border-transparent px-2 text-[12px] font-normal hover:bg-accent hover:text-foreground data-[state=on]:bg-secondary data-[state=on]:text-foreground'
interface StepperProps {
/** Where the steps are now: "Variant 2 of 5". */
@@ -34,12 +34,12 @@ interface StepperProps {
export function Stepper({ label, backHint, onHint, onBack, onOn }: StepperProps): React.JSX.Element {
return (
<span className="flex items-center text-[12px] text-secondary-text tabular-nums">
<Button variant="ghost" size="icon-sm" className="size-7" title={backHint} onClick={onBack}>
<ChevronLeft />
<Button variant="ghost" size="icon-sm" className="size-6" title={backHint} onClick={onBack}>
<Glyph glyph="chevronLeft" />
</Button>
<span className="px-1">{label}</span>
<Button variant="ghost" size="icon-sm" className="size-7" title={onHint} onClick={onOn}>
<ChevronRight />
<Button variant="ghost" size="icon-sm" className="size-6" title={onHint} onClick={onOn}>
<Glyph glyph="chevronRight" />
</Button>
</span>
)
@@ -67,23 +67,21 @@ export function SizeChoice({ sizes, size, onSize }: SizeChoiceProps): React.JSX.
interface ViewIslandProps {
title: string
/** What the view shows now, such as the chosen entry, after the title in the muted colour. */
subtitle?: string
/** The view's own buttons, at the right of its header. */
tools?: React.ReactNode
className?: string
children: React.ReactNode
}
/** The shown view's icon in the stripe, which its island repeats beside its name so the two are learned together. */
export const ShownViewIcon = createContext<LucideIcon | null>(null)
/** The island a view draws in, under a header with the view's icon, its name and its tools, as an IntelliJ tool window has. */
export function ViewIsland({ title, tools, className, children }: ViewIslandProps): React.JSX.Element {
const ViewIcon = useContext(ShownViewIcon)
/** The island a view draws in, under a header with its name and its tools, as an IntelliJ tool window has. */
export function ViewIsland({ title, subtitle, tools, className, children }: ViewIslandProps): React.JSX.Element {
return (
<section className={cn('flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-lg bg-card', className)}>
<header className="flex h-9 shrink-0 items-center gap-1 pr-1.5 pl-3">
{ViewIcon !== null && <ViewIcon className="mr-1" />}
<h2 className="truncate text-[13px] font-semibold">{title}</h2>
<section className={cn('flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden rounded-[10px] bg-card', className)}>
<header className="flex h-10 shrink-0 items-center gap-1 pr-1.5 pl-3">
<h2 className="shrink-0 text-[13px] font-semibold">{title}</h2>
{subtitle !== undefined && <span className="ml-1 truncate text-[12px] text-secondary-text">{subtitle}</span>}
<span className="flex-1" />
{tools}
</header>
@@ -94,5 +92,5 @@ export function ViewIsland({ title, tools, className, children }: ViewIslandProp
/** A card in the shell: the panels sit apart on the window background instead of sharing borders. */
export function Panel({ className, children }: { className?: string; children: React.ReactNode }): React.JSX.Element {
return <aside className={cn('flex shrink-0 flex-col overflow-hidden rounded-lg bg-card', className)}>{children}</aside>
return <aside className={cn('flex shrink-0 flex-col overflow-hidden rounded-[10px] bg-card', className)}>{children}</aside>
}
+24 -18
View File
@@ -1,9 +1,8 @@
import { MemoryStick, Zap } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { cn } from '@/lib/utils'
import type { ServerUsage } from '../bridge/types'
import type { MapStatus } from '../map/MapController'
import { cpuIsHigh, formatCpu, formatHeap, heapIsHigh } from './serverUsage'
import { cpuIsHigh, formatCpu, formatHeap, heapIsHigh, heapShare } from './serverUsage'
interface StatusBarProps {
viewLabel: string
@@ -20,7 +19,7 @@ const NUMBER = new Intl.NumberFormat('en-US')
export function StatusBar({ viewLabel, status, notice, usage, progress }: StatusBarProps): React.JSX.Element {
const drawing = status !== null && status.tilesReady < status.tilesTotal
return (
<footer className="flex h-6 shrink-0 items-center gap-6 px-3 text-[11.5px] text-secondary-text tabular-nums">
<footer className="flex h-7 shrink-0 items-center gap-6 px-3 text-[12px] text-secondary-text tabular-nums">
<span className="truncate">
{viewLabel}
{status !== null && (
@@ -59,39 +58,46 @@ function ProgressBar({ fraction }: { fraction: number }): React.JSX.Element {
/** The server's CPU, 100% per busy thread, and Java heap; each turns warning-coloured at 80%. */
function UsageReadout({ usage }: { usage: ServerUsage }): React.JSX.Element {
return (
<span className="flex items-center gap-4">
<Reading
icon={<Zap className="size-3.5" />}
value={formatCpu(usage)}
high={cpuIsHigh(usage)}
hint={`Server CPU, 100% per busy thread, ${usage.threads} threads in all`}
/>
<Reading icon={<MemoryStick className="size-3.5" />} value={formatHeap(usage)} high={heapIsHigh(usage)} hint="Java memory the server uses, of its maximum" />
<span className="flex items-center gap-3">
<Reading high={cpuIsHigh(usage)} hint={`Server CPU, 100% per busy thread, ${usage.threads} threads in all`}>
CPU {formatCpu(usage)}
</Reading>
<Reading high={heapIsHigh(usage)} hint="Java memory the server uses, of its maximum">
<MemoryIndicator share={heapShare(usage)} high={heapIsHigh(usage)}>
{formatHeap(usage)}
</MemoryIndicator>
</Reading>
</span>
)
}
interface ReadingProps {
icon: React.ReactNode
value: string
high: boolean
hint: string
children: React.ReactNode
}
function Reading({ icon, value, high, hint }: ReadingProps): React.JSX.Element {
function Reading({ high, hint, children }: ReadingProps): React.JSX.Element {
return (
<Tooltip>
<TooltipTrigger asChild>
<span className={cn('flex items-center gap-1', high && 'text-warning')}>
{icon}
{value}
</span>
<span className={cn('flex items-center', high && 'text-warning')}>{children}</span>
</TooltipTrigger>
<TooltipContent>{hint}</TooltipContent>
</Tooltip>
)
}
/** IntelliJ's memory indicator: the reading over a bar filled as far as the heap is used. */
function MemoryIndicator({ share, high, children }: { share: number; high: boolean; children: React.ReactNode }): React.JSX.Element {
return (
<span className="relative flex h-5 items-center overflow-hidden rounded-sm px-2">
<span className={cn('absolute inset-y-0 left-0', high ? 'bg-warning/30' : 'bg-meter-used')} style={{ width: `${share * 100}%` }} />
<span className="relative">{children}</span>
</span>
)
}
function Gap(): React.JSX.Element {
return <span className="inline-block w-3" />
}
@@ -1,5 +1,5 @@
import type { ReactNode } from 'react'
import { Blocks, ChevronDown, CircleQuestionMark, Grid3x3, LocateFixed, Mountain, PawPrint, RefreshCw, ScanSearch, Settings, SquareDashed, SunMoon } from 'lucide-react'
import { Blocks, Mountain, PawPrint, SquareDashed, SunMoon } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { Kbd } from '@/components/ui/kbd'
import { Separator } from '@/components/ui/separator'
@@ -7,6 +7,7 @@ import { Toggle } from '@/components/ui/toggle'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import type { ThemeChoice } from '../../../shared/bridge'
import type { WorldInfo } from '../bridge/types'
import { Glyph } from './Glyph'
import type { StudioToggles } from './MapStudio'
import type { ShortcutAction } from './shortcuts'
import { useKeyText } from './useBindings'
@@ -24,31 +25,27 @@ const THEME_NAMES: Record<ThemeChoice, string> = { system: 'Theme: system', ligh
/** The window's bar: the world the studio is connected to, which leads back to the world list, and the studio's own buttons. */
export function StudioToolbar({ world, theme, onHelp, onSettings, onDisconnect }: StudioToolbarProps): React.JSX.Element {
return (
<header className="flex h-10 shrink-0 items-center gap-1 px-2">
<header className="flex h-10 shrink-0 items-center gap-1 px-1.5">
<IconHint hint="Back to the world list">
<Button variant="ghost" size="sm" className="h-7 max-w-[50%] gap-2 px-1.5 text-[13px] font-medium" onClick={onDisconnect}>
<Button variant="ghost" size="sm" className="h-[30px] max-w-[50%] gap-2 px-2 font-semibold" onClick={onDisconnect}>
<span className="flex size-5 shrink-0 items-center justify-center rounded-[5px] bg-primary text-[11px] font-semibold text-primary-foreground uppercase">
{world.world.charAt(0)}
</span>
<span className="truncate">{world.world}</span>
<span className="truncate font-normal text-secondary-text">{world.dimensionName}</span>
<ChevronDown className="size-3.5" />
<Glyph glyph="chevronDown" />
</Button>
</IconHint>
<div className="flex-1" />
<IconHint hint={THEME_NAMES[theme.choice]}>
<Button variant="ghost" size="icon-sm" onClick={theme.next}>
<SunMoon />
</Button>
</IconHint>
<ToolButton action="help" hint="Show every mouse and key shortcut" onClick={onHelp}>
<CircleQuestionMark />
</ToolButton>
<IconHint hint="Settings">
<Button variant="ghost" size="icon-sm" onClick={onSettings}>
<Settings />
</Button>
</IconHint>
<MainToolbarButton hint={THEME_NAMES[theme.choice]} onClick={theme.next}>
<SunMoon className="size-5" />
</MainToolbarButton>
<MainToolbarButton action="help" hint="Show every mouse and key shortcut" onClick={onHelp}>
<Glyph glyph="help" large />
</MainToolbarButton>
<MainToolbarButton hint="Settings" onClick={onSettings}>
<Glyph glyph="settings" large />
</MainToolbarButton>
</header>
)
}
@@ -66,7 +63,7 @@ export function MapTools({ toggles, hasPlayers, onToggle, onRefresh, onResetZoom
return (
<>
<ToolToggle action="grid" hint="Show chunk and region borders" pressed={toggles.grid} onPressed={() => onToggle('grid')}>
<Grid3x3 />
<Glyph glyph="grid" />
</ToolToggle>
<ToolToggle action="borders" hint="Outline the regions on every view" pressed={toggles.regionBorders} onPressed={() => onToggle('regionBorders')}>
<SquareDashed />
@@ -82,14 +79,14 @@ export function MapTools({ toggles, hasPlayers, onToggle, onRefresh, onResetZoom
<PawPrint />
</ToolToggle>
<ToolToggle action="follow" hint="Keep your player in the middle" pressed={toggles.follow} disabled={!hasPlayers} onPressed={() => onToggle('follow')}>
<LocateFixed />
<Glyph glyph="locate" />
</ToolToggle>
<Separator orientation="vertical" className="mx-1 h-4!" />
<ToolButton action="resetZoom" hint="Go back to the default zoom" onClick={onResetZoom}>
<ScanSearch />
<Glyph glyph="actualZoom" />
</ToolButton>
<ToolButton action="refresh" hint="Redraw the map with the latest pack files" onClick={onRefresh}>
<RefreshCw />
<Glyph glyph="refresh" />
</ToolButton>
</>
)
@@ -107,11 +104,24 @@ function IconHint({ hint, keyText, children }: { hint: string; keyText?: string;
)
}
/** A button in the window's main toolbar, at IntelliJ's 30 px for its 20 px icons. */
function MainToolbarButton({ action, hint, onClick, children }: { action?: ShortcutAction; hint: string; onClick(): void; children: ReactNode }): React.JSX.Element {
const keyText = useKeyText()
return (
<IconHint hint={hint} keyText={action === undefined ? undefined : keyText(action)}>
<Button variant="ghost" size="icon-sm" className="size-[30px]" onClick={onClick}>
{children}
</Button>
</IconHint>
)
}
/** A button in an island's header, at the size of IntelliJ's tool window header actions. */
function ToolButton({ action, hint, onClick, children }: { action: ShortcutAction; hint: string; onClick(): void; children: ReactNode }): React.JSX.Element {
const keyText = useKeyText()
return (
<IconHint hint={hint} keyText={keyText(action)}>
<Button variant="ghost" size="icon-sm" className="size-7" onClick={onClick}>
<Button variant="ghost" size="icon-sm" className="size-6" onClick={onClick}>
{children}
</Button>
</IconHint>
@@ -137,7 +147,7 @@ function ToolToggle({ action, hint, pressed, disabled, onPressed, children }: To
pressed={pressed}
disabled={disabled}
onPressedChange={onPressed}
className="size-7 min-w-7 p-0 hover:bg-accent hover:text-foreground data-[state=on]:bg-selection data-[state=on]:text-foreground"
className="size-6 min-w-6 p-0 hover:bg-accent hover:text-foreground data-[state=on]:bg-selection data-[state=on]:text-foreground"
>
{children}
</Toggle>
@@ -68,7 +68,7 @@ export function SuggestionInput({ value, onValue, isList, load, onKeyDown, onFoc
}}
/>
{offered.length > 0 && (
<ul className="absolute top-full right-0 left-0 z-30 mt-0.5 overflow-hidden rounded-md border bg-popover py-0.5 text-popover-foreground shadow-md">
<ul className="absolute top-full right-0 left-0 z-30 mt-0.5 overflow-hidden popup py-0.5">
{offered.map((choice, index) => (
<li key={choice}>
<button
+12 -12
View File
@@ -5,7 +5,6 @@ import {
Box,
Boxes,
Droplets,
Ellipsis,
Fish,
Flower2,
Gem,
@@ -32,6 +31,7 @@ import { Kbd } from '@/components/ui/kbd'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { cn } from '@/lib/utils'
import type { ViewInfo } from '../bridge/types'
import { Glyph } from './Glyph'
import { viewShortcutId } from './shortcuts'
import { useKeyText } from './useBindings'
@@ -62,10 +62,10 @@ const VIEW_ICONS: Record<string, LucideIcon> = {
}
const FALLBACK_ICON: LucideIcon = Shapes
/** Inset, because the stripe scrolls and so clips anything drawn outside its buttons. */
const STRIPE_BUTTON = 'flex size-8 shrink-0 items-center justify-center rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-inset'
const STRIPE_BUTTON = 'flex size-[30px] shrink-0 items-center justify-center rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset'
/** The icon a view has in the stripe, which its island's header repeats beside its name. */
export function viewIcon(viewId: string): LucideIcon {
/** The icon a view has in the stripe and in the list of every view. */
function viewIcon(viewId: string): LucideIcon {
return VIEW_ICONS[viewId] ?? FALLBACK_ICON
}
@@ -91,7 +91,7 @@ export function ViewList({ views, current, onSelect, slotRef }: ViewListProps):
const groups = groupsOf(views)
return (
<>
<nav className="flex w-8 shrink-0 flex-col items-center gap-1.5 overflow-y-auto">
<nav className="flex w-10 shrink-0 flex-col items-center gap-2 overflow-y-auto pb-1.5">
{groups.map((group, index) => (
<Fragment key={group.label}>
{index > 0 && <StripeLine />}
@@ -103,7 +103,7 @@ export function ViewList({ views, current, onSelect, slotRef }: ViewListProps):
<StripeLine />
<NamedViews groups={groups} current={current} onSelect={onSelect} />
</nav>
<div ref={slotRef} className="flex w-60 shrink-0 flex-col overflow-hidden rounded-lg bg-card empty:hidden" />
<div ref={slotRef} className="flex w-60 shrink-0 flex-col overflow-hidden rounded-[10px] bg-card empty:hidden" />
</>
)
}
@@ -119,7 +119,7 @@ function groupsOf(views: ViewInfo[]): ViewGroup[] {
}
function StripeLine(): React.JSX.Element {
return <span className="my-0.5 h-px w-5 shrink-0 bg-input" />
return <span className="h-px w-5 shrink-0 bg-input" />
}
function ViewButton({ view, selected, onSelect }: { view: ViewInfo; selected: boolean; onSelect(): void }): React.JSX.Element {
@@ -131,9 +131,9 @@ function ViewButton({ view, selected, onSelect }: { view: ViewInfo; selected: bo
onClick={onSelect}
aria-label={view.label}
aria-pressed={selected}
className={cn(STRIPE_BUTTON, selected ? 'bg-primary text-primary-foreground' : 'hover:bg-selection')}
className={cn(STRIPE_BUTTON, selected ? 'icon-tint bg-primary text-primary-foreground' : 'hover:bg-accent')}
>
<ViewIcon viewId={view.id} className="size-[18px]" />
<ViewIcon viewId={view.id} className="size-5" />
</button>
</TooltipTrigger>
<TooltipContent side="right" className="flex max-w-64 flex-col items-start gap-0.5">
@@ -153,12 +153,12 @@ function NamedViews({ groups, current, onSelect }: { groups: ViewGroup[]; curren
return (
<DropdownMenu.Root>
<DropdownMenu.Trigger asChild>
<button aria-label="All views" title="All views" className={cn(STRIPE_BUTTON, 'text-secondary-text hover:bg-selection data-[state=open]:bg-selection')}>
<Ellipsis />
<button aria-label="All views" title="All views" className={cn(STRIPE_BUTTON, 'hover:bg-accent data-[state=open]:bg-accent')}>
<Glyph glyph="more" />
</button>
</DropdownMenu.Trigger>
<DropdownMenu.Portal>
<DropdownMenu.Content side="right" align="end" sideOffset={8} className="z-50 w-56 rounded-lg border border-overlay-border bg-popover p-1 text-popover-foreground shadow-lg">
<DropdownMenu.Content side="right" align="end" sideOffset={8} className="popup z-50 w-56 p-1">
{groups.map((group) => (
<DropdownMenu.Group key={group.label}>
<DropdownMenu.Label className="px-2 pt-1.5 pb-1 text-[11px] font-semibold text-muted-foreground">{group.label}</DropdownMenu.Label>
@@ -12,6 +12,11 @@ export function formatHeap(usage: ServerUsage): string {
return `${gigabytes(usage.heapUsedBytes)} / ${gigabytes(usage.heapMaxBytes)} GB`
}
/** How much of its heap the server uses, 0 to 1. */
export function heapShare(usage: ServerUsage): number {
return usage.heapMaxBytes <= 0 ? 0 : Math.min(1, usage.heapUsedBytes / usage.heapMaxBytes)
}
/** Whether four fifths of the CPU's threads are busy. */
export function cpuIsHigh(usage: ServerUsage): boolean {
return usage.cpuPercent !== null && usage.cpuPercent >= usage.threads * PERCENT_PER_THREAD * HIGH_USAGE
+84 -52
View File
@@ -2,62 +2,72 @@
@custom-variant dark (&:is(.dark *));
/* The studio's colours, taken from the Swing studio (StudioTheme) so both look alike. */
/*
* IntelliJ's Islands Light and Islands Dark themes (ManyIslandsLight and ManyIslandsDark.theme.json): the frame, toolbar,
* stripe and status bar share the main window colour, and the views and tool windows are islands on it.
*/
:root {
--background: #dfe2e8;
--background: #e9eaee;
--foreground: #000000;
--card: #f7f8fa;
--card: #ffffff;
--card-foreground: #000000;
--popover: #ffffff;
--popover-foreground: #000000;
--primary: #3574f0;
--primary: #3871e1;
--primary-foreground: #ffffff;
--secondary: #dfe1e5;
--secondary: #dddfe4;
--secondary-foreground: #000000;
--muted: #f7f8fa;
--muted-foreground: #818594;
--secondary-text: #6c707e;
--accent: #dfe1e5;
--muted: #f7f8f9;
--muted-foreground: #73767c;
--secondary-text: #5f6269;
--accent: rgb(0 0 0 / 0.07);
--accent-foreground: #000000;
--selection: #d3d5db;
--destructive: #db3b4b;
--warning: #c27d04;
--success: #208a3c;
--link: #315fbd;
--border: #ebecf0;
--selection: #d0dffe;
--destructive: #c54e58;
--warning: #a56906;
--success: #338555;
--link: #2f5eb9;
--border: #dddfe4;
--input: #c9ccd6;
--ring: #3574f0;
--overlay-border: #dfe1e5;
--map-background: #eceef2;
--radius: 10px;
--ring: #3871e1;
--overlay-border: #dddfe4;
--map-background: #ffffff;
--icon: #6c707e;
/* MemoryIndicator.usedBackground in expUI_light.theme.json */
--meter-used: #b7cefa75;
--popup-shadow: 0 6px 20px rgb(0 0 0 / 0.15);
}
.dark {
--background: #1e1f22;
--foreground: #dfe1e5;
--card: #2b2d30;
--card-foreground: #dfe1e5;
--popover: #2b2d30;
--popover-foreground: #dfe1e5;
--primary: #3574f0;
--background: #26282c;
--foreground: #d1d3d9;
--card: #191a1c;
--card-foreground: #d1d3d9;
--popover: #26282c;
--popover-foreground: #d1d3d9;
--primary: #3871e1;
--primary-foreground: #ffffff;
--secondary: #393b40;
--secondary-foreground: #dfe1e5;
--muted: #2b2d30;
--muted-foreground: #868a91;
--secondary-text: #9da0a8;
--accent: #393b40;
--accent-foreground: #dfe1e5;
--selection: #43454a;
--destructive: #f75464;
--warning: #f2c55c;
--success: #5fb865;
--link: #548af7;
--border: #393b40;
--input: #4e5157;
--ring: #3574f0;
--overlay-border: #43454a;
--map-background: #25272a;
--secondary: rgb(255 255 255 / 0.16);
--secondary-foreground: #d1d3d9;
--muted: #212326;
--muted-foreground: #8b8e94;
--secondary-text: #9fa2a8;
--accent: rgb(255 255 255 / 0.09);
--accent-foreground: #d1d3d9;
--selection: #2a4371;
--destructive: #f57e84;
--warning: #d59637;
--success: #6db083;
--link: #71a1fe;
--border: #33353b;
--input: #40434a;
--ring: #3871e1;
--overlay-border: #33353b;
--map-background: #191a1c;
--icon: #ced0d6;
/* MemoryIndicator.usedBackground in expUI_dark.theme.json */
--meter-used: #35538f80;
--popup-shadow: 0 6px 20px rgb(0 0 0 / 0.45);
}
@theme inline {
@@ -86,10 +96,12 @@
--color-ring: var(--ring);
--color-overlay-border: var(--overlay-border);
--color-map-background: var(--map-background);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-icon: var(--icon);
--color-meter-used: var(--meter-used);
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 10px;
--radius-xl: 12px;
--font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, monospace;
}
@@ -110,9 +122,29 @@
}
}
/* The window around the islands: its colour, tinted with the accent from the top left corner as IntelliJ's islands theme does. */
.window-frame {
background:
radial-gradient(ellipse 55% 45% at 0% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent),
var(--background);
/* Floats above everything else: menus, popovers, tooltips and cards that follow the cursor. */
@utility popup {
border-radius: 8px;
border: 1px solid var(--overlay-border);
background-color: var(--popover);
color: var(--popover-foreground);
box-shadow: var(--popup-shadow);
}
/* Keyboard focus and a field being typed in: a crisp accent edge, as IntelliJ draws it, instead of a soft glow. */
@utility focused {
border-color: var(--ring);
box-shadow: 0 0 0 1px var(--ring);
}
/* IntelliJ draws its icons a shade off the text colour; a context that colours its icons sets this to currentColor. */
@utility icon-tint {
--icon-tint: currentColor;
}
@layer base {
.lucide,
.glyph {
color: var(--icon-tint, var(--icon));
}
}