Struct cursive_core::theme::Theme
source · pub struct Theme {
pub shadow: bool,
pub borders: BorderStyle,
pub palette: Palette,
}Expand description
Represents the style a Cursive application will use.
Fields§
§shadow: boolWhether views in a StackView should have shadows.
borders: BorderStyleHow view borders should be drawn.
palette: PaletteWhat colors should be used through the application?
Implementations§
source§impl Theme
impl Theme
sourcepub fn terminal_default() -> Self
pub fn terminal_default() -> Self
Returns a bi-color theme using the terminal default text and background colors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnwindSafe for Theme
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)