pub struct ThemeBuilder { /* private fields */ }Expand description
Builder for creating custom themes with defaults from Theme::dark().
Implementations§
Source§impl ThemeBuilder
impl ThemeBuilder
pub fn primary(self, color: Color) -> Self
pub fn secondary(self, color: Color) -> Self
pub fn accent(self, color: Color) -> Self
pub fn text(self, color: Color) -> Self
pub fn text_dim(self, color: Color) -> Self
pub fn border(self, color: Color) -> Self
pub fn bg(self, color: Color) -> Self
pub fn success(self, color: Color) -> Self
pub fn warning(self, color: Color) -> Self
pub fn error(self, color: Color) -> Self
pub fn selected_bg(self, color: Color) -> Self
pub fn selected_fg(self, color: Color) -> Self
pub fn surface(self, color: Color) -> Self
pub fn surface_hover(self, color: Color) -> Self
pub fn surface_text(self, color: Color) -> Self
pub fn build(self) -> Theme
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