pub struct TitleBarTheme {
pub background: Option<Color>,
pub foreground: Option<Color>,
pub inactive_background: Option<Color>,
pub inactive_foreground: Option<Color>,
}Expand description
The colours of a WindowMenuBar’s line (milestone 642), on the
title bar’s line or under the system’s.
Every colour optional. Unset, the system’s: on the title bar’s line, the window’s
caption as the desktop draws it — light or dark as the system’s apps are, the accent
colour where the person asked for it on title bars, quieter on a window that is not the
active one. Where the system says nothing — off the line — the
MenuBarTheme’s, then surface_container and on_surface.
What it says reaches everything on the line: the bar’s words and their highlight, and the window’s three buttons’ glyphs and washes, unless their own themes say otherwise.
Fields§
§background: Option<Color>The line’s surface.
foreground: Option<Color>The words and glyphs on it.
inactive_background: Option<Color>The line’s surface on a window that is not the active one. Unset, background’s
answer for an inactive window.
inactive_foreground: Option<Color>The words and glyphs on a window that is not the active one. Unset, foreground’s
answer for an inactive window.