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,465 @@
|
|
|
1
|
+
source [file join [file dirname [info script]] sprites_dark.tcl]
|
|
2
|
+
|
|
3
|
+
namespace eval ttk::theme::sv_dark {
|
|
4
|
+
package provide ttk::theme::sv_dark 2.5
|
|
5
|
+
|
|
6
|
+
array set colors {
|
|
7
|
+
-fg "#fafafa"
|
|
8
|
+
-bg "#1c1c1c"
|
|
9
|
+
-disfg "#595959"
|
|
10
|
+
-selfg "#ffffff"
|
|
11
|
+
-selbg "#2f60d8"
|
|
12
|
+
-accent "#57c8ff"
|
|
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_dark.png]
|
|
25
|
+
|
|
26
|
+
ttk::style theme create sun-valley-dark -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 "#7a7a7a" pressed "#d0d0d0"]
|
|
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 "#000000"
|
|
81
|
+
ttk::style map Accent.TButton -foreground [list pressed "#25536a" disabled "#a5a5a5"]
|
|
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} "#a5a5a5" \
|
|
211
|
+
{selected pressed} "#d0d0d0" \
|
|
212
|
+
selected "#000000" \
|
|
213
|
+
pressed "#25536a" \
|
|
214
|
+
disabled "#7a7a7a"
|
|
215
|
+
]
|
|
216
|
+
|
|
217
|
+
ttk::style element create ToggleButton.button image \
|
|
218
|
+
[list $I(button-rest) \
|
|
219
|
+
{selected disabled} $I(button-accent-dis) \
|
|
220
|
+
disabled $I(button-dis) \
|
|
221
|
+
{pressed selected} $I(button-rest) \
|
|
222
|
+
{active focus selected} $I(button-accent-focus-hover) \
|
|
223
|
+
{active selected} $I(button-accent-hover) \
|
|
224
|
+
{focus selected} $I(button-accent-focus) \
|
|
225
|
+
selected $I(button-accent-rest) \
|
|
226
|
+
{pressed !selected} $I(button-accent-rest) \
|
|
227
|
+
{active focus} $I(button-focus-hover) \
|
|
228
|
+
active $I(button-hover) \
|
|
229
|
+
focus $I(button-focus) \
|
|
230
|
+
] -border 4 -sticky nsew
|
|
231
|
+
|
|
232
|
+
# Radiobutton
|
|
233
|
+
ttk::style layout TRadiobutton {
|
|
234
|
+
Radiobutton.button -children {
|
|
235
|
+
Radiobutton.padding -children {
|
|
236
|
+
Radiobutton.indicator -side left
|
|
237
|
+
Radiobutton.label -side right -expand 1
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
ttk::style configure TRadiobutton -padding 4
|
|
243
|
+
|
|
244
|
+
ttk::style element create Radiobutton.indicator image \
|
|
245
|
+
[list $I(radio-unsel-rest) \
|
|
246
|
+
{selected disabled} $I(radio-dis) \
|
|
247
|
+
disabled $I(radio-unsel-dis) \
|
|
248
|
+
{pressed selected} $I(radio-pressed) \
|
|
249
|
+
{active focus selected} $I(radio-focus-hover) \
|
|
250
|
+
{active selected} $I(radio-hover) \
|
|
251
|
+
{focus selected} $I(radio-focus) \
|
|
252
|
+
selected $I(radio-rest) \
|
|
253
|
+
{pressed !selected} $I(radio-unsel-pressed) \
|
|
254
|
+
{active focus} $I(radio-unsel-focus-hover) \
|
|
255
|
+
active $I(radio-unsel-hover) \
|
|
256
|
+
focus $I(radio-unsel-focus) \
|
|
257
|
+
] -width 26 -sticky w
|
|
258
|
+
|
|
259
|
+
# Entry
|
|
260
|
+
ttk::style configure TEntry -foreground $colors(-fg) -padding {6 1 4 2}
|
|
261
|
+
ttk::style map TEntry -foreground [list disabled "#757575" pressed "#cfcfcf"]
|
|
262
|
+
|
|
263
|
+
ttk::style element create Entry.field image \
|
|
264
|
+
[list $I(textbox-rest) \
|
|
265
|
+
{focus hover !invalid} $I(textbox-focus) \
|
|
266
|
+
invalid $I(textbox-error) \
|
|
267
|
+
disabled $I(textbox-dis) \
|
|
268
|
+
{focus !invalid} $I(textbox-focus) \
|
|
269
|
+
hover $I(textbox-hover) \
|
|
270
|
+
] -border 5 -sticky nsew
|
|
271
|
+
|
|
272
|
+
# Combobox
|
|
273
|
+
ttk::style layout TCombobox {
|
|
274
|
+
Combobox.field -sticky nsew -children {
|
|
275
|
+
Combobox.arrow -side right -sticky ns
|
|
276
|
+
Combobox.padding -sticky nsew -children {
|
|
277
|
+
Combobox.textarea -sticky nsew
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
ttk::style configure TCombobox -foreground $colors(-fg) -padding {6 1 0 2}
|
|
283
|
+
ttk::style configure ComboboxPopdownFrame -borderwidth 1 -relief solid
|
|
284
|
+
ttk::style map TCombobox -foreground [list disabled "#757575" pressed "#cfcfcf"]
|
|
285
|
+
|
|
286
|
+
ttk::style map TCombobox -selectbackground [list \
|
|
287
|
+
{readonly hover} $colors(-selbg) \
|
|
288
|
+
{readonly focus} $colors(-selbg) \
|
|
289
|
+
] -selectforeground [list \
|
|
290
|
+
{readonly hover} $colors(-selfg) \
|
|
291
|
+
{readonly focus} $colors(-selfg) \
|
|
292
|
+
]
|
|
293
|
+
|
|
294
|
+
ttk::style element create Combobox.field image \
|
|
295
|
+
[list $I(textbox-rest) \
|
|
296
|
+
{readonly focus} $I(button-focus) \
|
|
297
|
+
{readonly disabled} $I(button-dis) \
|
|
298
|
+
{readonly pressed} $I(button-pressed) \
|
|
299
|
+
{readonly hover} $I(button-hover) \
|
|
300
|
+
readonly $I(button-rest) \
|
|
301
|
+
{focus hover !invalid} $I(textbox-focus) \
|
|
302
|
+
invalid $I(textbox-error) \
|
|
303
|
+
disabled $I(textbox-dis) \
|
|
304
|
+
focus $I(textbox-focus) \
|
|
305
|
+
{focus !invalid} $I(textbox-focus) \
|
|
306
|
+
hover $I(textbox-hover) \
|
|
307
|
+
] -border 5
|
|
308
|
+
|
|
309
|
+
ttk::style element create Combobox.arrow image $I(down) -width 34 -sticky {}
|
|
310
|
+
|
|
311
|
+
# Spinbox
|
|
312
|
+
ttk::style layout TSpinbox {
|
|
313
|
+
Spinbox.field -side top -sticky we -children {
|
|
314
|
+
Spinbox.downarrow -side right -sticky ns
|
|
315
|
+
Spinbox.uparrow -side right -sticky ns
|
|
316
|
+
Spinbox.padding -sticky nswe -children {
|
|
317
|
+
Spinbox.textarea -sticky nsew
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
ttk::style configure TSpinbox -foreground $colors(-fg) -padding {6 1 0 2}
|
|
323
|
+
ttk::style map TSpinbox -foreground [list disabled "#757575" pressed "#cfcfcf"]
|
|
324
|
+
|
|
325
|
+
ttk::style element create Spinbox.field image \
|
|
326
|
+
[list $I(textbox-rest) \
|
|
327
|
+
{focus hover !invalid} $I(textbox-focus) \
|
|
328
|
+
invalid $I(textbox-error) \
|
|
329
|
+
disabled $I(textbox-dis) \
|
|
330
|
+
focus $I(textbox-focus) \
|
|
331
|
+
{focus !invalid} $I(textbox-focus) \
|
|
332
|
+
hover $I(textbox-hover) \
|
|
333
|
+
] -border 5 -sticky nsew
|
|
334
|
+
|
|
335
|
+
ttk::style element create Spinbox.uparrow image $I(up) -width 34 -height 16 -sticky {}
|
|
336
|
+
ttk::style element create Spinbox.downarrow image $I(down) -width 34 -height 16 -sticky {}
|
|
337
|
+
|
|
338
|
+
# Progressbar
|
|
339
|
+
ttk::style element create Horizontal.Progressbar.trough image $I(progressbar-trough-hor) -border 1 -sticky ew
|
|
340
|
+
ttk::style element create Horizontal.Progressbar.pbar image $I(progressbar-bar-hor) -border 2 -sticky ew
|
|
341
|
+
|
|
342
|
+
ttk::style element create Vertical.Progressbar.trough image $I(progressbar-trough-vert) -border 1 -sticky ns
|
|
343
|
+
ttk::style element create Vertical.Progressbar.pbar image $I(progressbar-bar-vert) -border 2 -sticky ns
|
|
344
|
+
|
|
345
|
+
# Scale
|
|
346
|
+
ttk::style element create Horizontal.Scale.trough image $I(slider-trough-hor) \
|
|
347
|
+
-border 5 -padding 0 -sticky {ew}
|
|
348
|
+
|
|
349
|
+
ttk::style element create Vertical.Scale.trough image $I(slider-trough-vert) \
|
|
350
|
+
-border 5 -padding 0 -sticky {ns}
|
|
351
|
+
|
|
352
|
+
ttk::style element create Scale.slider image \
|
|
353
|
+
[list $I(slider-thumb-rest) \
|
|
354
|
+
disabled $I(slider-thumb-dis) \
|
|
355
|
+
pressed $I(slider-thumb-pressed) \
|
|
356
|
+
{active focus} $I(slider-thumb-focus-hover) \
|
|
357
|
+
active $I(slider-thumb-hover) \
|
|
358
|
+
focus $I(slider-thumb-focus) \
|
|
359
|
+
] -sticky {}
|
|
360
|
+
|
|
361
|
+
# Scrollbar
|
|
362
|
+
ttk::style layout Vertical.TScrollbar {
|
|
363
|
+
Vertical.Scrollbar.trough -sticky ns -children {
|
|
364
|
+
Vertical.Scrollbar.uparrow -side top
|
|
365
|
+
Vertical.Scrollbar.downarrow -side bottom
|
|
366
|
+
Vertical.Scrollbar.thumb -expand 1
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
ttk::style layout Horizontal.TScrollbar {
|
|
371
|
+
Horizontal.Scrollbar.trough -sticky ew -children {
|
|
372
|
+
Horizontal.Scrollbar.leftarrow -side left
|
|
373
|
+
Horizontal.Scrollbar.rightarrow -side right
|
|
374
|
+
Horizontal.Scrollbar.thumb -expand 1
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
ttk::style element create Horizontal.Scrollbar.trough image $I(scrollbar-trough-hor) -sticky ew -border {6 0}
|
|
379
|
+
ttk::style element create Horizontal.Scrollbar.thumb image $I(scrollbar-thumb-hor) -sticky ew -border {3 0}
|
|
380
|
+
|
|
381
|
+
ttk::style element create Horizontal.Scrollbar.rightarrow image $I(scrollbar-right) -sticky e -width 13
|
|
382
|
+
ttk::style element create Horizontal.Scrollbar.leftarrow image $I(scrollbar-left) -sticky w -width 13
|
|
383
|
+
|
|
384
|
+
ttk::style element create Vertical.Scrollbar.trough image $I(scrollbar-trough-vert) -sticky ns -border {0 6}
|
|
385
|
+
ttk::style element create Vertical.Scrollbar.thumb image $I(scrollbar-thumb-vert) -sticky ns -border {0 3}
|
|
386
|
+
|
|
387
|
+
ttk::style element create Vertical.Scrollbar.uparrow image $I(scrollbar-up) -sticky n -height 13
|
|
388
|
+
ttk::style element create Vertical.Scrollbar.downarrow image $I(scrollbar-down) -sticky s -height 13
|
|
389
|
+
|
|
390
|
+
# Separator
|
|
391
|
+
ttk::style element create Separator.separator image $I(sep) -width 1 -height 1
|
|
392
|
+
|
|
393
|
+
# Sizegrip
|
|
394
|
+
ttk::style element create Sizegrip.sizegrip image $I(grip) -sticky nsew
|
|
395
|
+
|
|
396
|
+
# Card
|
|
397
|
+
ttk::style layout Card.TFrame {
|
|
398
|
+
Card.field {
|
|
399
|
+
Card.padding -expand 1
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
ttk::style element create Card.field image $I(card) -border 10 -padding 4 -sticky nsew
|
|
404
|
+
|
|
405
|
+
# Labelframe
|
|
406
|
+
ttk::style layout TLabelframe {
|
|
407
|
+
Labelframe.border {
|
|
408
|
+
Labelframe.padding -expand 1 -children {
|
|
409
|
+
Labelframe.label -side left
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
ttk::style element create Labelframe.border image $I(card) -border 5 -padding 4 -sticky nsew
|
|
415
|
+
ttk::style configure TLabelframe.Label -font SunValleyCaptionFont
|
|
416
|
+
|
|
417
|
+
# Notebook
|
|
418
|
+
ttk::style layout TNotebook {
|
|
419
|
+
Notebook.border -children {
|
|
420
|
+
TNotebook.Tab -expand 1
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
ttk::style configure TNotebook -padding 1
|
|
425
|
+
ttk::style configure TNotebook.Tab -focuscolor $colors(-accent)
|
|
426
|
+
ttk::style element create Notebook.border image $I(notebook-border) -border 5 -padding 5
|
|
427
|
+
|
|
428
|
+
ttk::style element create Notebook.tab image \
|
|
429
|
+
[list $I(tab-rest) \
|
|
430
|
+
selected $I(tab-selected) \
|
|
431
|
+
active $I(tab-hover) \
|
|
432
|
+
] -border 13 -padding {16 14 16 6} -height 32
|
|
433
|
+
|
|
434
|
+
# Treeview
|
|
435
|
+
ttk::style configure Heading -font SunValleyCaptionFont
|
|
436
|
+
ttk::style configure Treeview \
|
|
437
|
+
-background $colors(-bg) \
|
|
438
|
+
-rowheight [expr {[font metrics SunValleyBodyFont -linespace] + 3}] \
|
|
439
|
+
-font SunValleyBodyFont
|
|
440
|
+
|
|
441
|
+
ttk::style map Treeview -background {selected "#292929"} -foreground "selected $colors(-selfg)"
|
|
442
|
+
|
|
443
|
+
ttk::style element create Treeview.field image $I(card) -border 5 -width 0 -height 0
|
|
444
|
+
|
|
445
|
+
ttk::style element create Treeheading.cell image \
|
|
446
|
+
[list $I(heading-rest) \
|
|
447
|
+
pressed $I(heading-pressed) \
|
|
448
|
+
active $I(heading-hover)
|
|
449
|
+
] -border 5 -padding 14 -sticky nsew
|
|
450
|
+
|
|
451
|
+
ttk::style element create Treeitem.indicator image \
|
|
452
|
+
[list $I(right) \
|
|
453
|
+
user2 $I(empty) \
|
|
454
|
+
user1 $I(down) \
|
|
455
|
+
] -width 26 -sticky {}
|
|
456
|
+
|
|
457
|
+
# Panedwindow
|
|
458
|
+
ttk::style configure Sash \
|
|
459
|
+
-lightcolor "#9e9e9e" \
|
|
460
|
+
-darkcolor "#9e9e9e" \
|
|
461
|
+
-bordercolor "#9e9e9e" \
|
|
462
|
+
-sashthickness 4 \
|
|
463
|
+
-gripcount 20
|
|
464
|
+
}
|
|
465
|
+
}
|