class

Egui::WindowFrame::WindowsXpSilver

Inherits Egui::WindowFrame::WindowsXp < Egui::WindowFrame < Reference < Object

========================================================================== Windows XP Silver — the Luna silver look: the exact same chrome, geometry and layout as WindowsXp, recolored silver-grey (frame included). Only the close button is rose — a #DFA1A6 → #913448 gradient with a white glyph.

Constants

BTN_BOTTOM = Color32.new(199, 203, 213, 255)
BTN_DOWN_BOT = Color32.new(180, 186, 199, 255)
BTN_DOWN_TOP = Color32.new(221, 224, 231, 255)
BTN_HOT_BOT = Color32.new(218, 222, 231, 255)
BTN_HOT_TOP = Color32.new(255, 255, 255, 255)
BTN_RING = Color32.new(139, 146, 163, 255)
BTN_TOP = Color32.new(252, 252, 253, 255)

Glossy silver min/max buttons.

CAP_DEEP = Color32.new(224, 227, 234, 255)
CAP_LIGHT = Color32.new(255, 255, 255, 255)

The Silver palette — same names as the Luna constants they replace (the palette hook methods below resolve to these). Silver titlebar gradient — the same band-over-body layout as Luna blue: a bright band over a grey body that lightens toward the bottom.

CAP_MID = Color32.new(195, 200, 210, 255)
CLOSE_BOTTOM = Color32.new(145, 52, 72, 255)
CLOSE_DOWN_BOT = Color32.new(122, 42, 60, 255)
CLOSE_DOWN_TOP = Color32.new(194, 128, 135, 255)
CLOSE_HOT_BOT = Color32.new(169, 74, 93, 255)
CLOSE_HOT_TOP = Color32.new(242, 184, 188, 255)
CLOSE_RING = Color32.new(107, 36, 52, 255)
CLOSE_TOP = Color32.new(223, 161, 166, 255)

The close button: a soft rose gradient — #DFA1A6 top, #913448 bottom — with a darker ring, brighter hover and deeper press, white glyph.

FG = Color32.new(31, 47, 105, 255)
FRAME = Color32.new(204, 208, 216, 255)

The frame: solid silver with a dark outer line and a white hairline where it meets the client area.

FRAME_INNER = Color32.new(255, 255, 255, 255)
FRAME_OUTER = Color32.new(123, 130, 145, 255)
TITLE_SHADOW = Color32.new(255, 255, 255, 255)

Instance methods

btn_down
Source
btn_fill
Source
btn_hot
Source
btn_ring
Source
cap_deep
Source
cap_light

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.

Source
cap_mid
Source
close_down
Source
close_fill
Source
close_glyph

The close glyph color — white over the red in Luna; the Silver close fill is dark enough to keep a white glyph too.

Source
close_hot
Source
close_ring
Source
frame_color
Source
frame_inner
Source
frame_outer
Source
title_shadow
Source