mathshuttle 0.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mathshuttle/__init__.py +3 -0
- mathshuttle/__main__.py +343 -0
- mathshuttle/_clipboard_macos.py +235 -0
- mathshuttle/_clipboard_win32.py +199 -0
- mathshuttle/_hotkeys_macos.py +137 -0
- mathshuttle/app.py +1483 -0
- mathshuttle/clipboard.py +127 -0
- mathshuttle/compat.py +1537 -0
- mathshuttle/convert.py +496 -0
- mathshuttle/diagnose.py +184 -0
- mathshuttle/documents.py +903 -0
- mathshuttle/hotkeys.py +179 -0
- mathshuttle/latex_wrap.py +333 -0
- mathshuttle/office_html.py +234 -0
- mathshuttle/packs.py +610 -0
- mathshuttle/pandoc_engine.py +1732 -0
- mathshuttle/pandoc_fetch.py +325 -0
- mathshuttle/paths.py +19 -0
- mathshuttle/preview.py +232 -0
- mathshuttle/recall.py +337 -0
- mathshuttle/sv_theme/LICENSE +21 -0
- mathshuttle/sv_theme/sv.tcl +130 -0
- mathshuttle/sv_theme/theme/dark.tcl +465 -0
- mathshuttle/sv_theme/theme/light.tcl +469 -0
- mathshuttle/sv_theme/theme/sprites_dark.tcl +95 -0
- mathshuttle/sv_theme/theme/sprites_light.tcl +95 -0
- mathshuttle/sv_theme/theme/spritesheet_dark.png +0 -0
- mathshuttle/sv_theme/theme/spritesheet_light.png +0 -0
- mathshuttle/theme.py +127 -0
- mathshuttle/tidy.py +830 -0
- mathshuttle/wordexport.py +887 -0
- mathshuttle-0.8.0.dist-info/METADATA +113 -0
- mathshuttle-0.8.0.dist-info/RECORD +37 -0
- mathshuttle-0.8.0.dist-info/WHEEL +5 -0
- mathshuttle-0.8.0.dist-info/entry_points.txt +5 -0
- mathshuttle-0.8.0.dist-info/licenses/LICENSE +21 -0
- mathshuttle-0.8.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
source [file join [file dirname [info script]] sprites_light.tcl]
|
|
2
|
+
|
|
3
|
+
namespace eval ttk::theme::sv_light {
|
|
4
|
+
package provide ttk::theme::sv_light 2.5
|
|
5
|
+
|
|
6
|
+
array set colors {
|
|
7
|
+
-fg "#1c1c1c"
|
|
8
|
+
-bg "#fafafa"
|
|
9
|
+
-disfg "#a0a0a0"
|
|
10
|
+
-selfg "#ffffff"
|
|
11
|
+
-selbg "#2f60d8"
|
|
12
|
+
-accent "#005fb8"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
proc load_images {imgfile} {
|
|
16
|
+
variable I
|
|
17
|
+
image create photo spritesheet -file $imgfile -format png
|
|
18
|
+
foreach {name x y width height} $::spriteinfo {
|
|
19
|
+
set I($name) [image create photo -width $width -height $height]
|
|
20
|
+
$I($name) copy spritesheet -from $x $y [expr {$x+$width}] [expr {$y+$height}]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
load_images [file join [file dirname [info script]] spritesheet_light.png]
|
|
25
|
+
|
|
26
|
+
ttk::style theme create sun-valley-light -parent clam -settings {
|
|
27
|
+
|
|
28
|
+
# Button
|
|
29
|
+
ttk::style layout TButton {
|
|
30
|
+
Button.button -children {
|
|
31
|
+
Button.padding -children {
|
|
32
|
+
Button.label -side left -expand 1
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
ttk::style configure TButton -padding {8 2 8 3} -anchor center -foreground $colors(-fg)
|
|
38
|
+
ttk::style map TButton -foreground [list disabled "#a2a2a2" pressed "#636363" active "#1a1a1a"]
|
|
39
|
+
|
|
40
|
+
ttk::style element create Button.button image \
|
|
41
|
+
[list $I(button-rest) \
|
|
42
|
+
{selected disabled} $I(button-dis) \
|
|
43
|
+
disabled $I(button-dis) \
|
|
44
|
+
selected $I(button-rest) \
|
|
45
|
+
pressed $I(button-pressed) \
|
|
46
|
+
{active focus} $I(button-focus-hover) \
|
|
47
|
+
active $I(button-hover) \
|
|
48
|
+
focus $I(button-focus) \
|
|
49
|
+
] -border 4 -sticky nsew
|
|
50
|
+
|
|
51
|
+
# Toolbutton
|
|
52
|
+
ttk::style layout Toolbutton {
|
|
53
|
+
Toolbutton.button -children {
|
|
54
|
+
Toolbutton.padding -children {
|
|
55
|
+
Toolbutton.label -side left -expand 1
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
ttk::style configure Toolbutton -padding {8 2 8 3} -anchor center
|
|
61
|
+
|
|
62
|
+
ttk::style element create Toolbutton.button image \
|
|
63
|
+
[list $I(empty) \
|
|
64
|
+
disabled $I(button-dis) \
|
|
65
|
+
pressed $I(button-pressed) \
|
|
66
|
+
{active focus} $I(button-focus-hover) \
|
|
67
|
+
active $I(button-hover) \
|
|
68
|
+
focus $I(button-focus) \
|
|
69
|
+
] -border 4 -sticky nsew
|
|
70
|
+
|
|
71
|
+
# Accent.TButton
|
|
72
|
+
ttk::style layout Accent.TButton {
|
|
73
|
+
AccentButton.button -children {
|
|
74
|
+
AccentButton.padding -children {
|
|
75
|
+
AccentButton.label -side left -expand 1
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
ttk::style configure Accent.TButton -padding {8 2 8 3} -anchor center -foreground "#ffffff"
|
|
81
|
+
ttk::style map Accent.TButton -foreground [list pressed "#c1d8ee" disabled "#ffffff"]
|
|
82
|
+
|
|
83
|
+
ttk::style element create AccentButton.button image \
|
|
84
|
+
[list $I(button-accent-rest) \
|
|
85
|
+
{selected disabled} $I(button-accent-dis) \
|
|
86
|
+
disabled $I(button-accent-dis) \
|
|
87
|
+
selected $I(button-accent-rest) \
|
|
88
|
+
pressed $I(button-accent-pressed) \
|
|
89
|
+
{active focus} $I(button-accent-focus-hover) \
|
|
90
|
+
active $I(button-accent-hover) \
|
|
91
|
+
focus $I(button-accent-focus) \
|
|
92
|
+
] -border 4 -sticky nsew
|
|
93
|
+
|
|
94
|
+
# Menubutton
|
|
95
|
+
ttk::style layout TMenubutton {
|
|
96
|
+
Menubutton.button -children {
|
|
97
|
+
Menubutton.padding -children {
|
|
98
|
+
Menubutton.label -side left -expand 1
|
|
99
|
+
Menubutton.indicator -side right -sticky nsew
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ttk::style configure TMenubutton -padding {8 2 13 3}
|
|
105
|
+
|
|
106
|
+
ttk::style element create Menubutton.button image \
|
|
107
|
+
[list $I(button-rest) \
|
|
108
|
+
disabled $I(button-dis) \
|
|
109
|
+
pressed $I(button-pressed) \
|
|
110
|
+
{active focus} $I(button-focus-hover) \
|
|
111
|
+
active $I(button-hover) \
|
|
112
|
+
focus $I(button-focus) \
|
|
113
|
+
] -border 4 -sticky nsew
|
|
114
|
+
|
|
115
|
+
ttk::style element create Menubutton.indicator image $I(down) -width 10 -sticky e
|
|
116
|
+
|
|
117
|
+
# OptionMenu
|
|
118
|
+
ttk::style layout TOptionMenu {
|
|
119
|
+
OptionMenu.button -children {
|
|
120
|
+
OptionMenu.padding -children {
|
|
121
|
+
OptionMenu.label -side left -expand 1
|
|
122
|
+
OptionMenu.indicator -side right -sticky nsew
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
ttk::style configure TOptionMenu -padding {8 2 13 3}
|
|
128
|
+
|
|
129
|
+
ttk::style element create OptionMenu.button image \
|
|
130
|
+
[list $I(button-rest) \
|
|
131
|
+
disabled $I(button-dis) \
|
|
132
|
+
pressed $I(button-pressed) \
|
|
133
|
+
{active focus} $I(button-focus-hover) \
|
|
134
|
+
active $I(button-hover) \
|
|
135
|
+
focus $I(button-focus) \
|
|
136
|
+
] -border 4 -sticky nsew
|
|
137
|
+
|
|
138
|
+
ttk::style element create OptionMenu.indicator image $I(down) -width 10 -sticky e
|
|
139
|
+
|
|
140
|
+
# Checkbutton
|
|
141
|
+
ttk::style layout TCheckbutton {
|
|
142
|
+
Checkbutton.button -children {
|
|
143
|
+
Checkbutton.padding -children {
|
|
144
|
+
Checkbutton.indicator -side left
|
|
145
|
+
Checkbutton.label -side right -expand 1
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
ttk::style configure TCheckbutton -padding 4
|
|
151
|
+
|
|
152
|
+
ttk::style element create Checkbutton.indicator image \
|
|
153
|
+
[list $I(check-unsel-rest) \
|
|
154
|
+
{alternate disabled} $I(check-tri-dis) \
|
|
155
|
+
{selected disabled} $I(check-dis) \
|
|
156
|
+
disabled $I(check-unsel-dis) \
|
|
157
|
+
{pressed alternate} $I(check-tri-hover) \
|
|
158
|
+
{active focus alternate} $I(check-tri-focus-hover) \
|
|
159
|
+
{active alternate} $I(check-tri-hover) \
|
|
160
|
+
{focus alternate} $I(check-tri-focus) \
|
|
161
|
+
alternate $I(check-tri-rest) \
|
|
162
|
+
{pressed selected} $I(check-hover) \
|
|
163
|
+
{active focus selected} $I(check-focus-hover) \
|
|
164
|
+
{active selected} $I(check-hover) \
|
|
165
|
+
{focus selected} $I(check-focus) \
|
|
166
|
+
selected $I(check-rest) \
|
|
167
|
+
{pressed !selected} $I(check-unsel-pressed) \
|
|
168
|
+
{active focus} $I(check-unsel-focus-hover) \
|
|
169
|
+
active $I(check-unsel-hover) \
|
|
170
|
+
focus $I(check-unsel-focus) \
|
|
171
|
+
] -width 26 -sticky w
|
|
172
|
+
|
|
173
|
+
# Switch.TCheckbutton
|
|
174
|
+
ttk::style layout Switch.TCheckbutton {
|
|
175
|
+
Switch.button -children {
|
|
176
|
+
Switch.padding -children {
|
|
177
|
+
Switch.indicator -side left
|
|
178
|
+
Switch.label -side right -expand 1
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
ttk::style element create Switch.indicator image \
|
|
184
|
+
[list $I(switch-off-rest) \
|
|
185
|
+
{selected disabled} $I(switch-dis) \
|
|
186
|
+
disabled $I(switch-off-dis) \
|
|
187
|
+
{pressed selected} $I(switch-pressed) \
|
|
188
|
+
{active focus selected} $I(switch-focus-hover) \
|
|
189
|
+
{active selected} $I(switch-hover) \
|
|
190
|
+
{focus selected} $I(switch-focus) \
|
|
191
|
+
selected $I(switch-rest) \
|
|
192
|
+
{pressed !selected} $I(switch-off-pressed) \
|
|
193
|
+
{active focus} $I(switch-off-focus-hover) \
|
|
194
|
+
active $I(switch-off-hover) \
|
|
195
|
+
focus $I(switch-off-focus) \
|
|
196
|
+
] -width 46 -sticky w
|
|
197
|
+
|
|
198
|
+
# Toggle.TButton
|
|
199
|
+
ttk::style layout Toggle.TButton {
|
|
200
|
+
ToggleButton.button -children {
|
|
201
|
+
ToggleButton.padding -children {
|
|
202
|
+
ToggleButton.label -side left -expand 1
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
ttk::style configure Toggle.TButton -padding {8 2 8 3} -anchor center -foreground $colors(-fg)
|
|
208
|
+
|
|
209
|
+
ttk::style map Toggle.TButton -foreground \
|
|
210
|
+
[list {selected disabled} "#ffffff" \
|
|
211
|
+
{selected pressed} "#636363" \
|
|
212
|
+
selected "#ffffff" \
|
|
213
|
+
pressed "#c1d8ee" \
|
|
214
|
+
disabled "#a2a2a2" \
|
|
215
|
+
active "#1a1a1a"
|
|
216
|
+
]
|
|
217
|
+
|
|
218
|
+
ttk::style element create ToggleButton.button image \
|
|
219
|
+
[list $I(button-rest) \
|
|
220
|
+
{selected disabled} $I(button-accent-dis) \
|
|
221
|
+
disabled $I(button-dis) \
|
|
222
|
+
{pressed selected} $I(button-rest) \
|
|
223
|
+
{active focus selected} $I(button-accent-focus-hover) \
|
|
224
|
+
{active selected} $I(button-accent-hover) \
|
|
225
|
+
{focus selected} $I(button-accent-focus) \
|
|
226
|
+
selected $I(button-accent-rest) \
|
|
227
|
+
{pressed !selected} $I(button-accent-rest) \
|
|
228
|
+
{active focus} $I(button-focus-hover) \
|
|
229
|
+
active $I(button-hover) \
|
|
230
|
+
focus $I(button-focus) \
|
|
231
|
+
] -border 4 -sticky nsew
|
|
232
|
+
|
|
233
|
+
# Radiobutton
|
|
234
|
+
ttk::style layout TRadiobutton {
|
|
235
|
+
Radiobutton.button -children {
|
|
236
|
+
Radiobutton.padding -children {
|
|
237
|
+
Radiobutton.indicator -side left
|
|
238
|
+
Radiobutton.label -side right -expand 1
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
ttk::style configure TRadiobutton -padding 4
|
|
244
|
+
|
|
245
|
+
ttk::style element create Radiobutton.indicator image \
|
|
246
|
+
[list $I(radio-unsel-rest) \
|
|
247
|
+
{selected disabled} $I(radio-dis) \
|
|
248
|
+
disabled $I(radio-unsel-dis) \
|
|
249
|
+
{pressed selected} $I(radio-pressed) \
|
|
250
|
+
{active focus selected} $I(radio-focus-hover) \
|
|
251
|
+
{active selected} $I(radio-hover) \
|
|
252
|
+
{focus selected} $I(radio-focus) \
|
|
253
|
+
selected $I(radio-rest) \
|
|
254
|
+
{pressed !selected} $I(radio-unsel-pressed) \
|
|
255
|
+
{active focus} $I(radio-unsel-focus-hover) \
|
|
256
|
+
active $I(radio-unsel-hover) \
|
|
257
|
+
focus $I(radio-unsel-focus) \
|
|
258
|
+
] -width 26 -sticky w
|
|
259
|
+
|
|
260
|
+
# Entry
|
|
261
|
+
ttk::style configure TEntry -foreground $colors(-fg) -padding {6 1 4 2}
|
|
262
|
+
ttk::style map TEntry -foreground [list disabled $colors(-disfg) pressed "#636363" active "#626262"]
|
|
263
|
+
|
|
264
|
+
ttk::style element create Entry.field image \
|
|
265
|
+
[list $I(textbox-rest) \
|
|
266
|
+
{focus hover !invalid} $I(textbox-focus) \
|
|
267
|
+
invalid $I(textbox-error) \
|
|
268
|
+
disabled $I(textbox-dis) \
|
|
269
|
+
{focus !invalid} $I(textbox-focus) \
|
|
270
|
+
hover $I(textbox-hover) \
|
|
271
|
+
] -border 5 -sticky nsew
|
|
272
|
+
|
|
273
|
+
# Combobox
|
|
274
|
+
ttk::style layout TCombobox {
|
|
275
|
+
Combobox.field -sticky nsew -children {
|
|
276
|
+
Combobox.arrow -side right -sticky ns
|
|
277
|
+
Combobox.padding -sticky nsew -children {
|
|
278
|
+
Combobox.textarea -sticky nsew
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
ttk::style configure TCombobox -foreground $colors(-fg) -padding {6 1 0 2}
|
|
284
|
+
ttk::style configure ComboboxPopdownFrame -borderwidth 1 -relief solid
|
|
285
|
+
ttk::style map TCombobox -foreground [list disabled $colors(-disfg) pressed "#636363" active "#626262"]
|
|
286
|
+
|
|
287
|
+
ttk::style map TCombobox -selectbackground [list \
|
|
288
|
+
{readonly hover} $colors(-selbg) \
|
|
289
|
+
{readonly focus} $colors(-selbg) \
|
|
290
|
+
] -selectforeground [list \
|
|
291
|
+
{readonly hover} $colors(-selfg) \
|
|
292
|
+
{readonly focus} $colors(-selfg) \
|
|
293
|
+
]
|
|
294
|
+
|
|
295
|
+
ttk::style element create Combobox.field image \
|
|
296
|
+
[list $I(textbox-rest) \
|
|
297
|
+
{readonly focus} $I(button-focus) \
|
|
298
|
+
{readonly disabled} $I(button-dis) \
|
|
299
|
+
{readonly pressed} $I(button-pressed) \
|
|
300
|
+
{readonly hover} $I(button-hover) \
|
|
301
|
+
readonly $I(button-rest) \
|
|
302
|
+
{focus hover !invalid} $I(textbox-focus) \
|
|
303
|
+
invalid $I(textbox-error) \
|
|
304
|
+
disabled $I(textbox-dis) \
|
|
305
|
+
focus $I(textbox-focus) \
|
|
306
|
+
{focus !invalid} $I(textbox-focus) \
|
|
307
|
+
hover $I(textbox-hover) \
|
|
308
|
+
] -border 5
|
|
309
|
+
|
|
310
|
+
ttk::style element create Combobox.arrow image $I(down) -width 34 -sticky {}
|
|
311
|
+
|
|
312
|
+
# Spinbox
|
|
313
|
+
ttk::style layout TSpinbox {
|
|
314
|
+
Spinbox.field -side top -sticky we -children {
|
|
315
|
+
Spinbox.downarrow -side right -sticky ns
|
|
316
|
+
Spinbox.uparrow -side right -sticky ns
|
|
317
|
+
Spinbox.padding -sticky nswe -children {
|
|
318
|
+
Spinbox.textarea -sticky nsew
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
ttk::style configure TSpinbox -foreground $colors(-fg) -padding {6 1 0 2}
|
|
324
|
+
ttk::style map TSpinbox -foreground [list disabled $colors(-disfg) pressed "#636363" active "#626262"]
|
|
325
|
+
|
|
326
|
+
ttk::style element create Spinbox.field image \
|
|
327
|
+
[list $I(textbox-rest) \
|
|
328
|
+
{focus hover !invalid} $I(textbox-focus) \
|
|
329
|
+
invalid $I(textbox-error) \
|
|
330
|
+
disabled $I(textbox-dis) \
|
|
331
|
+
focus $I(textbox-focus) \
|
|
332
|
+
{focus !invalid} $I(textbox-focus) \
|
|
333
|
+
hover $I(textbox-hover) \
|
|
334
|
+
] -border 5 -sticky nsew
|
|
335
|
+
|
|
336
|
+
ttk::style element create Spinbox.uparrow image $I(up) -width 34 -height 16 -sticky {}
|
|
337
|
+
ttk::style element create Spinbox.downarrow image $I(down) -width 34 -height 16 -sticky {}
|
|
338
|
+
|
|
339
|
+
# Progressbar
|
|
340
|
+
ttk::style element create Horizontal.Progressbar.trough image $I(progressbar-trough-hor) \
|
|
341
|
+
-border 1 -sticky ew
|
|
342
|
+
ttk::style element create Horizontal.Progressbar.pbar image $I(progressbar-bar-hor) \
|
|
343
|
+
-border 2 -sticky ew
|
|
344
|
+
|
|
345
|
+
ttk::style element create Vertical.Progressbar.trough image $I(progressbar-trough-vert) \
|
|
346
|
+
-border 1 -sticky ns
|
|
347
|
+
ttk::style element create Vertical.Progressbar.pbar image $I(progressbar-bar-vert) \
|
|
348
|
+
-border 2 -sticky ns
|
|
349
|
+
|
|
350
|
+
# Scale
|
|
351
|
+
ttk::style element create Horizontal.Scale.trough image $I(slider-trough-hor) \
|
|
352
|
+
-border 5 -padding 0 -sticky {ew}
|
|
353
|
+
|
|
354
|
+
ttk::style element create Vertical.Scale.trough image $I(slider-trough-vert) \
|
|
355
|
+
-border 5 -padding 0 -sticky {ns}
|
|
356
|
+
|
|
357
|
+
ttk::style element create Scale.slider image \
|
|
358
|
+
[list $I(slider-thumb-rest) \
|
|
359
|
+
disabled $I(slider-thumb-dis) \
|
|
360
|
+
pressed $I(slider-thumb-pressed) \
|
|
361
|
+
{active focus} $I(slider-thumb-focus-hover) \
|
|
362
|
+
active $I(slider-thumb-hover) \
|
|
363
|
+
focus $I(slider-thumb-focus) \
|
|
364
|
+
] -sticky {}
|
|
365
|
+
|
|
366
|
+
# Scrollbar
|
|
367
|
+
ttk::style layout Vertical.TScrollbar {
|
|
368
|
+
Vertical.Scrollbar.trough -sticky ns -children {
|
|
369
|
+
Vertical.Scrollbar.uparrow -side top
|
|
370
|
+
Vertical.Scrollbar.downarrow -side bottom
|
|
371
|
+
Vertical.Scrollbar.thumb -expand 1
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
ttk::style layout Horizontal.TScrollbar {
|
|
376
|
+
Horizontal.Scrollbar.trough -sticky ew -children {
|
|
377
|
+
Horizontal.Scrollbar.leftarrow -side left
|
|
378
|
+
Horizontal.Scrollbar.rightarrow -side right
|
|
379
|
+
Horizontal.Scrollbar.thumb -expand 1
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
ttk::style element create Horizontal.Scrollbar.trough image $I(scrollbar-trough-hor) -sticky ew -border {6 0}
|
|
384
|
+
ttk::style element create Horizontal.Scrollbar.thumb image $I(scrollbar-thumb-hor) -sticky ew -border {3 0}
|
|
385
|
+
|
|
386
|
+
ttk::style element create Horizontal.Scrollbar.rightarrow image $I(scrollbar-right) -sticky e -width 13
|
|
387
|
+
ttk::style element create Horizontal.Scrollbar.leftarrow image $I(scrollbar-left) -sticky w -width 13
|
|
388
|
+
|
|
389
|
+
ttk::style element create Vertical.Scrollbar.trough image $I(scrollbar-trough-vert) -sticky ns -border {0 6}
|
|
390
|
+
ttk::style element create Vertical.Scrollbar.thumb image $I(scrollbar-thumb-vert) -sticky ns -border {0 3}
|
|
391
|
+
|
|
392
|
+
ttk::style element create Vertical.Scrollbar.uparrow image $I(scrollbar-up) -sticky n -height 13
|
|
393
|
+
ttk::style element create Vertical.Scrollbar.downarrow image $I(scrollbar-down) -sticky s -height 13
|
|
394
|
+
|
|
395
|
+
# Separator
|
|
396
|
+
ttk::style element create Separator.separator image $I(sep) -width 1 -height 1
|
|
397
|
+
|
|
398
|
+
# Sizegrip
|
|
399
|
+
ttk::style element create Sizegrip.sizegrip image $I(grip) -sticky nsew
|
|
400
|
+
|
|
401
|
+
# Card
|
|
402
|
+
ttk::style layout Card.TFrame {
|
|
403
|
+
Card.field {
|
|
404
|
+
Card.padding -expand 1
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
ttk::style element create Card.field image $I(card) -border 10 -padding 4 -sticky nsew
|
|
409
|
+
|
|
410
|
+
# Labelframe
|
|
411
|
+
ttk::style layout TLabelframe {
|
|
412
|
+
Labelframe.border {
|
|
413
|
+
Labelframe.padding -expand 1 -children {
|
|
414
|
+
Labelframe.label -side left
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
ttk::style element create Labelframe.border image $I(card) -border 5 -padding 4 -sticky nsew
|
|
420
|
+
ttk::style configure TLabelframe.Label -font SunValleyCaptionFont
|
|
421
|
+
|
|
422
|
+
# Notebook
|
|
423
|
+
ttk::style layout TNotebook {
|
|
424
|
+
Notebook.border -children {
|
|
425
|
+
TNotebook.Tab -expand 1
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
ttk::style configure TNotebook -padding 1
|
|
430
|
+
ttk::style configure TNotebook.Tab -focuscolor $colors(-accent)
|
|
431
|
+
ttk::style element create Notebook.border image $I(notebook-border) -border 5 -padding 5
|
|
432
|
+
|
|
433
|
+
ttk::style element create Notebook.tab image \
|
|
434
|
+
[list $I(tab-rest) \
|
|
435
|
+
selected $I(tab-selected) \
|
|
436
|
+
active $I(tab-hover) \
|
|
437
|
+
] -border 13 -padding {16 14 16 6} -height 32
|
|
438
|
+
|
|
439
|
+
# Treeview
|
|
440
|
+
ttk::style configure Heading -font SunValleyCaptionFont
|
|
441
|
+
ttk::style configure Treeview \
|
|
442
|
+
-background $colors(-bg) \
|
|
443
|
+
-rowheight [expr {[font metrics SunValleyBodyFont -linespace] + 3}] \
|
|
444
|
+
-font SunValleyBodyFont
|
|
445
|
+
|
|
446
|
+
ttk::style map Treeview -background {selected "#e7e7e7"} -foreground {selected "#191919"}
|
|
447
|
+
|
|
448
|
+
ttk::style element create Treeview.field image $I(card) -border 5 -width 0 -height 0
|
|
449
|
+
ttk::style element create Treeheading.cell image \
|
|
450
|
+
[list $I(heading-rest) \
|
|
451
|
+
pressed $I(heading-pressed) \
|
|
452
|
+
active $I(heading-hover)
|
|
453
|
+
] -border 5 -padding 14 -sticky nsew
|
|
454
|
+
|
|
455
|
+
ttk::style element create Treeitem.indicator image \
|
|
456
|
+
[list $I(right) \
|
|
457
|
+
user2 $I(empty) \
|
|
458
|
+
user1 $I(down) \
|
|
459
|
+
] -width 26 -sticky {}
|
|
460
|
+
|
|
461
|
+
# Panedwindow
|
|
462
|
+
ttk::style configure Sash \
|
|
463
|
+
-lightcolor "#676767" \
|
|
464
|
+
-darkcolor "#676767" \
|
|
465
|
+
-bordercolor "#676767" \
|
|
466
|
+
-sashthickness 4 \
|
|
467
|
+
-gripcount 20
|
|
468
|
+
}
|
|
469
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
set ::spriteinfo [list \
|
|
2
|
+
card 0 0 50 50 \
|
|
3
|
+
notebook-border 50 0 40 40 \
|
|
4
|
+
switch-dis 50 40 40 20 \
|
|
5
|
+
switch-focus-hover 0 50 40 20 \
|
|
6
|
+
switch-focus 0 70 40 20 \
|
|
7
|
+
switch-hover 40 60 40 20 \
|
|
8
|
+
switch-off-dis 90 0 40 20 \
|
|
9
|
+
switch-off-focus-hover 90 20 40 20 \
|
|
10
|
+
switch-off-focus 90 40 40 20 \
|
|
11
|
+
switch-off-hover 80 60 40 20 \
|
|
12
|
+
switch-off-pressed 0 90 40 20 \
|
|
13
|
+
switch-off-rest 40 80 40 20 \
|
|
14
|
+
switch-pressed 80 80 40 20 \
|
|
15
|
+
switch-rest 0 110 40 20 \
|
|
16
|
+
tab-hover 130 0 32 32 \
|
|
17
|
+
tab-rest 130 32 32 32 \
|
|
18
|
+
tab-selected 120 64 32 32 \
|
|
19
|
+
heading-hover 40 100 22 22 \
|
|
20
|
+
heading-pressed 62 100 22 22 \
|
|
21
|
+
heading-rest 84 100 22 22 \
|
|
22
|
+
slider-thumb-dis 106 100 22 22 \
|
|
23
|
+
slider-thumb-focus-hover 128 96 22 22 \
|
|
24
|
+
slider-thumb-focus 0 130 22 22 \
|
|
25
|
+
slider-thumb-hover 22 130 22 22 \
|
|
26
|
+
slider-thumb-pressed 44 122 22 22 \
|
|
27
|
+
slider-thumb-rest 66 122 22 22 \
|
|
28
|
+
slider-trough-hor 88 122 22 22 \
|
|
29
|
+
slider-trough-vert 110 122 22 22 \
|
|
30
|
+
button-accent-dis 132 118 20 20 \
|
|
31
|
+
button-accent-focus-hover 0 152 20 20 \
|
|
32
|
+
button-accent-focus 20 152 20 20 \
|
|
33
|
+
button-accent-hover 40 152 20 20 \
|
|
34
|
+
button-accent-pressed 60 144 20 20 \
|
|
35
|
+
button-accent-rest 80 144 20 20 \
|
|
36
|
+
button-dis 100 144 20 20 \
|
|
37
|
+
button-focus-hover 120 144 20 20 \
|
|
38
|
+
button-focus 140 138 20 20 \
|
|
39
|
+
button-hover 162 0 20 20 \
|
|
40
|
+
button-pressed 162 20 20 20 \
|
|
41
|
+
button-rest 162 40 20 20 \
|
|
42
|
+
check-dis 162 60 20 20 \
|
|
43
|
+
check-focus-hover 150 96 20 20 \
|
|
44
|
+
check-focus 152 116 20 20 \
|
|
45
|
+
check-hover 160 136 20 20 \
|
|
46
|
+
check-pressed 0 172 20 20 \
|
|
47
|
+
check-rest 20 172 20 20 \
|
|
48
|
+
check-tri-dis 40 172 20 20 \
|
|
49
|
+
check-tri-focus-hover 160 156 20 20 \
|
|
50
|
+
check-tri-focus 140 158 20 20 \
|
|
51
|
+
check-tri-hover 60 164 20 20 \
|
|
52
|
+
check-tri-pressed 80 164 20 20 \
|
|
53
|
+
check-tri-rest 100 164 20 20 \
|
|
54
|
+
check-unsel-dis 120 164 20 20 \
|
|
55
|
+
check-unsel-focus-hover 182 0 20 20 \
|
|
56
|
+
check-unsel-focus 182 20 20 20 \
|
|
57
|
+
check-unsel-hover 182 40 20 20 \
|
|
58
|
+
check-unsel-pressed 182 60 20 20 \
|
|
59
|
+
check-unsel-rest 180 80 20 20 \
|
|
60
|
+
progressbar-bar-hor 180 100 20 5 \
|
|
61
|
+
progressbar-bar-vert 172 80 5 20 \
|
|
62
|
+
progressbar-trough-hor 152 80 20 5 \
|
|
63
|
+
progressbar-trough-vert 172 100 5 20 \
|
|
64
|
+
radio-dis 180 105 20 20 \
|
|
65
|
+
radio-focus-hover 180 125 20 20 \
|
|
66
|
+
radio-focus 180 145 20 20 \
|
|
67
|
+
radio-hover 180 165 20 20 \
|
|
68
|
+
radio-pressed 160 176 20 20 \
|
|
69
|
+
radio-rest 140 178 20 20 \
|
|
70
|
+
radio-unsel-dis 0 192 20 20 \
|
|
71
|
+
radio-unsel-focus-hover 20 192 20 20 \
|
|
72
|
+
radio-unsel-focus 40 192 20 20 \
|
|
73
|
+
radio-unsel-hover 180 185 20 20 \
|
|
74
|
+
radio-unsel-pressed 60 184 20 20 \
|
|
75
|
+
radio-unsel-rest 80 184 20 20 \
|
|
76
|
+
scrollbar-thumb-hor 160 196 20 12 \
|
|
77
|
+
scrollbar-thumb-vert 100 184 12 20 \
|
|
78
|
+
scrollbar-trough-hor 112 198 20 12 \
|
|
79
|
+
scrollbar-trough-vert 202 0 12 20 \
|
|
80
|
+
textbox-dis 0 212 20 20 \
|
|
81
|
+
textbox-error 20 212 20 20 \
|
|
82
|
+
textbox-focus 40 212 20 20 \
|
|
83
|
+
textbox-hover 60 210 20 20 \
|
|
84
|
+
textbox-rest 80 210 20 20 \
|
|
85
|
+
down 40 50 10 5 \
|
|
86
|
+
empty 152 64 10 10 \
|
|
87
|
+
grip 152 85 10 10 \
|
|
88
|
+
right 162 85 5 10 \
|
|
89
|
+
sep 202 20 10 10 \
|
|
90
|
+
up 40 55 10 5 \
|
|
91
|
+
scrollbar-down 132 138 8 6 \
|
|
92
|
+
scrollbar-left 44 144 6 8 \
|
|
93
|
+
scrollbar-right 50 144 6 8 \
|
|
94
|
+
scrollbar-up 172 120 8 6 \
|
|
95
|
+
]
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
set ::spriteinfo [list \
|
|
2
|
+
card 0 0 50 50 \
|
|
3
|
+
notebook-border 50 0 40 40 \
|
|
4
|
+
switch-dis 50 40 40 20 \
|
|
5
|
+
switch-focus-hover 0 50 40 20 \
|
|
6
|
+
switch-focus 0 70 40 20 \
|
|
7
|
+
switch-hover 40 60 40 20 \
|
|
8
|
+
switch-off-dis 90 0 40 20 \
|
|
9
|
+
switch-off-focus-hover 90 20 40 20 \
|
|
10
|
+
switch-off-focus 90 40 40 20 \
|
|
11
|
+
switch-off-hover 80 60 40 20 \
|
|
12
|
+
switch-off-pressed 0 90 40 20 \
|
|
13
|
+
switch-off-rest 40 80 40 20 \
|
|
14
|
+
switch-pressed 80 80 40 20 \
|
|
15
|
+
switch-rest 0 110 40 20 \
|
|
16
|
+
tab-hover 130 0 32 32 \
|
|
17
|
+
tab-rest 130 32 32 32 \
|
|
18
|
+
tab-selected 120 64 32 32 \
|
|
19
|
+
heading-hover 40 100 22 22 \
|
|
20
|
+
heading-pressed 62 100 22 22 \
|
|
21
|
+
heading-rest 84 100 22 22 \
|
|
22
|
+
slider-thumb-dis 106 100 22 22 \
|
|
23
|
+
slider-thumb-focus-hover 128 96 22 22 \
|
|
24
|
+
slider-thumb-focus 0 130 22 22 \
|
|
25
|
+
slider-thumb-hover 22 130 22 22 \
|
|
26
|
+
slider-thumb-pressed 44 122 22 22 \
|
|
27
|
+
slider-thumb-rest 66 122 22 22 \
|
|
28
|
+
slider-trough-hor 88 122 22 22 \
|
|
29
|
+
slider-trough-vert 110 122 22 22 \
|
|
30
|
+
button-accent-dis 132 118 20 20 \
|
|
31
|
+
button-accent-focus-hover 0 152 20 20 \
|
|
32
|
+
button-accent-focus 20 152 20 20 \
|
|
33
|
+
button-accent-hover 40 152 20 20 \
|
|
34
|
+
button-accent-pressed 60 144 20 20 \
|
|
35
|
+
button-accent-rest 80 144 20 20 \
|
|
36
|
+
button-dis 100 144 20 20 \
|
|
37
|
+
button-focus-hover 120 144 20 20 \
|
|
38
|
+
button-focus 140 138 20 20 \
|
|
39
|
+
button-hover 162 0 20 20 \
|
|
40
|
+
button-pressed 162 20 20 20 \
|
|
41
|
+
button-rest 162 40 20 20 \
|
|
42
|
+
check-dis 162 60 20 20 \
|
|
43
|
+
check-focus-hover 150 96 20 20 \
|
|
44
|
+
check-focus 152 116 20 20 \
|
|
45
|
+
check-hover 160 136 20 20 \
|
|
46
|
+
check-pressed 0 172 20 20 \
|
|
47
|
+
check-rest 20 172 20 20 \
|
|
48
|
+
check-tri-dis 40 172 20 20 \
|
|
49
|
+
check-tri-focus-hover 160 156 20 20 \
|
|
50
|
+
check-tri-focus 140 158 20 20 \
|
|
51
|
+
check-tri-hover 60 164 20 20 \
|
|
52
|
+
check-tri-pressed 80 164 20 20 \
|
|
53
|
+
check-tri-rest 100 164 20 20 \
|
|
54
|
+
check-unsel-dis 120 164 20 20 \
|
|
55
|
+
check-unsel-focus-hover 182 0 20 20 \
|
|
56
|
+
check-unsel-focus 182 20 20 20 \
|
|
57
|
+
check-unsel-hover 182 40 20 20 \
|
|
58
|
+
check-unsel-pressed 182 60 20 20 \
|
|
59
|
+
check-unsel-rest 180 80 20 20 \
|
|
60
|
+
progressbar-bar-hor 180 100 20 5 \
|
|
61
|
+
progressbar-bar-vert 172 80 5 20 \
|
|
62
|
+
progressbar-trough-hor 152 80 20 5 \
|
|
63
|
+
progressbar-trough-vert 172 100 5 20 \
|
|
64
|
+
radio-dis 180 105 20 20 \
|
|
65
|
+
radio-focus-hover 180 125 20 20 \
|
|
66
|
+
radio-focus 180 145 20 20 \
|
|
67
|
+
radio-hover 180 165 20 20 \
|
|
68
|
+
radio-pressed 160 176 20 20 \
|
|
69
|
+
radio-rest 140 178 20 20 \
|
|
70
|
+
radio-unsel-dis 0 192 20 20 \
|
|
71
|
+
radio-unsel-focus-hover 20 192 20 20 \
|
|
72
|
+
radio-unsel-focus 40 192 20 20 \
|
|
73
|
+
radio-unsel-hover 180 185 20 20 \
|
|
74
|
+
radio-unsel-pressed 60 184 20 20 \
|
|
75
|
+
radio-unsel-rest 80 184 20 20 \
|
|
76
|
+
scrollbar-thumb-hor 160 196 20 12 \
|
|
77
|
+
scrollbar-thumb-vert 100 184 12 20 \
|
|
78
|
+
scrollbar-trough-hor 112 198 20 12 \
|
|
79
|
+
scrollbar-trough-vert 202 0 12 20 \
|
|
80
|
+
textbox-dis 0 212 20 20 \
|
|
81
|
+
textbox-error 20 212 20 20 \
|
|
82
|
+
textbox-focus 40 212 20 20 \
|
|
83
|
+
textbox-hover 60 210 20 20 \
|
|
84
|
+
textbox-rest 80 210 20 20 \
|
|
85
|
+
down 40 50 10 5 \
|
|
86
|
+
empty 152 64 10 10 \
|
|
87
|
+
grip 152 85 10 10 \
|
|
88
|
+
right 162 85 5 10 \
|
|
89
|
+
sep 202 20 10 10 \
|
|
90
|
+
up 40 55 10 5 \
|
|
91
|
+
scrollbar-down 132 138 8 6 \
|
|
92
|
+
scrollbar-left 44 144 6 8 \
|
|
93
|
+
scrollbar-right 50 144 6 8 \
|
|
94
|
+
scrollbar-up 172 120 8 6 \
|
|
95
|
+
]
|
|
Binary file
|
|
Binary file
|