-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustomtkinter.tera
More file actions
177 lines (177 loc) · 7.46 KB
/
Copy pathcustomtkinter.tera
File metadata and controls
177 lines (177 loc) · 7.46 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
---
whiskers:
version: "^2.5.1"
matrix:
- flavor
- accent
filename: "themes/{{ flavor.identifier }}/catppuccin-{{ flavor.identifier }}-{{ accent }}.json"
hex_format: "#{{R}}{{G}}{{B}}{{Z}}"
font:
size: 13
weight: "normal"
macos: "SF Display"
windows: "Roboto"
linux: "Roboto"
---
{%- set dark = flavor -%}
{%- set light = flavors.latte -%}
{%- set darkAccent = flavor.colors[accent] | sub(lightness=5) -%}
{%- set darkerAccent = flavor.colors[accent] | sub(lightness=10) -%}
{%- set lightAccent = light.colors[accent] -%}
{%- set lightDarkAccent = lightAccent | sub(lightness=5) -%}
{%- set lightDarkerAccent = lightAccent | sub(lightness=10) -%}
{
"CTk": {
"fg_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"]
},
"CTkToplevel": {
"fg_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"]
},
"CTkFrame": {
"corner_radius": 6,
"border_width": 0,
"fg_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"],
"top_fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"border_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkButton": {
"corner_radius": 6,
"border_width": 0,
"fg_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"hover_color": ["{{ lightDarkAccent.hex }}", "{{ darkAccent.hex }}"],
"border_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"],
"text_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"],
"text_color_disabled": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkLabel": {
"corner_radius": 0,
"fg_color": "transparent",
"text_color": ["{{ light.colors.text.hex }}", "{{ text.hex }}"]
},
"CTkEntry": {
"corner_radius": 6,
"border_width": 2,
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"border_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"],
"text_color":["{{ light.colors.text.hex }}", "{{ text.hex }}"],
"placeholder_text_color": ["{{ light.colors.overlay1.hex }}", "{{ overlay1.hex }}"]
},
"CTkCheckBox": {
"corner_radius": 6,
"border_width": 3,
"fg_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"border_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"],
"hover_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"checkmark_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"],
"text_color": ["{{ light.colors.text.hex }}", "{{ text.hex }}"],
"text_color_disabled": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkSwitch": {
"corner_radius": 1000,
"border_width": 3,
"button_length": 0,
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"progress_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"button_color": ["{{ light.colors.subtext0.hex }}", "{{ subtext0.hex }}"],
"button_hover_color": ["{{ light.colors.subtext1.hex }}", "{{ subtext1.hex }}"],
"text_color": ["{{ light.colors.text.hex }}", "{{ text.hex }}"],
"text_color_disabled": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkRadioButton": {
"corner_radius": 1000,
"border_width_checked": 6,
"border_width_unchecked": 3,
"fg_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"border_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"],
"hover_color": ["{{ lightDarkAccent.hex }}", "{{ darkAccent.hex }}"],
"text_color": ["{{ light.colors.text.hex }}", "{{ text.hex }}"],
"text_color_disabled": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkProgressBar": {
"corner_radius": 1000,
"border_width": 0,
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"progress_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"border_color": ["{{ light.colors.crust.hex }}", "{{ crust.hex }}"]
},
"CTkSlider": {
"corner_radius": 1000,
"button_corner_radius": 1000,
"border_width": 6,
"button_length": 0,
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"progress_color": ["{{ light.colors.subtext0.hex }}", "{{ subtext0.hex }}"],
"button_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"button_hover_color": ["{{ lightDarkAccent.hex }}", "{{ darkAccent.hex }}"]
},
"CTkOptionMenu": {
"corner_radius": 6,
"fg_color": ["{{ light.colors[accent].hex }}", "{{ flavor.colors[accent].hex }}"],
"button_color": ["{{ lightDarkAccent.hex }}", "{{ darkAccent.hex }}"],
"button_hover_color": ["{{ lightDarkerAccent.hex }}", "{{ darkerAccent.hex }}"],
"text_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"],
"text_color_disabled": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkComboBox": {
"corner_radius": 6,
"border_width": 2,
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"border_color": ["{{ light.colors.surface0.hex }}", "{{ surface0.hex }}"],
"button_color": ["{{ light.colors.surface0.hex }}", "{{ surface0.hex }}"],
"button_hover_color": ["{{ light.colors.surface1.hex }}", "{{ surface1.hex }}"],
"text_color": ["{{ light.colors.text.hex }}", "{{ text.hex }}"],
"text_color_disabled": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkScrollbar": {
"corner_radius": 1000,
"border_spacing": 4,
"fg_color": "transparent",
"button_color": ["{{ light.colors.surface2.hex }}", "{{ surface2.hex }}"],
"button_hover_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkSegmentedButton": {
"corner_radius": 6,
"border_width": 2,
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"selected_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"],
"selected_hover_color": ["{{ light.colors.base.hex }}", "{{ base.hex }}"],
"unselected_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"unselected_hover_color": ["{{ light.colors.surface0.hex }}", "{{ surface0.hex }}"],
"text_color": ["{{ light.colors.text.hex }}", "{{ text.hex }}"],
"text_color_disabled": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkTextbox": {
"corner_radius": 6,
"border_width": 0,
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"border_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"],
"text_color":["{{ light.colors.text.hex }}", "{{ text.hex }}"],
"scrollbar_button_color": ["{{ light.colors.surface2.hex }}", "{{ surface2.hex }}"],
"scrollbar_button_hover_color": ["{{ light.colors.overlay0.hex }}", "{{ overlay0.hex }}"]
},
"CTkScrollableFrame": {
"label_fg_color": ["{{ light.colors.surface0.hex }}", "{{ surface0.hex }}"]
},
"DropdownMenu": {
"fg_color": ["{{ light.colors.mantle.hex }}", "{{ mantle.hex }}"],
"hover_color": ["{{ light.colors.surface0.hex }}", "{{ surface0.hex }}"],
"text_color": ["{{ light.colors.text.hex }}", "{{ text.hex }}"]
},
"CTkFont": {
"macOS": {
"family": "{{ font.macos }}",
"size": {{ font.size }},
"weight": "{{ font.weight }}"
},
"Windows": {
"family": "{{ font.windows }}",
"size": {{ font.size }},
"weight": "{{ font.weight }}"
},
"Linux": {
"family": "{{ font.linux }}",
"size": {{ font.size }},
"weight": "{{ font.weight }}"
}
}
}