pub struct AppBarStyle {
pub title_align: TitleAlign,
pub show_traffic_lights: bool,
pub height: f32,
pub elevation: f32,
}Expand description
Per-widget platform styling for AppBar (D105 Phase 23 Step 3 — the
proof-of-concept widget for the whole per-widget-Style-struct model).
Per-instance builder calls on the widget itself (.height(..),
.traffic_lights()) override these theme defaults; a widget that
doesn’t set them falls back to whatever the active theme says.
Fields§
§title_align: TitleAlign§show_traffic_lights: boolDraw faux macOS traffic-light dots. Stays false on every built-in
theme, including macOS — a real window already has real OS traffic
lights; this is decorative mockup chrome for docs/screenshots only
(see the widget’s own doc comment), never something a theme should
silently turn on for real apps.
height: f32§elevation: f32Values above 0.0 draw the bar’s separating edge (today’s flat
bottom border); 0.0 omits it. Not yet a real elevation/shadow
effect — a coarser “on/off” proxy for the proof, real elevation
rendering is later work.
Trait Implementations§
Source§impl Clone for AppBarStyle
impl Clone for AppBarStyle
Source§fn clone(&self) -> AppBarStyle
fn clone(&self) -> AppBarStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more