pub struct ThemeBuilder { /* private fields */ }Expand description
Builder for creating custom themes with defaults from Theme::dark().
Implementations§
Source§impl ThemeBuilder
impl ThemeBuilder
Sourcepub fn selected_bg(self, color: Color) -> Self
pub fn selected_bg(self, color: Color) -> Self
Set the selected item background color.
Sourcepub fn selected_fg(self, color: Color) -> Self
pub fn selected_fg(self, color: Color) -> Self
Set the selected item foreground color.
Sourcepub fn surface_hover(self, color: Color) -> Self
pub fn surface_hover(self, color: Color) -> Self
Set the surface hover color.
Sourcepub fn surface_text(self, color: Color) -> Self
pub fn surface_text(self, color: Color) -> Self
Set the surface text color.
Sourcepub fn build(self) -> Theme
pub fn build(self) -> Theme
Build the theme. Unfilled fields use Theme::dark() defaults.
Auto Trait Implementations§
impl Freeze for ThemeBuilder
impl RefUnwindSafe for ThemeBuilder
impl Send for ThemeBuilder
impl Sync for ThemeBuilder
impl Unpin for ThemeBuilder
impl UnsafeUnpin for ThemeBuilder
impl UnwindSafe for ThemeBuilder
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