Skip to content

Commit e8f373f

Browse files
author
Florian Engel
committed
Merge branch 'main' into release
2 parents 3712ac9 + ac83060 commit e8f373f

10 files changed

Lines changed: 515 additions & 5 deletions

‎CONTRIBUTING.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ A complete file, `src/content/os/haiku.json`:
9393
| `name` | yes | display name, non-empty |
9494
| `year` | yes | integer release year |
9595
| `added` | yes | `YYYY-MM-DD` — the day you write the file, not the day the PR merges. Never bump it later; it drives the "newest" sort. |
96-
| `family` | yes | groups the platform. Reuse an existing value unless genuinely new — the full set in use today is `Amiga`, `BeOS`, `BleskOS`, `Commodore`, `Desktop Env.`, `GEM`, `Mac OS`, `Plan 9`, `ReactOS`, `SerenityOS`, `Solaris`, `Windows`. |
96+
| `family` | yes | groups the platform. Reuse an existing value unless genuinely new — the full set in use today is `Amiga`, `BeOS`, `BleskOS`, `Commodore`, `Desktop Env.`, `GEM`, `Mac OS`, `OS/2`, `Plan 9`, `ReactOS`, `SerenityOS`, `Solaris`, `Windows`. |
9797
| `colors` | yes | at least one entry; **at most one** may be `"default": true` |
9898
| `slug` | no | defaults to the filename; lowercase letters, digits, hyphens |
9999
| `predecessor`, `successor` | no | slug refs to other entries. A dangling ref fails the build. |
@@ -344,7 +344,7 @@ Which chrome a preview draws is chosen by the platform's `desktopStyle`. That fi
344344
affects **only the on-screen preview** — the downloadable wallpaper is always a plain
345345
solid-color PNG and never reads the style.
346346

347-
Fourteen styles exist. Check for a fit here before building anything:
347+
Eighteen styles exist. Check for a fit here before building anything:
348348

349349
| `desktopStyle` | chrome | modeled on |
350350
|----------------|--------|------------|
@@ -362,6 +362,10 @@ Fourteen styles exist. Check for a fit here before building anything:
362362
| `c64` | screen border frame + BASIC boot banner + `READY.` prompt | Commodore 64 (BASIC-prompt home computers) |
363363
| `openlook` | Waste icon + two overlapping OPEN LOOK windows (no panel at all) | OpenWindows / `olwm` (SunOS, early Solaris) |
364364
| `plan9` | two side-by-side rio windows (no panel, no dock, no icons) | Plan 9 (rio) |
365+
| `pm` | Start Programs window (centered title, arrow gadgets, `F1=Help` menu bar) + minimized-program icons on the bottom edge (no desk icons, no panel) | OS/2 1.x (Presentation Manager) |
366+
| `os2` | icon column + Shredder + two overlapping Workplace Shell windows (no panel at all) | OS/2 2.x (Workplace Shell) |
367+
| `warp` | icon column + Shredder + one Workplace Shell window + LaunchPad | OS/2 Warp 3 |
368+
| `warp4` | WarpCenter top bar + icon column + Shredder + LaunchPad (no window) | OS/2 Warp 4 |
365369
| `generic` | icons + dock | minimal / unknown shells |
366370

367371
### Reuse an existing style
@@ -382,7 +386,7 @@ Say the new style is `nextstep`. Three edits.
382386
declared:
383387

384388
```ts
385-
export const DESKTOP_STYLES = ["modern", "win9x", "win31", "platinum", "beos", "amiga", "kde", "cde", "gem", "bleskos", "blackbox", "c64", "openlook", "generic", "nextstep"] as const;
389+
export const DESKTOP_STYLES = ["modern", "win9x", "win31", "platinum", "beos", "amiga", "kde", "cde", "gem", "bleskos", "blackbox", "c64", "openlook", "plan9", "os2", "generic", "nextstep"] as const;
386390
```
387391

388392
**2. Add the spec** to `CHROME_SPECS` in `src/lib/chromeSpec.ts`:
@@ -428,11 +432,16 @@ A spec is an ordered array of these parts, drawn in order:
428432
| `gemWindow` | `left`, `top`, `w`, `body` | a GEM window |
429433
| `openLookWindow` | `left`, `top`, `w`, `body` | an OPEN LOOK window (menu gadget + menu-button row) |
430434
| `rioWindow` | `left`, `top`, `w`, `body` | a Plan 9 rio window (tag line instead of a title bar, left-hand scroll bar, square corners) |
435+
| `pmWindow` | `left`, `top`, `w`, `body` | an OS/2 Presentation Manager 1.x window (system-menu box left, centered title, minimize/maximize arrow gadgets right, a menu bar ending in `F1=Help`) |
436+
| `os2Window` | `left`, `top`, `w`, `body` | an OS/2 Workplace Shell window (system-menu icon left, left-aligned title, hide/maximize gadgets right, square corners) |
431437
| `taskbar` | — | Win9x bottom taskbar |
432438
| `menuBar` | — | Mac Platinum / GEM top menu bar |
433439
| `topBar` | — | Amiga Workbench top bar |
434440
| `dock` | — | KDE / generic bottom dock |
435441
| `frontPanel` | — | CDE front panel |
442+
| `launchPad` | — | OS/2 Warp LaunchPad: a floating bar of four named buttons + four drawer buttons |
443+
| `warpCenter` | — | OS/2 Warp 4 WarpCenter: a top-edge bar of small buttons + a drive-space gauge + a clock |
444+
| `minIcons` | — | PM 1.x minimized-program icons: framed icons parked along the bottom edge of the screen |
436445
| `beosTab` | — | BeOS deskbar tab (top-right) |
437446
| `bleskos` | — | BleskOS full-screen program switcher |
438447
| `rootMenu` | — | Blackbox titled root menu + cascading submenu, floating mid-screen |

‎docs/adding-a-preview-style.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,16 @@ src/lib/catalog.ts ──▶ view props ──▶ <DesktopPreview hex onColor st
6969
| `gemWindow` | `left`, `top`, `w`, `body` | a GEM window (one gadget square left + centered title + one sizer square right) |
7070
| `openLookWindow` | `left`, `top`, `w`, `body` | an OPEN LOOK window (window-menu gadget left + centered title + a row of oblong menu buttons) |
7171
| `rioWindow` | `left`, `top`, `w`, `body` | a Plan 9 rio window (no title bar at all — a tag line of command words on top, scroll bar down the **left** edge, square corners) |
72+
| `pmWindow` | `left`, `top`, `w`, `body` | an OS/2 Presentation Manager 1.x window (system-menu box left + **centered** title + minimize/maximize **arrow** gadgets right + a menu bar ending in `F1=Help`) |
73+
| `os2Window` | `left`, `top`, `w`, `body` | an OS/2 Workplace Shell window (system-menu icon left + **left-aligned** title + hide/maximize gadgets right, square corners) |
7274
| `taskbar` | — | Win9x bottom taskbar |
7375
| `menuBar` | — | Mac Platinum / GEM top menu bar |
7476
| `topBar` | — | Amiga Workbench top bar |
7577
| `dock` | — | KDE / generic bottom dock |
7678
| `frontPanel` | — | CDE front panel |
79+
| `launchPad` | — | OS/2 Warp LaunchPad: a floating bar of four named buttons + four drawer buttons |
80+
| `warpCenter` | — | OS/2 Warp 4 WarpCenter: a top-edge bar of small buttons + a drive-space gauge + a clock |
81+
| `minIcons` | — | PM 1.x minimized-program icons: framed icons parked along the bottom edge of the screen |
7782
| `beosTab` | — | BeOS deskbar tab (top-right) |
7883
| `bleskos` | — | BleskOS full-screen, windowless program switcher (fills the preview) |
7984
| `rootMenu` | — | Blackbox titled root menu + cascading submenu, floating mid-screen |
@@ -105,6 +110,10 @@ src/lib/catalog.ts ──▶ view props ──▶ <DesktopPreview hex onColor st
105110
| `c64` | screen border frame + BASIC boot banner + `READY.` prompt (no shell at all) | Commodore 64 (BASIC-prompt home computers) |
106111
| `openlook` | Waste icon + two overlapping OPEN LOOK windows (no panel at all) | OpenWindows / `olwm` (SunOS, early Solaris) |
107112
| `plan9` | two side-by-side rio windows (no panel, no dock, no icons) | Plan 9 (rio) |
113+
| `pm` | Start Programs window (centered title, arrow gadgets, `F1=Help` menu bar) + minimized-program icons on the bottom edge (no desk icons, no panel) | OS/2 1.x (Presentation Manager) |
114+
| `os2` | icon column + Shredder + two overlapping Workplace Shell windows (no panel at all) | OS/2 2.x (Workplace Shell) |
115+
| `warp` | icon column + Shredder + one Workplace Shell window + LaunchPad | OS/2 Warp 3 |
116+
| `warp4` | WarpCenter top bar + icon column + Shredder + LaunchPad (no window) | OS/2 Warp 4 |
108117
| `generic` | icons + dock | minimal / unknown shells |
109118

110119
`modern` is the schema default (`desktopStyle` is optional) and the safety fallback: it
@@ -131,7 +140,7 @@ Add it to `DESKTOP_STYLES` in **`src/lib/desktopStyle.ts`** — the only place t
131140
declared:
132141

133142
```ts
134-
export const DESKTOP_STYLES = ["modern","win9x","win31","platinum","beos","amiga","kde","cde","gem","bleskos","blackbox","c64","openlook","generic","nextstep"] as const;
143+
export const DESKTOP_STYLES = ["modern","win9x","win31","platinum","beos","amiga","kde","cde","gem","bleskos","blackbox","c64","openlook","plan9","os2","generic","nextstep"] as const;
135144
```
136145

137146
### 2. Add its chrome spec

‎src/content/os/os2-1-1.json‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "OS/2 1.1",
3+
"year": 1988,
4+
"added": "2026-09-19",
5+
"family": "OS/2",
6+
"successor": "os2-2-0",
7+
"desktopStyle": "pm",
8+
"source": {
9+
"text": "Sampled with a color picker from an OS/2 1.1 desktop running under the [Virtual OS Museum].",
10+
"links": {
11+
"Virtual OS Museum": "https://virtualosmuseum.org/"
12+
}
13+
},
14+
"colors": [
15+
{
16+
"hex": "#e2e2de",
17+
"name": "Alabaster",
18+
"default": true
19+
}
20+
],
21+
"type": "Proprietary",
22+
"wikipedia": "https://en.wikipedia.org/wiki/OS/2",
23+
"description": "OS/2 1.1 was the first version to come with a desktop GUI (\"Presentation Manager\")."
24+
}

‎src/content/os/os2-2-0.json‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "OS/2 2.x",
3+
"year": 1992,
4+
"added": "2026-09-19",
5+
"family": "OS/2",
6+
"predecessor": "os2-1-1",
7+
"successor": "os2-warp-3",
8+
"desktopStyle": "os2",
9+
"source": {
10+
"text": "The RGB values were read from the desktop color settings of an OS/2 2.0 installation running under the [Virtual OS Museum].",
11+
"links": {
12+
"Virtual OS Museum": "https://virtualosmuseum.org/"
13+
}
14+
},
15+
"colors": [
16+
{
17+
"hex": "#cccccc",
18+
"name": "Pale Gray",
19+
"default": true
20+
},
21+
{
22+
"hex": "#ffffff",
23+
"name": "White"
24+
}
25+
],
26+
"type": "Proprietary",
27+
"wikipedia": "https://en.wikipedia.org/wiki/OS/2",
28+
"description": "OS/2 2.x had a couple of color schemes included, but pretty much all of them had the same gray background. The only exception is the Monochrome scheme, which had a plain white background."
29+
}

‎src/content/os/os2-warp-3.json‎

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"name": "OS/2 Warp 3",
3+
"year": 1994,
4+
"added": "2026-09-19",
5+
"family": "OS/2",
6+
"predecessor": "os2-2-0",
7+
"successor": "os2-warp-4",
8+
"desktopStyle": "warp",
9+
"source": {
10+
"text": "The RGB values were read from the desktop color settings of an OS/2 Warp 3 installation running under the [Virtual OS Museum].",
11+
"links": {
12+
"Virtual OS Museum": "https://virtualosmuseum.org/"
13+
}
14+
},
15+
"colors": [
16+
{
17+
"hex": "#008080",
18+
"name": "Teal",
19+
"note": "Used in the Default and Swirls schemes.",
20+
"default": true
21+
},
22+
{
23+
"hex": "#004080",
24+
"name": "Navy Blue",
25+
"note": "Used in the Blue Jeans scheme."
26+
},
27+
{
28+
"hex": "#0080ff",
29+
"name": "Azure",
30+
"note": "Used in the Summer Days scheme."
31+
},
32+
{
33+
"hex": "#4242bf",
34+
"name": "Ultramarine",
35+
"note": "Used in the Night Music and Ocean schemes."
36+
},
37+
{
38+
"hex": "#404080",
39+
"name": "Indigo",
40+
"note": "Used in the Marble scheme."
41+
},
42+
{
43+
"hex": "#8080ff",
44+
"name": "Periwinkle",
45+
"note": "Used in the Lilac scheme."
46+
},
47+
{
48+
"hex": "#80ffff",
49+
"name": "Light Cyan",
50+
"note": "Used in the Cool Water scheme."
51+
},
52+
{
53+
"hex": "#7fffff",
54+
"name": "Ice Blue",
55+
"note": "Used in the Spring Glen scheme."
56+
},
57+
{
58+
"hex": "#80ffbf",
59+
"name": "Mint",
60+
"note": "Used in the Mint Twist scheme."
61+
},
62+
{
63+
"hex": "#008040",
64+
"name": "Emerald Green",
65+
"note": "Used in the Clovers scheme."
66+
},
67+
{
68+
"hex": "#808040",
69+
"name": "Olive",
70+
"note": "Used in the Khaki scheme."
71+
},
72+
{
73+
"hex": "#ffffbf",
74+
"name": "Pale Yellow",
75+
"note": "Used in the Sunflower scheme."
76+
},
77+
{
78+
"hex": "#ff8080",
79+
"name": "Light Red",
80+
"note": "Used in the Southwest scheme."
81+
},
82+
{
83+
"hex": "#c14240",
84+
"name": "Brick Red",
85+
"note": "Used in the Desktop scheme."
86+
},
87+
{
88+
"hex": "#bf4280",
89+
"name": "Raspberry",
90+
"note": "Used in the Blush scheme."
91+
},
92+
{
93+
"hex": "#804080",
94+
"name": "Plum",
95+
"note": "Used in the Blueberry scheme."
96+
},
97+
{
98+
"hex": "#cccccc",
99+
"name": "Pale Gray",
100+
"note": "Used in the Emboss, OS/2 2.1 and Windows schemes."
101+
},
102+
{
103+
"hex": "#7f7f7f",
104+
"name": "Mid Gray",
105+
"note": "Used in the Wall Street scheme."
106+
},
107+
{
108+
"hex": "#ffffff",
109+
"name": "White",
110+
"note": "Used in the Laptop LCD and Monochrome schemes."
111+
}
112+
],
113+
"type": "Proprietary",
114+
"wikipedia": "https://en.wikipedia.org/wiki/OS/2",
115+
"description": "I remember when I saw OS/2 for the first time on my grandfather's computer. He and my uncle told me, it's the better alternative to Windows. All included schemes had their own background color. Some of them showed a bitmap-mosaic by default, but they still had a solid color as fallback."
116+
}

‎src/content/os/os2-warp-4.json‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"name": "OS/2 Warp 4",
3+
"year": 1996,
4+
"added": "2026-09-19",
5+
"family": "OS/2",
6+
"predecessor": "os2-warp-3",
7+
"desktopStyle": "warp4",
8+
"source": {
9+
"text": "The RGB values were read from the desktop color settings of an OS/2 Warp 4 installation running under the [Virtual OS Museum].",
10+
"links": {
11+
"Virtual OS Museum": "https://virtualosmuseum.org/"
12+
}
13+
},
14+
"colors": [
15+
{
16+
"hex": "#2b00aa",
17+
"name": "Violet Blue",
18+
"note": "Used in the OS/2 Warp 4 scheme.",
19+
"default": true
20+
},
21+
{
22+
"hex": "#00bfbf",
23+
"name": "Turquoise",
24+
"note": "Used in the OS/2 Warp 3.0 scheme."
25+
},
26+
{
27+
"hex": "#804080",
28+
"name": "Plum",
29+
"note": "Used in the Blueberry scheme."
30+
},
31+
{
32+
"hex": "#008040",
33+
"name": "Emerald Green",
34+
"note": "Used in the Nature scheme."
35+
},
36+
{
37+
"hex": "#000000",
38+
"name": "Black",
39+
"note": "Used in the Space scheme."
40+
},
41+
{
42+
"hex": "#80ffff",
43+
"name": "Light Cyan",
44+
"note": "Used in the Ocean scheme."
45+
},
46+
{
47+
"hex": "#3197ff",
48+
"name": "Sky Blue",
49+
"note": "Used in the Warped scheme."
50+
},
51+
{
52+
"hex": "#bf4280",
53+
"name": "Raspberry",
54+
"note": "Used in the Blush scheme."
55+
},
56+
{
57+
"hex": "#8080ff",
58+
"name": "Periwinkle",
59+
"note": "Used in the Lilac scheme."
60+
},
61+
{
62+
"hex": "#7f7fff",
63+
"name": "Cornflower",
64+
"note": "Used in the Mauve scheme."
65+
},
66+
{
67+
"hex": "#7f7f7f",
68+
"name": "Mid Gray",
69+
"note": "Used in the Wall Street scheme."
70+
},
71+
{
72+
"hex": "#ffffff",
73+
"name": "White",
74+
"note": "Used in the Laptop LCD and Monochrome schemes."
75+
}
76+
],
77+
"type": "Proprietary",
78+
"wikipedia": "https://en.wikipedia.org/wiki/OS/2",
79+
"description": "In OS/2 4, most of the color schemes had wallpapers or bitmap-mosaics as backgrounds by default. These are the solid color fallbacks."
80+
}

‎src/islands/DesktopPreview.test.tsx‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,46 @@ describe("DesktopPreview", () => {
4848
expect(chromeFor("openlook")).toEqual(["chrome-deskicons", "chrome-openlookwindow", "chrome-openlookwindow"]);
4949
// Two rio windows and nothing else: rio draws no panel, dock or desk icons.
5050
expect(chromeFor("plan9")).toEqual(["chrome-riowindow", "chrome-riowindow"]);
51+
// Presentation Manager 1.x: the Start Programs window plus the minimized
52+
// programs parked along the bottom edge — no desktop objects, no panel.
53+
expect(chromeFor("pm")).toEqual(["chrome-pmwindow", "chrome-minicons"]);
54+
// The Workplace Shell had no taskbar, dock or panel of any kind: icons on
55+
// the root plus folder windows are the entire shell.
56+
expect(chromeFor("os2")).toEqual(["chrome-deskicons", "chrome-deskicons", "chrome-os2window", "chrome-os2window"]);
57+
// Warp keeps the Workplace Shell but adds the LaunchPad, which is why it is
58+
// a style of its own; one folder window, since the LaunchPad takes the
59+
// bottom of the frame.
60+
expect(chromeFor("warp")).toEqual(["chrome-deskicons", "chrome-deskicons", "chrome-os2window", "chrome-launchpad"]);
61+
// Warp 4 keeps that desktop, adds the WarpCenter along the top edge and
62+
// drops the folder window: the bare desktop is what it opened onto.
63+
expect(chromeFor("warp4")).toEqual(["chrome-warpcenter", "chrome-deskicons", "chrome-deskicons", "chrome-launchpad"]);
5164
expect(chromeFor("generic")).toEqual(["chrome-deskicons", "chrome-dock"]);
5265
});
5366

67+
// The LaunchPad's four buttons are drawn as real text, not placeholder bars —
68+
// a regression here would silently turn it into a generic dock.
69+
it("labels the Warp LaunchPad buttons", () => {
70+
const { getByText } = render(<DesktopPreview hex={HEX} onColor={onColor(HEX)} style="warp" />);
71+
for (const label of ["Lockup", "Find", "Shut down", "Window list"]) {
72+
expect(getByText(label)).toBeTruthy();
73+
}
74+
});
75+
76+
// The WarpCenter's drive gauge and clock are real text too, and are what
77+
// separates it from a generic top panel of placeholder bars.
78+
it("labels the WarpCenter drive gauge and clock", () => {
79+
const { getByText } = render(<DesktopPreview hex={HEX} onColor={onColor(HEX)} style="warp4" />);
80+
expect(getByText("C: 1635 MB free")).toBeTruthy();
81+
expect(getByText("3:32 PM")).toBeTruthy();
82+
});
83+
84+
// "F1=Help" is real text, and the one label that dates the window to PM 1.x;
85+
// as a placeholder bar the menu row would read as any toolkit's menu bar.
86+
it("labels the Presentation Manager help cell", () => {
87+
const { getByText } = render(<DesktopPreview hex={HEX} onColor={onColor(HEX)} style="pm" />);
88+
expect(getByText("F1=Help")).toBeTruthy();
89+
});
90+
5491
it("renders the modern default scene (windows + dock clock)", () => {
5592
const { getByText, getAllByText } = render(<DesktopPreview hex={HEX} onColor={onColor(HEX)} style="modern" />);
5693
expect(getByText("Documents")).toBeTruthy();

0 commit comments

Comments
 (0)