Egui::WindowFrame::WindowsXp
Inherits Egui::WindowFrame < Reference < Object
========================================================================== Windows XP — the classic Luna theme (~2002): blue gradient titlebar with glossy rounded caption buttons (red close), the app icon slot, and a 2pt blue frame around the client area — the only style that reserves border space (#reserve_border).
Constants
Glossy caption buttons: blue min/max, red close — gradient stops plus a darker ring and hover/press variants.
Luna blue titlebar, measured off a genuine XP screenshot (the Security Center SP2 shot on Wikipedia, lossless PNG): a bright band over the top quarter, and a body that LIGHTENS toward the bottom (not the other way round) before the inner hairline.
The frame: the real Luna border is a beveled deep blue (#0342C6 with #688EDD highlight rows) — solid average ≈ #2F5AC9, with a near-black-blue outer line and a light bevel at the client edge.
Instance methods
Palette hooks: the Luna colors above, routed through instance methods so the Silver variant (WindowsXpSilver) can recolor the whole chrome without duplicating the painting code. The button methods return the gradient/hover/press tuples #paint_buttons hands to #glossy_button.
The close glyph color — white over the red in Luna; the Silver close fill is dark enough to keep a white glyph too.
Caption content (the #caption hook) claims everything left of the caption buttons — and, with an icon installed, only after the icon slot.
The thick blue Luna frame (space reserved by #reserve_border): the rim strips filled solid blue, a navy outline around the window and a light hairline where the frame meets the client area.
Interact + paint the caption buttons (Middle layer, z=50, so they win hit-tests over the drag strip at z=0).
The caption background. Win11 has NO separator under the caption; macOS has one. Fills grow 1pt past the strip and ride z=1 (panels paint at z=0, the deferred central panel later) so no panel stroke can bleed through at the seam.
The app icon at the caption's left edge (Windows idiom) — see
.icon=. No-op by default; the Windows styles paint it.
The thick blue frame: side/bottom panels bite the rim so app content lays out INSIDE the frame — a real XP client area, not content overdrawn by the border.