pub struct CaptionButtonsTheme {
pub glyph_color: Option<Color>,
pub inactive_glyph_color: Option<Color>,
pub hover_color: Option<Color>,
pub pressed_color: Option<Color>,
pub close_hover_color: Option<Color>,
pub close_pressed_color: Option<Color>,
pub close_glyph_hover_color: Option<Color>,
}Expand description
The window’s three buttons, as the application paints them on the title bar’s line (milestone 640). Every colour optional: unset, the desktop’s.
Fields§
§glyph_color: Option<Color>The glyphs. Unset, the line’s foreground (TitleBarTheme, the system’s), then
on_surface.
inactive_glyph_color: Option<Color>The glyphs of a window that is not the active one. Unset, the line’s inactive foreground, then the glyph half way to the line.
hover_color: Option<Color>Under the pointer. Unset, the glyph at 8 % over the line.
pressed_color: Option<Color>Pressed. Unset, the glyph at 4 % over the line.
close_hover_color: Option<Color>The close button under the pointer. Unset, the desktop’s red.
close_pressed_color: Option<Color>The close button pressed. Unset, a darker red.
close_glyph_hover_color: Option<Color>The close glyph on red. Unset, white.
Trait Implementations§
Source§impl Clone for CaptionButtonsTheme
impl Clone for CaptionButtonsTheme
impl Copy for CaptionButtonsTheme
Source§impl Debug for CaptionButtonsTheme
impl Debug for CaptionButtonsTheme
Source§impl Default for CaptionButtonsTheme
impl Default for CaptionButtonsTheme
Source§impl PartialEq for CaptionButtonsTheme
impl PartialEq for CaptionButtonsTheme
impl StructuralPartialEq for CaptionButtonsTheme
Auto Trait Implementations§
impl Freeze for CaptionButtonsTheme
impl RefUnwindSafe for CaptionButtonsTheme
impl Send for CaptionButtonsTheme
impl Sync for CaptionButtonsTheme
impl Unpin for CaptionButtonsTheme
impl UnsafeUnpin for CaptionButtonsTheme
impl UnwindSafe for CaptionButtonsTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more