Egui::WindowFrame::Ubuntu
Inherits Egui::WindowFrame < Reference < Object
========================================================================== Ubuntu — classic Ambiance (~2017): gradient titlebar, centered title, round buttons at the right edge, close in Ubuntu orange.
Constants
BG_BOTTOM = Color32.new(41, 40, 37, 255)
BG_TOP = Color32.new(60, 59, 55, 255)
The warm-grey vertical gradient of the Ambiance titlebar.
BTN = Color32.new(64, 62, 58, 255)
BTN_D = 18.0
BTN_DOWN = Color32.new(50, 48, 45, 255)
BTN_GAP = 6.0
BTN_HOT = Color32.new(84, 82, 77, 255)
CAPTION_H = 28.0
CLOSE = Color32.new(233, 84, 32, 255)
Round buttons: close in Ubuntu orange, the rest dark grey with a lighter hover.
CLOSE_DOWN = Color32.new(210, 70, 22, 255)
CLOSE_HOT = Color32.new(245, 105, 50, 255)
FG = Color32.new(255, 255, 255, 255)
INSET = 8.0
TITLE_PT = 14.0
Instance methods
caption_height
Sourcepaint_buttons(bar : Rect) : Nil
min / max / close from left to right, round, at the right edge. Centered in the TOP standard strip (a taller caption extends the bar below the buttons, they stay pinned up top).
paint_caption(bar : Rect) : Nil
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.