1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
use crate::cow_borrowed;
use crate::theming::*;

pub const LIGHT_THEME: Theme = Theme {
    name: "light",
    body: BodyTheme {
        background: cow_borrowed!("white"),
        color: cow_borrowed!("black"),
        padding: cow_borrowed!("none"),
    },
    slider: SliderTheme {
        background: cow_borrowed!("rgb(210, 210, 210)"),
        thumb_background: cow_borrowed!("rgb(210, 210, 210)"),
        thumb_inner_background: cow_borrowed!("rgb(103, 80, 164)"),
        border_fill: cow_borrowed!("rgb(210, 210, 210)"),
    },
    button: ButtonTheme {
        background: cow_borrowed!("rgb(245, 245, 245)"),
        hover_background: cow_borrowed!("rgb(235, 235, 235)"),
        font_theme: FontTheme {
            color: cow_borrowed!("rgb(10, 10, 10)"),
        },
        border_fill: cow_borrowed!("rgb(210, 210, 210)"),
        focus_border_fill: cow_borrowed!("rgb(180, 180, 180)"),
        shadow: cow_borrowed!("0 4 5 0 rgb(0, 0, 0, 0.1)"),
        padding: cow_borrowed!("8 16"),
        margin: cow_borrowed!("4"),
        corner_radius: cow_borrowed!("8"),
        width: cow_borrowed!("auto"),
        height: cow_borrowed!("auto"),
    },
    input: InputTheme {
        background: cow_borrowed!("rgb(245, 245, 245)"),
        hover_background: cow_borrowed!("rgb(235, 235, 235)"),
        font_theme: FontTheme {
            color: cow_borrowed!("rgb(10, 10, 10)"),
        },
        border_fill: cow_borrowed!("rgb(210, 210, 210)"),
        width: cow_borrowed!("150"),
        margin: cow_borrowed!("4"),
        corner_radius: cow_borrowed!("10"),
    },
    switch: SwitchTheme {
        background: cow_borrowed!("rgb(121, 116, 126)"),
        thumb_background: cow_borrowed!("rgb(231, 224, 236)"),
        enabled_background: cow_borrowed!("rgb(103, 80, 164)"),
        enabled_thumb_background: cow_borrowed!("rgb(234, 221, 255)"),
        focus_border_fill: cow_borrowed!("rgb(180, 180, 180)"),
        enabled_focus_border_fill: cow_borrowed!("rgb(180, 180, 180)"),
    },
    scroll_bar: ScrollBarTheme {
        background: cow_borrowed!("rgb(225, 225, 225)"),
        thumb_background: cow_borrowed!("rgb(135, 135, 135)"),
        hover_thumb_background: cow_borrowed!("rgb(115, 115, 115)"),
        active_thumb_background: cow_borrowed!("rgb(95, 95, 95)"),
    },
    scroll_view: ScrollViewTheme {
        height: cow_borrowed!("100%"),
        width: cow_borrowed!("100%"),
        padding: cow_borrowed!("0"),
    },
    tooltip: TooltipTheme {
        background: cow_borrowed!("rgb(245, 245, 245)"),
        color: cow_borrowed!("rgb(25,25,25)"),
        border_fill: cow_borrowed!("rgb(210, 210, 210)"),
    },
    dropdown: DropdownTheme {
        dropdown_background: cow_borrowed!("white"),
        background_button: cow_borrowed!("rgb(245, 245, 245)"),
        hover_background: cow_borrowed!("rgb(235, 235, 235)"),
        font_theme: FontTheme {
            color: cow_borrowed!("rgb(10, 10, 10)"),
        },
        border_fill: cow_borrowed!("rgb(210, 210, 210)"),
        arrow_fill: cow_borrowed!("rgb(40, 40, 40)"),
    },
    dropdown_item: DropdownItemTheme {
        background: cow_borrowed!("white"),
        select_background: cow_borrowed!("rgb(240, 240, 240)"),
        hover_background: cow_borrowed!("rgb(220, 220, 220)"),
        font_theme: FontTheme {
            color: cow_borrowed!("rgb(10, 10, 10)"),
        },
    },
    accordion: AccordionTheme {
        color: cow_borrowed!("black"),
        background: cow_borrowed!("rgb(245, 245, 245)"),
        border_fill: cow_borrowed!("rgb(210, 210, 210)"),
    },
    loader: LoaderTheme {
        primary_color: cow_borrowed!("rgb(50, 50, 50)"),
        secondary_color: cow_borrowed!("rgb(150, 150, 150)"),
    },
    link: LinkTheme {
        highlight_color: cow_borrowed!("rgb(43,106,208)"),
    },
    progress_bar: ProgressBarTheme {
        color: cow_borrowed!("white"),
        background: cow_borrowed!("rgb(210, 210, 210)"),
        progress_background: cow_borrowed!("rgb(103, 80, 164)"),
        width: cow_borrowed!("100%"),
        height: cow_borrowed!("20"),
    },
    table: TableTheme {
        font_theme: FontTheme {
            color: cow_borrowed!("black"),
        },
        background: cow_borrowed!("white"),
        arrow_fill: cow_borrowed!("rgb(40, 40, 40)"),
        row_background: cow_borrowed!("transparent"),
        alternate_row_background: cow_borrowed!("rgb(240, 240, 240)"),
        divider_fill: cow_borrowed!("rgb(200, 200, 200)"),
        height: cow_borrowed!("auto"),
        corner_radius: cow_borrowed!("6"),
        shadow: cow_borrowed!("0 2 15 5 rgb(35, 35, 35, 70)"),
    },
    canvas: CanvasTheme {
        width: cow_borrowed!("300"),
        height: cow_borrowed!("150"),
        background: cow_borrowed!("white"),
    },
    graph: GraphTheme {
        width: cow_borrowed!("100%"),
        height: cow_borrowed!("100%"),
    },
    network_image: NetworkImageTheme {
        width: cow_borrowed!("100%"),
        height: cow_borrowed!("100%"),
    },
    icon: IconTheme {
        width: cow_borrowed!("10"),
        height: cow_borrowed!("10"),
        margin: cow_borrowed!("none"),
    },
    sidebar: SidebarTheme {
        background: cow_borrowed!("rgb(245, 245, 245)"),
        font_theme: FontTheme {
            color: cow_borrowed!("rgb(10, 10, 10)"),
        },
    },
    sidebar_item: SidebarItemTheme {
        background: cow_borrowed!("rgb(245, 245, 245)"),
        hover_background: cow_borrowed!("rgb(235, 235, 235)"),
        font_theme: FontTheme {
            color: cow_borrowed!("rgb(10, 10, 10)"),
        },
        border_fill: cow_borrowed!("rgb(210, 210, 210)"),
    },
    popup: PopupTheme {
        background: cow_borrowed!("white"),
        color: cow_borrowed!("black"),
        cross_fill: cow_borrowed!("rgb(40, 40, 40)"),
        width: cow_borrowed!("350"),
        height: cow_borrowed!("200"),
    },
};