pub struct Theme {Show 16 fields
pub backdrop: Color32,
pub bg: Color32,
pub card: Color32,
pub tile: Color32,
pub tile_hover: Color32,
pub tile_selected: Color32,
pub thumb: Color32,
pub text: Color32,
pub text_dim: Color32,
pub accent: Color32,
pub screen_accent: Color32,
pub window_accent: Color32,
pub font: Option<String>,
pub font_path: Option<String>,
pub cjk_font: Option<String>,
pub font_size: Option<f32>,
}Available on crate feature
toolkit only.Expand description
Colours and fonts for the overlay UI, with generic-dark defaults (see Default)
overridable from theme.toml.
Fields§
§backdrop: Color32Dimmed overlay drawn behind the card (lock mode).
bg: Color32Window background (no-lock mode).
card: Color32The centred card.
tile: Color32Tile background.
tile_hover: Color32Tile background when hovered.
tile_selected: Color32Tile background when selected.
thumb: Color32Thumbnail letterbox area.
text: Color32Labels.
text_dim: Color32Placeholders and secondary text.
accent: Color32General accent (selection, focus).
screen_accent: Color32Outline and glyph for OUTPUT tiles.
window_accent: Color32Outline for WINDOW tiles.
font: Option<String>UI font family (resolved via fontconfig).
font_path: Option<String>…or a direct font file.
cjk_font: Option<String>CJK fallback family (else auto-detected).
font_size: Option<f32>Base UI text size in points.
Implementations§
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.