Realm

oa::UiStyle

Theme colors and metrics used by all widgets.

StRust public API

Declaration

pub struct UiStyle {Show 19 fields pub background: Color, pub surface: Color, pub surface_hover: Color, pub surface_active: Color, pub accent: Color, pub accent_hover: Color, pub text: Color, pub text_secondary: Color, pub text_disabled: Color, pub border: Color, pub border_strong: Color, pub plot_background: Color, pub plot_surface: Color, pub plot_grid: Color, pub plot_border: Color, pub data_palette: [Color; 6], 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 realm_light() -> Self
pub fn viewer_dark() -> Self
fn default() -> Self

Public Data Members

backgroundColorfield
surfaceColorfield
surface_hoverColorfield
surface_activeColorfield
accentColorfield
accent_hoverColorfield
textColorfield
text_secondaryColorfield
text_disabledColorfield
borderColorfield
border_strongColorfield
plot_backgroundColorfield
plot_surfaceColorfield
plot_gridColorfield
plot_borderColorfield
data_palette[Color; 6]field
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 realm_light() -> Self
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.