MCPcopy Create free account
hub / github.com/Kaiden42/PWDuck / tree_node

Method tree_node

gui/src/theme.rs:613–635  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

611
612 #[allow(clippy::missing_docs_in_private_items)]
613 fn tree_node(&self) -> Box<dyn button::StyleSheet> {
614 struct Style;
615 impl button::StyleSheet for Style {
616 fn active(&self) -> button::Style {
617 button::Style {
618 shadow_offset: Vector::new(0.0, 0.0),
619 background: None,
620 border_radius: 0.0,
621 border_width: 0.0,
622 border_color: Color::TRANSPARENT,
623 text_color: *TEXT_LIGHT,
624 }
625 }
626
627 fn hovered(&self) -> button::Style {
628 button::Style {
629 background: Some(Background::Color(*SECONDARY_1)),
630 ..self.active()
631 }
632 }
633 }
634 Style.into()
635 }
636
637 #[allow(clippy::missing_docs_in_private_items)]
638 fn tree_expand_button(&self) -> Box<dyn button::StyleSheet> {

Callers 1

viewMethod · 0.80

Calls 1

intoMethod · 0.80

Tested by

no test coverage detected