Skip to content

About

Retro OS styles for Windows, macOS, and Linux in Delphi FireMonkey.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

FireMonkey Retro Styles

Twenty-seven vector styles that turn a Delphi FireMonkey app into a classic desktop — plus a small window manager so your app can be the desktop.

License: MIT Platform: FireMonkey Styles: 27 Skins: 221 Vector Targets

Every style is a plain .style file: drop one into a TStyleBook, or load it at runtime, and every standard FMX control repaints as Windows 3.1, Mac OS 9, CDE, or one of twenty-four other looks. The optional FMX.RetroWindows unit adds period-correct window chrome — draggable title bars, caption buttons, taskbars, and desktop icons — for building a full retro desktop shell.


Contents


The styles

All twenty-seven live in FMXStyles/Retro/. Twenty-one are recreations; six are original designs.

Style Look and defining details
Win31.style Windows 3.1 / 3.11 — black-outlined buttons, ✗ checkboxes, white content areas, flat white menus, segmented resize frame, control-menu box (no close button)
Win95.style Windows 95 — the canonical gray two-level bevels, navy title bars, dithered scrollbar tracks
Win98.style Windows 98 — Win95 with the navy→#1084D0 title gradient
Win2000.style Windows 2000 — warm #D4D0C8 face, #0A246A→#A6CAF0 gradient, Tahoma
WinXPLuna.style Windows XP (Luna blue) — rounded gradient buttons, orange hover ring, blue caption jewels, glossy vertical title ramp
WinXPOlive.style Windows XP Olive green
WinXPSilver.style Windows XP Silver
CDE.style CDE (default) — Motif soft bevels, groove-ringed frames, title-colored window borders, engraved caption glyphs
CDESolaris.style CDE (Solaris default) — blue-gray Motif with the crimson active title
MacOS9.style Mac OS 9 (Platinum) — striped title bars, left close box, windowshade collapse
AppleSystem.style Apple System 6/7 — strict monochrome, hard drop shadows, inverse-video selection
OS2Warp4.style OS/2 Warp 4 — #2900AD blue title bars, thin-outlined PM widgets, window-icon caption glyphs
Amiga13.style AmigaOS 1.3 — the four-color Workbench palette: blue, white, black, orange, and nothing else
Amiga20.style AmigaOS 2.0 — Intuition's gray 3D bevels with the blue accent kept
BeOS.style BeOS R5 — a real yellow tab: the window box starts below it and the desktop shows through beside it
NeXTSTEP.style NeXTSTEP 3.3 — entirely grayscale, the darkest chrome of the era, striped title bars
DESQviewX.style DESQview/X — Motif on DOS, in DESQview's slate blues
Photon.style QNX Photon — Motif geometry in Photon's warm gray and teal
GEM.style GEM / Atari TOS — monochrome, fat black rules, the green desktop
Synthwave.style NEON/OS 1984 — invented: dark violet chrome, neon magenta edges, sunset-gradient title bars, cyan focus glow, wireframe grid desktop — 10 color schemes

Invented styles

Not recreations. Each is built around a different documented driver of visual preference — see docs/invented-styles.md for the reasoning.

Style Look Built around
Lagoon.style LAGOON 1.0 — glossy sky-blue, five-stop title ramp, rounded everything The most-liked hue family, curvature preference, specular gloss
Vellum.style VELLUM — warm paper, hairline rules, no bevels, one terracotta accent Low-arousal neutrals and processing fluency
Phosphor.style PHOSPHOR — amber CRT on near-black, phosphor raster desktop Maximum figure–ground contrast, plus nostalgia
Canopy.style CANOPY — muted foliage green and clay, 6 px frames Biophilia, held back by desaturation
Blockprint.style BLOCKPRINT — flat poster colors inside heavy black rules Salience and novelty against the beveled-gray prototype

And a matched pair recreating a desktop that isn't retro at all — the two looks claude.com/product/claude-code ships side by side, every color read out of the page's own stylesheet rather than sampled by eye:

Style Look
ClaudeCode.style Claude Code — #FAF9F5 paper, #E3DACC oat chrome, #D97757 coral accent, #141413 ink. VELLUM's warm-paper thesis in someone else's hands
ClaudeCodeDark.style Claude Code (dark) — the terminal shell: #0B0B0B ground, #1F1F1E chrome, #C3C2B7 text, coral selection, #4D9FFF progress

Synthwave.style and these five share the same role-based palette system as the recreations — a demonstration that the generator handles an original design as readily as a historical one.

Why vector styles?

Retro interfaces are flat fills and 1–2 px bevels — exactly what FMX's vector style objects express. That means:

  • Crisp at any DPI. No 9-slice bitmap atlas to redraw per scale factor.
  • Text-editable and diffable. Every color and bevel is a readable DFM property.
  • One file per look, platform-neutral, no external assets.

The only bitmaps in these files are a handful of tiny PNG tiles (2×2 to 16×16) used for patterns that genuinely need a repeating tile: checkerboard dither on scrollbar troughs and disabled controls, segmented progress bars, and NEON/OS's wireframe grid. Those tiles are the one thing a skin can't recolor, so NEON/OS's grid is a translucent white tile over a plain desktop fill — the fill takes the scheme's color and the grid rides on top of it.


Quick start

Runtime, application-wide:

uses
  FMX.Styles;

begin
  TStyleManager.SetStyleFromFile('FMXStyles\Retro\Win95.style');
end;

Design time: drop a TStyleBook on the form, load the .style file into it, then set the form's StyleBook property.

Styles can be swapped at runtime. If you switch styles from inside a control's event handler, defer it so FMX can finish the current event before its style objects are released:

TThread.ForceQueue(nil,
  procedure
  begin
    TStyleManager.SetStyleFromFile(StyleFile);
  end);

Fonts

Each style requests its era's font family — MS Sans Serif, Tahoma, Helvetica, Charcoal, Chicago — and FMX falls back to the platform default when one isn't installed. Fonts are not embedded (licensing); install the originals or recreations for full fidelity.


Retro window manager

Source/FMX.RetroWindows.pas adds four components. All of their visuals come from the style files, so switching styles reskins the entire desktop — chrome included — at runtime.

Component Role
TRetroDesktop Desktop surface: window list, z-order and activation, cascade placement, taskbar and icon hosting
TRetroWindow A window with period chrome: title-bar drag, 8-direction resize, active/inactive states, minimize / maximize / close
TRetroTaskbar The desktop's bar. Docks to any edge, and takes its shape from the style: taskbar, NeXTSTEP Dock, BeOS corner Deskbar, Amiga screen title, GEM/Mac menu bar or OS/2 tray
TRetroDesktopIcon Desktop icon: drag to move, focus selection (inverted label), OnOpen on double-click
uses
  FMX.RetroWindows;

var
  Desktop: TRetroDesktop;
  Win: TRetroWindow;
begin
  Desktop := TRetroDesktop.Create(Self);
  Desktop.Parent := Self;          // fills the form (Align = Client)
  Desktop.CreateTaskbar;           // omit for Win 3.1 / CDE-style desktops

  Win := Desktop.CreateWindow('My Application', 400, 300);
  MyButton.Parent := Win.Client;   // parent your controls to Client

  Desktop.CreateIcon('Documents').OnOpen := IconOpenHandler;
end;

Behavior

Modeled on the window manager from classic-stylesheets, with per-OS conventions layered on top:

  • Click anywhere on an inactive window to activate it — the first click also starts a title-bar drag or edge resize, no second click needed.

  • Double-click the title bar to maximize (or windowshade-collapse on the Apple styles).

  • Drag a window against the desktop's top edge to maximize (EdgeMaximize); drag a maximized window down to restore it, grab point preserved.

  • Windows stay reachable: positions are clamped after drags and when the desktop resizes.

  • Minimize goes to the taskbar where one exists, or to desktop icons where it doesn't (Windows 3.1, CDE) — and Mac OS 9 / System windows roll up into their title bar.

  • The taskbar docks to any edge via Taskbar.Edge (rbeTop / rbeBottom / rbeLeft / rbeRight), restacking its buttons along the bar's long axis. CreateTaskbar with no argument follows the style. Pass an edge to override, or set it later:

    Desktop.CreateTaskbar(rbeLeft);      // explicit
    Desktop.Taskbar.Edge := rbeTop;      // change at any time

    Windows are clamped to the remaining desktop area whichever edge is used.

  • The bar's shape follows the style too, not only its edge — a Windows taskbar is one answer out of six (Taskbar.Kind, TRetroBarKind):

    Kind Shape Styles
    rbkTaskbar launcher at the near end, one button per window Windows 3.1–XP, Photon, DESQview/X, the invented styles
    rbkDock vertical strip of app tiles on the right edge, no launcher NeXTSTEP
    rbkCorner small panel in the top-right, apps stacked under the launcher, clock at the foot BeOS
    rbkScreenTitle status text left, depth gadgets right, no launcher and no window buttons AmigaOS 1.3 / 2.0
    rbkMenuBar menu titles left, running apps and clock right GEM, Mac OS 9, Apple System
    rbkTray launcher and apps left, clock right OS/2 Warp 4

    The kind decides the edge (a Dock is on the right, a menu bar is the top line), and rbkCorner floats: the BeOS Deskbar reserves no space, so windows pass under it. rbkScreenTitle carries no per-window buttons, so minimized windows fall back to desktop icons the way they do with no bar at all, and its two depth gadgets cycle the backmost window forward or push the active one behind the rest. Register menu titles once and the bar shows them only where they belong:

    Desktop.Taskbar.AddMenuTitle('File');   // hidden unless Kind = rbkMenuBar
    Desktop.Taskbar.Kind := rbkTaskbar;     // pin it; styles stop overriding
  • Desktop icons are draggable — grab and move, clamped to the usable area. A few pixels of slop separate a click from a drag, so selecting and double-clicking still work. Desktop.ArrangeIcons re-grids them from the top-left.

  • The taskbar always stays above windows and icons, and both are pulled back inside WindowArea when the desktop resizes or the bar changes edge — so switching to Mac OS 9, Apple System or OS/2 Warp, where the bar sits at the top, moves the icons down instead of leaving them under it.

  • The launcher button (Taskbar.MenuButton) is deliberately generic — it reads Menu with a hamburger glyph. These styles reproduce no vendor wordmark or logo, so there is no "Start" button and no Apple menu; set MenuButton.Text if you want your own label.

API reference

TRetroWindow
procedure Close; procedure Minimize; procedure Restore;
procedure ToggleMaximize; procedure ToggleCollapse; procedure Reposition;

property Client: TLayout;                 // parent your content here
property Desktop: TRetroDesktop;
property WindowState: TRetroWindowState;  // rwsNormal / rwsMinimized / rwsMaximized
property Collapsed: Boolean;
property Caption: string;
property Active: Boolean;
property Sizeable: Boolean default True;
property ShowClose, ShowMin, ShowMax: Boolean default True;
property OnClose: TNotifyEvent;
property OnActiveChanged: TNotifyEvent;

Closing a window destroys it. Close hands the window to TRetroDesktop.RemoveWindow, which queues the Free — so any field of yours still pointing at it is left dangling, and the next Restore runs on freed memory. Register for notification and drop the reference:

W := FDesktop.CreateWindow('Display Properties');
W.FreeNotification(Self);   // -> your Notification(AComponent, opRemove)

Ownership is not enough: RemoveWindow detaches the owner link (it keeps the window parented until the deferred free, which is what stops FMX walking a freed caption button on the next mouse event), so FreeNotification is the one that still fires. The demo rebuilds a closed window when its icon is opened again rather than trying to bring the old one back.

TRetroDesktop
function CreateWindow(const ACaption: string;
  AWidth: Single = 360; AHeight: Single = 280): TRetroWindow;
function CreateIcon(const ACaption: string): TRetroDesktopIcon;
function CreateTaskbar: TRetroTaskbar;                     // style's preferred edge
function CreateTaskbar(AEdge: TRetroBarEdge): TRetroTaskbar;
function PreferredBarEdge: TRetroBarEdge;  // implied by the style's bar kind
function PreferredBarKind: TRetroBarKind;  // rbkDock, rbkCorner, rbkMenuBar, ...
procedure BringBottomToFront;              // Amiga depth gadgets
procedure SendActiveToBack;
function WindowArea: TRectF;               // desktop minus the taskbar
procedure ActivateWindow(AWindow: TRetroWindow);
procedure RemoveWindow(AWindow: TRetroWindow);
procedure ArrangeIcons;                    // re-grid from the top-left
procedure RepositionIcons;                 // pull strays back into WindowArea

property ActiveWindow: TRetroWindow;
property Taskbar: TRetroTaskbar;
property EdgeMaximize: Boolean;            // top-edge drag maximizes
property WindowCount: Integer;
property Windows[Index: Integer]: TRetroWindow;

Custom style parts

Beyond the standard FMX style names, each retro style ships chrome objects that these components look up. They are ordinary style objects, so a style that omits them simply loses that feature rather than breaking:

retrowindowstyle · retrodesktopstyle · retrotaskbarstyle · retromenubuttonstyle · retrotaskbuttonstyle · retromenubarstyle · retrodesktopiconstyle · retrocaption{close,min,max,restore,sysmenu}style · retrobartitlestyle (menu-bar title) · retrobar{front,back}style (Amiga depth gadgets)

These windows are not forms

TRetroWindow is a TStyledControl living inside a form's client area — closer to an MDI child, or to the windows a JavaScript window manager draws inside a page, than to an OS window. It has no handle, it can't leave the form, and its chrome comes from the retro* parts above, which FMX itself knows nothing about; FMX.RetroWindows supplies the behavior (drag, 8-way resize, z-order, activation, minimize/maximize/collapse).

That is a different mechanism from a style that restyles the real window frame. FMX can draw a form's caption itself rather than leaving it to the OS — on Windows, Form.Border.Style := TFormBorderStyle.Styled — and it then takes that caption's look from resources inside the style file. Styles that ship those resources (some commercial packs do) give you a themed title bar on the actual form; styles that don't leave the native frame alone.

The two compose rather than compete, and today only one half is here: these styles carry no form-border resources, so the app window keeps its native frame while everything inside it goes retro. That's why the demo offers F11 fullscreen and the shell-mode route — with the native frame gone, the retro desktop is the whole screen. Adding form-border parts to the generator is possible and would make the outer window match; it needs a reference style that carries them to model the part names on.

TRetroDesktopIcon
procedure Reposition;                      // clamp back inside WindowArea

property Caption: string;
property OnOpen: TNotifyEvent;             // double-click

Demo application

Demo/RetroDesktop/RetroDesktopDemo.dproj builds a working retro desktop. It boots into Windows 95 and includes:

  • a Control Gallery window covering the full control set — buttons, inputs, lists, tree view, grid, panels, menus, status bar, icon grid, and disabled states;
  • a Display Properties window that switches between all twenty-seven styles live, with a Color scheme list for whichever family has skins;
  • a Web Browser window (TWebBrowser) that freezes to a snapshot when deactivated, so the native browser control can't paint over other windows;
  • desktop icons, a taskbar, and F11 for fullscreen.

The project ships Win32/Win64 build configurations and also compiles for macOS and Linux (FMXLinux). The styles and the window-manager unit are platform-neutral — they use only standard FMX style objects and controls.


Running as a desktop shell

Two deployment modes, neither needing special code:

  1. Fullscreen / kiosk — set FullScreen := True on a borderless main form. Works on every platform FMX targets.
  2. Windows shell replacement — in a test account, set HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon → Shell (string) to your executable's full path and sign in again. Windows starts your retro desktop instead of explorer.exe. Delete the value to revert. While active there is no Explorer taskbar or shell hotkey handling — your app is the shell.

Skins

A style is a look; a skin is that look in different colors. Hotdog Stand is Windows 3.1 with a yellow desktop and red windows — same widgets, same metrics. 201 skins from classic-stylesheets ship here as ~400-byte files that are patched into the style at load time, so a skin costs nothing on disk next to a 290 KB baked variant.

family styles skins
win31 Windows 3.1 25 — Hotdog Stand, LCD, Black Leather Jacket, Plasma Power Saver…
win9x Windows 95 / 98 / 2000, AmigaOS 2.0 35 — Plum, Teal, Eggplant, Rainy Day, Spruce…
cde CDE, CDE Solaris, DESQview/X, QNX Photon 116 — the 2-, 4- and 8-bit Motif palettes
mac9 Mac OS 9, NeXTSTEP, VELLUM, CANOPY 25 — Bubbles, Gray Space, Tangerine Fusion…
synth NEON/OS 1984, PHOSPHOR, Claude Code (dark) 10 — Miami Sunset, Tokyo Rain, Acid Lime, Vaporwave, Ultraviolet…
paper Claude Code 10 — Oat, Linen, Kraft, Manilla, Bone, Clay, Sage, Espresso…

Skins are keyed by family, so every Windows 9x style offers the same 35, and the CDE palettes serve all four Motif styles — 769 style-and-skin combinations from 221 files. The ten NEON/OS and ten Claude Code schemes are original; the other 201 are converted from classic-stylesheets. A palette may set skinfamily to borrow a family's chrome without its schemes: Claude Code is synth geometry on the warm paper schemes, while Claude Code (dark) stays on the neon ones.

uses FMX.RetroSkins;

TRetroSkins.Apply(StyleFile, '');        // the style's own palette
TRetroSkins.Apply(StyleFile, SkinFile);  // recolored

for SkinFile in TRetroSkins.SkinsFor(StyleFile) do
  List.Items.Add(TRetroSkins.SkinName(SkinFile));

Every color in a generated style comes from a palette role, and the generator emits a .rolemap sidecar recording which bytes each role produced — so applying a skin is overwriting six hex characters per offset, alpha untouched. FMX only ever sees an ordinary .style file. The demo's Display Properties window lists the skins for whichever style is selected.

tools/validate_styles.py --deep regenerates each style from a palette carrying the skin's colors and compares that against the runtime-patched bytes: all 769 pairs are byte-identical outside embedded tiles. Tiles are the one exception — they're compressed pixel data, so the Windows 9x dither keeps its base checkerboard under a skin.

See docs/skins.md for how the role map is derived and what the validator proves about it.


How the styles are built

The .style files are generated, not hand-edited. tools/generate_retro_styles.py parses FMXStyles/Vanilla.style as its structural skeleton — a neutral gray style carrying the ~97 style names FMX looks up — then, per OS:

  1. remaps all colors through a role-based palette (face, highlight, shadow, window, selection, title bar, …);
  2. flattens gradients and corner radii for the pre-XP looks;
  3. snaps state animations to instant — retro UIs don't ease;
  4. rebuilds signature controls with per-family recipes: bevels, check/radio glyphs, scrollbars, tabs, group boxes, expanders, dropdown buttons;
  5. appends the window-manager chrome objects.

Where the skeleton came from

Vanilla.style was bootstrapped once from Embarcadero's stock Light.Style by tools/make_vanilla.py, which replaced everything replaceable along the way:

  • every color remapped to a neutral gray palette;
  • all four 64×64 dialog icons (52.5 KB of bitmap artwork) redrawn as vector shapes with semantic palette roles — iconstop, iconwarn, iconinfo, iconok, iconmark — so they follow the style and a skin can move them;
  • the size grip redrawn as three diagonal bars;
  • all 32 glyph paths swapped for the generator's own constants — the same arrows, checks, crosses and triangles the retro recipes draw everywhere else.

That is only worth anything if it changes nothing downstream, which is checked, not assumed. The generator classifies each source color by chroma and lightness before mapping it to a role, so the skeleton's palette is chosen to be a fixed point of that classifier — and --verify regenerates all 27 styles from both skeletons and compares:

$ python3 tools/make_vanilla.py --from "%BDS%\Redist\styles\Fmx\Light.Style" --verify
wrote FMXStyles/Vanilla.style (180800 bytes)
  32 glyph paths replaced, 0 left stock, 4 dialog icons, 1 size grips
  verified: all 27 styles generate identically from either skeleton outside the replaced art

Rebuilding it needs Delphi's file; using this repository never does. What still comes from Light.Style is layout structure — node hierarchy and geometry — not artwork, colors or path data.

$ python3 tools/generate_retro_styles.py          # regenerate all twenty-seven
$ python3 tools/generate_retro_styles.py Win95    # regenerate just one
$ python3 tools/validate_styles.py                # structural checks
skeleton top-level styles: 97 (Vanilla.style)
AppleSystem.style      OK
CDE.style              OK
...

validate_styles.py verifies, for every generated file: balanced DFM object nesting, a byte-exact parse/serialize round trip, complete style-name coverage against the skeleton (so no control silently falls back to the default look), valid color literals, no orphaned gradient properties, presence of the chrome objects, and that the title-bar caption clears the caption buttons — a margin that no longer covers the button block puts the caption text under them.

Palettes and per-OS research live in docs/: palettes.md (every color, with its source), skins.md (how the role map is derived), invented-styles.md (why the six originals look the way they do), parity-plan.md, and win31-parity.md.


Repository layout

FMXStyles/Vanilla.style     Neutral skeleton every style is cut from
FMXStyles/Retro/            The twenty-seven styles
FMXStyles/Retro/Skins/      Skin color sets, grouped by style
Source/FMX.RetroWindows.pas Window manager components
Source/FMX.RetroSkins.pas   Runtime skin recoloring
Demo/RetroDesktop/          Runnable retro desktop demo
tools/                      Style generator, skin tools and validator
docs/                       Palettes, skins, invented-style notes, parity research

Fidelity notes

Colors and metrics are taken from documented sources rather than estimated: the CSS custom properties of classic-stylesheets and system.css, the B00merang OS/2 Warp 4 theme, and period screenshots where a recreation and the real system disagree.

Known, deliberate deviations:

  • Native window chrome can't be styled. FMX cannot restyle an OS title bar, so retro chrome lives on TRetroWindow inside the app.
  • Bold captions are set where the reference calls for them (Windows 3.1, all three XP skins, BLOCKPRINT). Font.StyleExt is a binary DFM record, so rather than author one the generator takes the value that already appears twenty times in the shipped style pack and changes the single byte that carries the weight — 7 (Semibold) becomes 8 (Bold) in FMX's TFontWeight. An earlier attempt to write that record from scratch produced underline, which is why it was previously listed as not done.
  • Default-button rings have no FMX style hook (Default = True exposes no style state).
  • Tooltips use native FMX hints.
  • The styles ship no TSizeGrip. FMX's grip resizes the host form — inside a retro desktop, the whole desktop — and clearing HitTest in the style is not enough, because the owning control re-applies state to the part after the style is cloned. Each style has three (the status bar's plus one per scroll-box style, which is what puts a grip in every memo, list box and grid), and all three are replaced by inert layouts that keep the style name, so ShowSizeGrip lookups still resolve. TRetroWindow supplies its own grip over the same corner, which resizes the window.
  • Fine gradient detail (XP's multi-stop title bars) is simplified, and some dither patterns are approximated at 2 px.

Credits and licensing

This project is MIT licensed — see LICENSE.

Visual research draws on these projects; no code or image assets from them are included here, only color values and measurements referenced while authoring original FMX styles:

The skeleton these styles are generated from, FMXStyles/Vanilla.style, was bootstrapped from Embarcadero's stock Light.Style: neutral colors, our own glyph paths and dialog icons, no bitmaps of anyone else's. Delphi's file is needed only to rebuild the skeleton, is not redistributed here, and what remains derived from it is layout structure — see How the styles are built.

Windows, Mac OS, CDE, OS/2, and other names are trademarks of their respective owners. This is an independent tribute project with no affiliation or endorsement.

About

Retro OS styles for Windows, macOS, and Linux in Delphi FireMonkey.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages