pub struct GridTileBarTheme {
pub background_color: Option<Color>,
pub foreground_color: Option<Color>,
pub title_style: Option<TextStyle>,
pub subtitle_style: Option<TextStyle>,
pub height: Option<f32>,
pub two_line_height: Option<f32>,
}Expand description
Defaults for GridTileBar.
The two heights are two fields and not one, because it is the content that picks between them: a bar with a title and a subtitle is 68 and any other is 48. An application setting one has not thereby said anything about the other.
Fields§
§background_color: Option<Color>What is drawn behind the words. Untold, nothing at all: the picture is the background, which is the arrangement the widget is for.
foreground_color: Option<Color>The colour of the words and glyphs on it. Untold, white — the bar stands on a photograph, and a photograph has no brightness the theme knows about.
title_style: Option<TextStyle>The title’s type. Untold, the scale’s title_medium.
subtitle_style: Option<TextStyle>The subtitle’s. Untold, body_small.
height: Option<f32>How tall a bar carrying one line is.
two_line_height: Option<f32>How tall one carrying a title and a subtitle is.
Trait Implementations§
Source§impl Clone for GridTileBarTheme
impl Clone for GridTileBarTheme
impl Copy for GridTileBarTheme
Source§impl Debug for GridTileBarTheme
impl Debug for GridTileBarTheme
Source§impl Default for GridTileBarTheme
impl Default for GridTileBarTheme
Source§impl PartialEq for GridTileBarTheme
impl PartialEq for GridTileBarTheme
impl StructuralPartialEq for GridTileBarTheme
Auto Trait Implementations§
impl Freeze for GridTileBarTheme
impl RefUnwindSafe for GridTileBarTheme
impl Send for GridTileBarTheme
impl Sync for GridTileBarTheme
impl Unpin for GridTileBarTheme
impl UnsafeUnpin for GridTileBarTheme
impl UnwindSafe for GridTileBarTheme
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