()
| 1596 | |
| 1597 | #[component] |
| 1598 | fn BlockColorPalette() -> Element { |
| 1599 | use dioxus_primitives::color_picker::Color; |
| 1600 | use palette::{encoding, Hsv, IntoColor}; |
| 1601 | |
| 1602 | let mut color = use_signal(|| -> Hsv<encoding::Srgb, f64> { |
| 1603 | Color::new(124, 58, 237).into_format::<f64>().into_color() |
| 1604 | }); |
| 1605 | |
| 1606 | rsx! { |
| 1607 | div { style: "display: grid; gap: 0.3rem; margin-bottom: 1.1rem;", |
| 1608 | h3 { style: "margin: 0; font-size: 1rem; font-weight: 660; color: var(--secondary-color-3);", "Theme accent" } |
| 1609 | p { style: "margin: 0; color: var(--secondary-color-5); font-size: 0.85rem;", "Tune the accent that shows up across the workspace." } |
| 1610 | } |
| 1611 | ColorPicker { |
| 1612 | label: "Theme accent color", |
| 1613 | color: color(), |
| 1614 | on_color_change: move |c| color.set(c), |
| 1615 | } |
| 1616 | } |
| 1617 | } |
| 1618 | |
| 1619 | #[component] |
| 1620 | fn BlockTabs() -> Element { |
nothing calls this directly
no outgoing calls
no test coverage detected