oa::UiStyle

Theme colors and metrics used by all widgets.

StRust public API

Declaration

pub struct UiStyle { pub background: Color, pub surface: Color, pub accent: Color, pub text: Color, pub text_secondary: Color, pub border: Color, pub corner_radius: f32, pub padding: f32, pub font_size: f32, }
Public Rust declaration.

Public Methods

fn clone(&self) -> UiStyle
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub fn viewer_dark() -> Self
fn default() -> Self

Public Data Members

backgroundColorfield
surfaceColorfield
accentColorfield
textColorfield
text_secondaryColorfield
borderColorfield
corner_radiusf32field
paddingf32field
font_sizef32field

Public Method Documentation

fn clone( &self ) -> UiStyle
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub fn viewer_dark() -> Self
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.