…lines 1–22 unchanged (22 lines)
23 };
24 Style {
25 background,
26 incoming: colors.secondary,
27 outgoing: colors.outgoing,
28 text_color: colors.text_body,
29 filtered_out: Color {
30 a: ext.alpha_round_borders,
31 ..ext.buttons_color
32 },
33 dropped: Color::new(0.8, 0.15, 0.15, 1.0),
34 }
35 }
36}
37
38impl Catalog for StyleType {
39 type Class<'a> = DonutType;
…lines 40–45 unchanged (6 lines)
46 class.active(self)
47 }
48}
49
50pub struct Style {
51 pub(crate) background: Color,
52 pub(crate) text_color: Color,
53 pub(crate) incoming: Color,
54 pub(crate) outgoing: Color,
55 pub(crate) filtered_out: Color,
56 pub(crate) dropped: Color,
57}
58
59/// The theme catalog of a [`ProgressBar`].
60pub trait Catalog: Sized {
61 /// The item class of the [`Catalog`].
62 type Class<'a>;
…lines 63–70 unchanged (8 lines)