iced_audio/style/
default_colors.rs

1//! Colors for the default styles
2
3use iced_native::Color;
4
5pub const BORDER: Color = Color::from_rgb(0.315, 0.315, 0.315);
6pub const LIGHT_BACK: Color = Color::from_rgb(0.97, 0.97, 0.97);
7pub const LIGHT_BACK_HOVER: Color = Color::from_rgb(0.93, 0.93, 0.93);
8pub const LIGHT_BACK_DRAG: Color = Color::from_rgb(0.92, 0.92, 0.92);
9
10pub const SLIDER_RAIL: (Color, Color) = (
11    Color {
12        r: 0.26,
13        g: 0.26,
14        b: 0.26,
15        a: 0.75,
16    },
17    Color {
18        r: 0.56,
19        g: 0.56,
20        b: 0.56,
21        a: 0.75,
22    },
23);
24
25pub const TICK_TIER_1: Color = Color {
26    r: 0.56,
27    g: 0.56,
28    b: 0.56,
29    a: 0.93,
30};
31pub const TICK_TIER_2: Color = Color {
32    r: 0.56,
33    g: 0.56,
34    b: 0.56,
35    a: 0.83,
36};
37pub const TICK_TIER_3: Color = Color {
38    r: 0.56,
39    g: 0.56,
40    b: 0.56,
41    a: 0.65,
42};
43
44pub const TEXT_MARK: Color = Color {
45    r: 0.26,
46    g: 0.26,
47    b: 0.26,
48    a: 0.93,
49};
50
51pub const KNOB_BACK_HOVER: Color = Color::from_rgb(0.96, 0.96, 0.96);
52
53pub const RAMP_BACK_HOVER: Color = Color::from_rgb(0.95, 0.95, 0.95);
54
55pub const XY_PAD_RAIL: Color = Color {
56    r: 0.56,
57    g: 0.56,
58    b: 0.56,
59    a: 0.9,
60};
61pub const XY_PAD_CENTER_LINE: Color = Color {
62    r: 0.56,
63    g: 0.56,
64    b: 0.56,
65    a: 0.5,
66};
67
68/*
69pub const DB_METER_BACK: Color = Color::from_rgb(0.45, 0.45, 0.45);
70pub const DB_METER_BORDER: Color = Color::from_rgb(0.2, 0.2, 0.2);
71pub const DB_METER_LOW: Color = Color::from_rgb(0.435, 0.886, 0.11);
72pub const DB_METER_MED: Color = Color::from_rgb(0.737, 1.0, 0.145);
73pub const DB_METER_HIGH: Color = Color::from_rgb(1.0, 0.945, 0.0);
74pub const DB_METER_CLIP: Color = Color::from_rgb(1.0, 0.071, 0.071);
75pub const DB_METER_CLIP_MARKER: Color = Color {
76    r: 0.78,
77    g: 0.78,
78    b: 0.78,
79    a: 0.28,
80};
81pub const DB_METER_GAP: Color = Color::from_rgb(0.25, 0.25, 0.25);
82pub const PHASE_METER_CENTER_LINE: Color = Color::from_rgb(0.92, 0.92, 0.92);
83*/