pub struct Theme {Show 16 fields
pub background: Rgba,
pub text: Rgba,
pub grid: Rgba,
pub axis_line: Rgba,
pub up: Rgba,
pub down: Rgba,
pub up_wick: Rgba,
pub down_wick: Rgba,
pub volume_up: Rgba,
pub volume_down: Rgba,
pub crosshair: Rgba,
pub crosshair_label_bg: Rgba,
pub crosshair_label_text: Rgba,
pub font_size: Css,
pub axis_padding: Css,
pub line: Rgba,
}Expand description
Colors and sizes of a chart.
§Examples
use ferrochart_core::theme::Theme;
let dark = Theme::dark();
assert_ne!(dark.background, Theme::light().background);
assert_eq!(Theme::default(), Theme::light());Fields§
§background: RgbaChart background.
text: RgbaAxis label text.
grid: RgbaGrid lines.
axis_line: RgbaAxis border lines.
up: RgbaUp candle body.
down: RgbaDown candle body.
up_wick: RgbaUp candle wick.
down_wick: RgbaDown candle wick.
volume_up: RgbaVolume bar of an up bar.
volume_down: RgbaVolume bar of a down bar.
crosshair: RgbaCrosshair lines.
crosshair_label_bg: RgbaBackground of the crosshair’s axis labels.
crosshair_label_text: RgbaText of the crosshair’s axis labels.
font_size: CssAxis label font size.
axis_padding: CssPadding around axis labels.
line: RgbaDefault color of line, area and histogram series.
Implementations§
Trait Implementations§
impl Copy for Theme
impl StructuralPartialEq for Theme
Auto Trait Implementations§
impl Forget for Theme
impl Freeze for Theme
impl Move 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