Skip to main content

uzor/ui/widgets/composite/select/
tokens.rs

1//! Default look of the open select list (dark, as hq / app.js render it). Apps restyle it
2//! from CSS (`SelectStyle::from_sheet`).
3
4use super::SelectStyle;
5use crate::ui::widgets::composite::dialog::Shadow;
6
7impl Default for SelectStyle {
8    fn default() -> Self {
9        Self {
10            bg: "#1f1f1f",
11            border: Some("#2e2e34"),
12            radius: 10.0,
13            shadow: Some(Shadow { dy: 8.0, blur: 24.0, color: "rgba(0,0,0,0.5)" }),
14            color: "#f5f5f5",
15            sub: "#acacac",
16            px: 13.0,
17            row_h: 30.0,
18            row_radius: 7.0,
19            row_hover: "#2a2a2a",
20            row_hi: "#2f2f2f",
21            check: "#3b82f6",
22            search_bg: "#1b1b1b",
23            rows: 10.0,
24            min_w: 160.0,
25            search_min_w: 280.0,
26            thumb: "#4a4a4a",
27            gap: 4.0,
28        }
29    }
30}