egui_charts/ui/drawing_toolbar/components/
mod.rs1pub mod icon_button;
7pub mod pair_button;
8pub mod separator;
9pub mod svg_helpers;
10
11pub use icon_button::{draw_icon_btn, draw_icon_button_padded, draw_toggle_btn, draw_tool_button};
13pub use pair_button::{ArrowDirection, PairButton, PairButtonResponse, draw_arrow};
14pub use separator::{draw_separator, draw_separator_styled, draw_separator_with_margin};
15pub use svg_helpers::{render_svg_at_rect_themed, render_svg_centered};
16
17fn active_hover_color(ui: &egui::Ui) -> egui::Color32 {
19 let active = ui.visuals().widgets.active.bg_fill;
20 egui::Color32::from_rgb(
21 active.r().saturating_add(5),
22 active.g().saturating_add(5),
23 active.b().saturating_add(5),
24 )
25}