@signal9/era-ui 1.23.1 → 1.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/os/window.svelte +6 -3
- package/package.json +1 -1
package/dist/os/window.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as Pane from '../ui/pane';
|
|
3
3
|
import { Button } from '../ui/button';
|
|
4
4
|
import Minus from '@lucide/svelte/icons/minus';
|
|
5
|
-
import
|
|
5
|
+
import Maximize from '@lucide/svelte/icons/maximize';
|
|
6
6
|
import X from '@lucide/svelte/icons/x';
|
|
7
7
|
import type { Plugin } from '@neodrag/svelte';
|
|
8
8
|
import { cn } from '../utils/index.js';
|
|
@@ -84,10 +84,13 @@
|
|
|
84
84
|
drag, so a clean click still closes, and right/middle arming is a
|
|
85
85
|
different button entirely. -->
|
|
86
86
|
<div class="ml-auto shrink-0">
|
|
87
|
+
<!-- Red is the CLOSE warning — while a non-primary press previews
|
|
88
|
+
minimize / maximize, the button drops to the neutral tone so the
|
|
89
|
+
glyph swap and the colour agree the release won't destroy anything. -->
|
|
87
90
|
<Button
|
|
88
91
|
icon
|
|
89
92
|
size="icon"
|
|
90
|
-
tone=
|
|
93
|
+
tone={armed ? 'default' : 'destructive'}
|
|
91
94
|
aria-label="Close (right-click minimizes, middle-click maximizes)"
|
|
92
95
|
onclick={() => wm.close(win.id)}
|
|
93
96
|
oncontextmenu={(e: MouseEvent) => e.preventDefault()}
|
|
@@ -108,7 +111,7 @@
|
|
|
108
111
|
{#if armed === 'minimize'}
|
|
109
112
|
<Minus class="size-(--era-h-xs)" />
|
|
110
113
|
{:else if armed === 'maximize'}
|
|
111
|
-
<
|
|
114
|
+
<Maximize class="size-(--era-h-xs)" />
|
|
112
115
|
{:else}
|
|
113
116
|
<X class="size-(--era-h-xs)" />
|
|
114
117
|
{/if}
|