-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup_Streamline.tcl
671 lines (588 loc) · 24.7 KB
/
setup_Streamline.tcl
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
proc ::plugins::DYE::setup_ui_Streamline {} {
variable settings
variable widgets
### SCREENSAVER ###
# Makes the left side of the app screensaver clickable so that you can describe your
# last shot without waking up the DE1.
dui add dbutton saver 240 40 380 180 -tags saver_to_dye -shape round \
-radius 30 -fill #333 -symbol $settings(describe_icon) -symbol_pos {0.52 0.4} \
-symbol_anchor center -symbol_justify center -symbol_fill #666 -symbol_font_size 32 \
-label [translate "DYE"] -label_pos {0.46 0.8} -label_anchor center -label_justify center \
-label_fill #666 -label_font_size 14 -command {::plugins::DYE::open -which_shot last}
### DUI ASPECTS & STYLES ###
dui theme add DYE_Streamline
dui theme set DYE_Streamline
# Skin colors
set background_c $::background_color
#set foreground_c $::plus_minus_text_color
set foreground_c $::datacard_number_text_color
set text_c $::left_label_color2
#set text_c $::dataline_label_color
#set button_label_c $::dataentry_button_color
set button_label_c $::left_label_color2
set header_button_c $::profile_title_color
#set unselected_c $::button_inverted_text_color
set unselected_c $::box_color
set selected_c $::status_clickable_text
set error_c $::progress_bar_red
set fill_and_insert_c $::datacard_number_text_color
set button_bg_c $::dataentry_button_color
#set disabled_c $::profile_button_background_unused_color
set disabled_c $::box_color
#DYE fonts
set font "notosansuiregular"
set boldfont "notosansuibold"
set default_font_size 16
dui aspect set -theme DYE_Streamline [subst {
page.bg_img {}
page.bg_color $background_c
dialog_page.bg_shape round_outline
dialog_page.bg_color $background_c
dialog_page.fill $background_c
dialog_page.outline $text_c
dialog_page.width 1
font.font_family "$font"
font.font_size $default_font_size
dtext.font_family "$font"
dtext.font_size $default_font_size
dtext.fill $text_c
dtext.disabledfill $disabled_c
dtext.anchor nw
dtext.justify left
dtext.fill.remark $fill_and_insert_c
dtext.fill.error $error_c
dtext.font_family.section_title "$font"
dtext.font_family.page_title "$font"
dtext.font_size.page_title 26
dtext.fill.page_title $text_c
dtext.anchor.page_title center
dtext.justify.page_title center
symbol.font_family "Font Awesome 6 Pro-Regular-400"
symbol.font_size 55
symbol.fill $text_c
symbol.disabledfill $disabled_c
symbol.anchor nw
symbol.justify left
symbol.font_size.small 24
symbol.font_size.medium 40
symbol.font_size.big 55
dbutton.debug_outline yellow
dbutton.fill $button_bg_c
dbutton.disabledfill $unselected_c
dbutton.outline $text_c
dbutton.disabledoutline $unselected_c
dbutton.width 0
dbutton.radius 60
dbutton_label.pos {0.5 0.5}
dbutton_label.font_size [expr {$default_font_size+1}]
dbutton_label.anchor center
dbutton_label.justify center
dbutton_label.fill $button_label_c
dbutton_label.disabledfill $disabled_c
dbutton_label1.pos {0.5 0.8}
dbutton_label1.font_size [expr {$default_font_size-1}]
dbutton_label1.anchor center
dbutton_label1.justify center
dbutton_label1.fill $button_label_c
dbutton_label1.activefill $fill_and_insert_c
dbutton_label1.disabledfill $disabled_c
dbutton_symbol.pos {0.2 0.5}
dbutton_symbol.font_size 28
dbutton_symbol.anchor center
dbutton_symbol.justify center
dbutton_symbol.fill $button_label_c
dbutton_symbol.disabledfill $disabled_c
dbutton.shape.insight_ok outline
dbutton.radius.insight_ok 30
dbutton.bwidth.insight_ok 480
dbutton.bheight.insight_ok 118
dbutton_label.font_family.insight_ok "$boldfont"
dbutton_label.font_size.insight_ok 19
dclicker.fill {}
dclicker.disabledfill {}
dclicker_label.pos {0.5 0.5}
dclicker_label.font_size 16
dclicker_label.fill $text_c
dclicker_label.anchor center
dclicker_label.justify center
entry.relief sunken
entry.bg $background_c
entry.disabledbackground $disabled_c
entry.width 2
entry.foreground $text_c
entry.disabledforeground $background_c
entry.font_size $default_font_size
entry.insertbackground $fill_and_insert_c
multiline_entry.relief sunken
multiline_entry.foreground $text_c
multiline_entry.bg $background_c
multiline_entry.width 2
multiline_entry.font_family "$font"
multiline_entry.font_size $default_font_size
multiline_entry.width 15
multiline_entry.height 5
multiline_entry.insertbackground $fill_and_insert_c
multiline_entry.wrap word
dcombobox.relief sunken
dcombobox.bg $background_c
dcombobox.width 2
dcombobox.font_family "$font"
dcombobox.font_size $default_font_size
dbutton_dda.shape {}
dbutton_dda.fill {}
dbutton_dda.disabledfill {}
dbutton_dda.bwidth 70
dbutton_dda.bheight 65
dbutton_dda.symbol "sort-down"
dbutton_dda_symbol.pos {0.5 0.2}
dbutton_dda_symbol.font_size 24
dbutton_dda_symbol.anchor center
dbutton_dda_symbol.justify center
dbutton_dda_symbol.fill $text_c
dbutton_dda_symbol.disabledfill $disabled_c
dcheckbox.font_family "Font Awesome 6 Pro"
dcheckbox.font_size 18
dcheckbox.fill $text_c
dcheckbox.anchor nw
dcheckbox.justify left
dcheckbox_label.pos "e 30 0"
dcheckbox_label.anchor w
dcheckbox_label.justify left
listbox.relief sunken
listbox.borderwidth 1
listbox.foreground $text_c
listbox.background $background_c
listbox.selectforeground $background_c
listbox.selectbackground $text_c
listbox.selectborderwidth 1
listbox.disabledforeground $disabled_c
listbox.selectmode browse
listbox.justify left
listbox_label.pos "wn -10 0"
listbox_label.anchor ne
listbox_label.justify right
listbox_label.font_family.section_title "$font"
scrollbar.orient vertical
scrollbar.width 120
scrollbar.length 300
scrollbar.sliderlength 120
scrollbar.from 0.0
scrollbar.to 1.0
scrollbar.bigincrement 0.2
scrollbar.borderwidth 1
scrollbar.showvalue 0
scrollbar.resolution 0.01
scrollbar.background $text_c
scrollbar.foreground $foreground_c
scrollbar.troughcolor $background_c
scrollbar.relief flat
scrollbar.borderwidth 0
scrollbar.highlightthickness 0
dscale.orient horizontal
dscale.foreground $text_c
dscale.background $button_label_c
dscale.sliderlength 75
scale.orient horizontal
scale.foreground $foreground_c
scale.background $text_c
scale.troughcolor $background_c
scale.showvalue 0
scale.relief flat
scale.borderwidth 0
scale.highlightthickness 0
scale.sliderlength 125
scale.width 150
drater.fill $text_c
drater.disabledfill $disabled_c
drater.font_size 24
rect.fill.insight_back_box $background_c
rect.width.insight_back_box 0
line.fill.insight_back_box_shadow $background_c
line.width.insight_back_box_shadow 2
rect.fill.insight_front_box $background_c
rect.width.insight_front_box 0
graph.plotbackground $background_c
graph.borderwidth 1
graph.background $background_c
graph.plotrelief raised
graph.plotpady 0
graph.plotpadx 10
text.bg $background_c
text.foreground $text_c
text.font_size $default_font_size
text.relief flat
text.highlightthickness 1
text.insertbackground $fill_and_insert_c
text.wrap word
dselector.radius 40
dselector.fill $background_c
dselector.selectedfill $foreground_c
dselector.outline $foreground_c
dselector.selectedoutline $foreground_c
dselector.label_fill $text_c
dselector.label_selectedfill $selected_c
dtoggle.width 120
dtoggle.height 68
dtoggle.outline_width 0
dtoggle.background $foreground_c
dtoggle.foreground $button_label_c
dtoggle.outline $button_label_c
dtoggle.selectedbackground $foreground_c
dtoggle.selectedforeground $selected_c
dtoggle.selectedoutline $selected_c
dtoggle.disabledbackground $disabled_c
dtoggle.disabledforeground $button_label_c
dtoggle.disabledoutline $button_label_c
}]
# dui_number_editor page styles
dui aspect set -theme DYE_Streamline {
dbutton.shape.dne_clicker outline
dbutton.bwidth.dne_clicker 120
dbutton.bheight.dne_clicker 140
dbutton.fill.dne_clicker {}
dbutton.width.dne_clicker 3
dbutton.anchor.dne_clicker center
dbutton_symbol.pos.dne_clicker {0.5 0.4}
dbutton_symbol.anchor.dne_clicker center
dbutton_symbol.font_size.dne_clicker 20
dbutton_label.pos.dne_clicker {0.5 0.8}
dbutton_label.font_size.dne_clicker 10
dbutton_label.anchor.dne_clicker center
dbutton.shape.dne_pad_button outline
dbutton.bwidth.dne_pad_button 280
dbutton.bheight.dne_pad_button 220
dbutton.fill.dne_pad_button {}
dbutton.width.dne_pad_button 3
dbutton.anchor.dne_pad_button nw
dbutton_label.pos.dne_pad_button {0.5 0.5}
dbutton_label.font_family.dne_pad_button notosansuibold
dbutton_label.font_size.dne_pad_button 24
dbutton_label.anchor.dne_pad_button center
}
# DUI confirm dialog styles
dui aspect set -theme DYE_Streamline {
dbutton.shape.dui_confirm_button outline
dbutton.bheight.dui_confirm_button 100
dbutton.width.dui_confirm_button 1
dbutton.arc_offset.dui_confirm_button 20
}
# Menu dialogs
dui aspect set -theme DYE_Streamline [subst {
dtext.font_size.menu_dlg_title +1
dtext.anchor.menu_dlg_title center
dtext.justify.menu_dlg_title center
dbutton.shape.menu_dlg_close rect
dbutton.fill.menu_dlg_close {}
dbutton.symbol.menu_dlg_close xmark
dbutton_symbol.pos.menu_dlg_close {0.5 0.5}
dbutton_symbol.anchor.menu_dlg_close center
dbutton_symbol.justify.menu_dlg_close center
dbutton_symbol.fill.menu_dlg_close $foreground_c
dbutton.shape.menu_dlg_btn rect
dbutton.fill.menu_dlg_btn {}
dbutton.disabledfill.menu_dlg_btn {}
dbutton_label.pos.menu_dlg_btn {0.25 0.4}
dbutton_label.anchor.menu_dlg_btn w
dbutton_label.fill.menu_dlg_btn $text_c
dbutton_label.disabledfill.menu_dlg_btn $disabled_c
dbutton_label1.pos.menu_dlg_btn {0.25 0.78}
dbutton_label1.anchor.menu_dlg_btn w
dbutton_label1.fill.menu_dlg_btn $text_c
dbutton_label1.disabledfill.menu_dlg_btn $disabled_c
dbutton_label1.font_size.menu_dlg_btn -3
dbutton_symbol.pos.menu_dlg_btn {0.15 0.5}
dbutton_symbol.anchor.menu_dlg_btn center
# $button_label_c
dbutton_symbol.fill.menu_dlg_btn $button_bg_c
dbutton_symbol.disabledfill.menu_dlg_btn $disabled_c
line.fill.menu_dlg_sepline $button_bg_c
line.width.menu_dlg_sepline 1
dtext.fill.menu_dlg $text_c
dtext.disabledfill.menu_dlg $disabled_c
dcheckbox.fill.menu_dlg $text_c
dcheckbox.disabledfill.menu_dlg $disabled_c
dcheckbox_label.fill.menu_dlg $text_c
dcheckbox_label.disabledfill.menu_dlg $disabled_c
dbutton.shape.menu_dlg outline
dbutton.arc_offset.menu_dlg 25
dbutton.width.menu_dlg 3
}]
# History Viewer styles
# set smooth $::settings(live_graph_smoothing_technique)
# set zoomed_y_axis_max 8
# set x_axis_colour white
# dui aspect set -theme DYE_Streamline [subst {
# graph_axis.color.hv_graph_axis $x_axis_colour
# graph_axis.min.hv_graph_axis 0.0
# graph_axis.max.hv_graph_axis [expr 12 * 10]
#
# graph_xaxis.color.hv_graph_axis $x_axis_colour
# graph_xaxis.tickfont.hv_graph_axis "[DSx_font font 7]"
# graph_xaxis.min.hv_graph_axis 0.0
#
# graph_yaxis.color.hv_graph_axis "#008c4c"
# graph_yaxis.tickfont.hv_graph_axis "[DSx_font font 7]"
# graph_yaxis.min.hv_graph_axis 0.0
# graph_yaxis.max.hv_graph_axis $zoomed_y_axis_max
# graph_yaxis.subdivisions.hv_graph_axis 5
# graph_yaxis.majorticks.hv_graph_axis {0 1 2 3 4 5 6 7 8 9 10 11 12}
# graph_yaxis.hide.hv_graph_axis 0
#
# graph_y2axis.color.hv_graph_axis "#206ad4"
# graph_y2axis.tickfont.hv_graph_axis "[DSx_font font 7]"
# graph_y2axis.min.hv_graph_axis 0.0
# graph_y2axis.max.hv_graph_axis $zoomed_y_axis_max
# graph_y2axis.subdivisions.hv_graph_axis 2
# graph_y2axis.majorticks.hv_graph_axis {0 1 2 3 4 5 6 7 8 9 10 11 12}
# graph_y2axis.hide.hv_graph_axis 0
#
# graph_grid.color.hv_graph_grid $::DSx_settings(grid_colour)
#
# graph_line.linewidth.hv_temperature_goal $::DSx_settings(hist_temp_goal_curve)
# graph_line.color.hv_temperature_goal #ffa5a6
# graph_line.smooth.hv_temperature_goal $smooth
# graph_line.dashes.hv_temperature_goal {5 5}
#
# graph_line.linewidth.hv_temperature_basket $::DSx_settings(hist_temp_curve)
# graph_line.color.hv_temperature_basket #e73249
# graph_line.smooth.hv_temperature_basket $smooth
# graph_line.dashes.hv_temperature_basket [list $::settings(chart_dashes_temperature)]
#
# graph_line.linewidth.hv_temperature_mix $::DSx_settings(hist_temp_curve)
# graph_line.color.hv_temperature_mix #ff888c
# graph_line.smooth.hv_temperature_mix $smooth
#
# graph_line.linewidth.hv_temperature_goal $::DSx_settings(hist_temp_goal_curve)
# graph_line.color.hv_temperature_goal #ffa5a6
# graph_line.smooth.hv_temperature_goal $smooth
# graph_line.dashes.hv_temperature_goal {5 5}
#
# graph_line.linewidth.hv_pressure_goal $::DSx_settings(hist_goal_curve)
# graph_line.color.hv_pressure_goal #69fdb3
# graph_line.smooth.hv_pressure_goal $smooth
# graph_line.dashes.hv_pressure_goal {5 5}
#
# graph_line.linewidth.hv_flow_goal $::DSx_settings(hist_goal_curve)
# graph_line.color.hv_flow_goal #7aaaff
# graph_line.smooth.hv_flow_goal $smooth
# graph_line.dashes.hv_flow_goal {5 5}
#
# graph_line.linewidth.hv_pressure [dui platform rescale_x 8]
# graph_line.color.hv_pressure #008c4c
# graph_line.smooth.hv_pressure $smooth
# graph_line.dashes.hv_pressure [list $::settings(chart_dashes_pressure)]
#
# graph_line.linewidth.hv_flow [dui platform rescale_x 8]
# graph_line.color.hv_flow #4e85f4
# graph_line.smooth.hv_flow $smooth
# graph_line.dashes.hv_flow [list $::settings(chart_dashes_flow)]
#
# graph_line.linewidth.hv_flow_weight [dui platform rescale_x 8]
# graph_line.color.hv_flow_weight #a2693d
# graph_line.smooth.hv_flow_weight $smooth
# graph_line.dashes.hv_flow_weight [list $::settings(chart_dashes_flow)]
#
# graph_line.linewidth.hv_weight [dui platform rescale_x 8]
# graph_line.color.hv_weight #a2693d
# graph_line.smooth.hv_weight $smooth
# graph_line.dashes.hv_weight [list $::settings(chart_dashes_espresso_weight)]
#
# graph_line.linewidth.hv_state_change $::DSx_settings(hist_goal_curve)
# graph_line.color.hv_state_change #AAAAAA
#
# graph_line.linewidth.hv_resistance $::DSx_settings(hist_resistance_curve)
# graph_line.color.hv_resistance #e5e500
# graph_line.smooth.hv_resistance $smooth
# graph_line.dashes.hv_resistance {6 2}
# }]
# dui aspect set { dbutton.width 3 }
# DYE-specific styles
dui aspect set -style dsx_settings [subst {dbutton.shape outline dbutton.fill $button_bg_c dbutton.disabledfill $unselected_c
dbutton.bwidth 384 dbutton.bheight 192 dbutton.width 0
dbutton_symbol.pos {0.2 0.5} dbutton_symbol.font_size 37
dbutton_label.pos {0.65 0.5} dbutton_label.font_size 17
dbutton_label1.pos {0.65 0.8} dbutton_label1.font_size 16}]
dui aspect set -style dsx_midsize {dbutton.shape outline dbutton.bwidth 220 dbutton.bheight 140 dbutton.width 6 dbutton.arc_offset 15
dbutton_label.pos {0.7 0.5} dbutton_label.font_size 14 dbutton_symbol.font_size 24 dbutton_symbol.pos {0.25 0.5} }
dui aspect set -style dsx_archive {dbutton.shape outline dbutton.bwidth 180 dbutton.bheight 110 dbutton.width 6
canvas_anchor nw anchor nw dbutton.arc_offset 12 dbutton_label.pos {0.7 0.5} dbutton_label.font_size 14
dbutton_symbol.font_size 24 dbutton_symbol.pos {0.3 0.5} }
set bold_font [dui aspect get dtext font_family -theme default -style bold]
dui aspect set -style dsx_done [list dbutton.shape outline dbutton.bwidth 220 dbutton.bheight 140 dbutton.width 5 \
dbutton_label.pos {0.5 0.5} dbutton_label.font_size 20 dbutton_label.font_family $bold_font]
dui aspect set -style dye_main_nav_button [subst { dbutton.shape {} dbutton.fill {} dbutton.disabledfill {}
dbutton_symbol.font_size 28 dbutton_symbol.fill $text_c dbutton_symbol.disabledfill $disabled_c}]
dui aspect set -type dtext -style section_header [list font_family $bold_font font_size 20 fill $foreground_c]
dui aspect set -type dclicker -style dye_double [subst {shape {} fill $background_c
disabledfill $background_c width 0 orient horizontal use_biginc 1
symbol chevrons-left symbol1 chevron-left symbol2 chevron-right symbol3 chevrons-right}]
dui aspect set -type dclicker_symbol -style dye_double [subst {pos {0.075 0.5} font_size 24 anchor center
fill $button_bg_c disabledfill $disabled_c}]
dui aspect set -type dclicker_symbol1 -style dye_double [subst {pos {0.275 0.5} font_size 24 anchor center
fill $button_bg_c disabledfill $disabled_c}]
dui aspect set -type dclicker_symbol2 -style dye_double [subst {pos {0.725 0.5} font_size 24 anchor center
fill $button_bg_c disabledfill $disabled_c}]
dui aspect set -type dclicker_symbol3 -style dye_double [subst {pos {0.925 0.5} font_size 24 anchor center
fill $button_bg_c disabledfill $disabled_c}]
dui aspect set -type dclicker -style dye_single {orient horizontal use_biginc 0 symbol chevron-left symbol1 chevron-right}
dui aspect set -type dclicker_symbol -style dye_single {pos {0.1 0.5} font_size 24 anchor center fill "#7f879a"}
dui aspect set -type dclicker_symbol1 -style dye_single {pos {0.9 0.5} font_size 24 anchor center fill "#7f879a"}
# New aspects for the DYE main page section images, so they can be modified depending on color choices.
# Uses code contributed by Eran Yaniv. This determines which image to use depending on the
# darkness of the current skin theme background color.
lassign [winfo rgb . $::background_color] r g b
set luma [ expr { ((0.2126 * $r) + (0.7152 * $g) + (0.0722 * $b)) / 65535 } ]
if { $luma > 0.7} {
dui aspect set -type image -style dye_beans_img -source "bean_DSx2_black.png"
dui aspect set -type image -style dye_equipment_img -source "niche_DSx2_black.png"
dui aspect set -type image -style dye_extraction_img -source "espresso_DSx2_black.png"
dui aspect set -type image -style dye_people_img -source "people_DSx2_black.png"
} else {
dui aspect set -type image -style dye_beans_img -source "bean_DSx.png"
dui aspect set -type image -style dye_equipment_img -source "niche_DSx.png"
dui aspect set -type image -style dye_extraction_img -source "espresso_DSx.png"
dui aspect set -type image -style dye_people_img -source "people_DSx.png"
}
# Profile viewer
dui aspect set [subst {
shape.fill.dye_pv_icon_btn CadetBlue4
dtext.fill.dye_pv_profile_title white
dtext.font_size.dye_pv_profile_title +8
dtext.font_family.dye_pv_profile_title notosansuibold
text_tag.spacing1.dye_pv_step [dui::platform::rescale_y 20]
text_tag.foreground.dye_pv_step Brown2
text_tag.lmargin1.dye_pv_step_line [dui::platform::rescale_x 35]
text_tag.lmargin2.dye_pv_step_line [dui::platform::rescale_x 55]
text_tag.foreground.dye_pv_value $::plugins::DYE::default_shot_desc_font_color
}]
### DYE V3 STYLES ####
set btn_spacing 100
set half_button_width [expr {int(($::dui::pages::DYE_v3::page_coords(panel_width)-$btn_spacing)/2)}]
dui aspect set -theme DYE_Streamline [subst {
dbutton.bheight.dyev3_topnav 90
dbutton.shape.dyev3_topnav rect
dbutton.fill.dyev3_topnav grey
dbutton_label.font_size.dyev3_topnav -1
dbutton_label.pos.dyev3_topnav {0.5 0.5}
dbutton_label.anchor.dyev3_topnav center
dbutton_label.justify.dyev3_topnav center
dbutton.bwidth.dyev3_nav_button 100
dbutton.bheight.dyev3_nav_button 120
dbutton.fill.dyev3_nav_button {}
dbutton.disabledfill.dyev3_nav_button {}
dbutton_symbol.pos.dyev3_nav_button {0.5 0.5}
dbutton_symbol.fill.dyev3_nav_button #ccc
text.font_size.dyev3_top_panel_text -1
text.yscrollbar.dyev3_top_panel_text no
text.bg.dyev3_top_panel_text $background_c
text.borderwidth.dyev3_top_panel_text 0
text.highlightthickness.dyev3_top_panel_text 0
text.relief.dyev3_top_panel_text flat
text.font_size.dyev3_bottom_panel_text -1
dtext.font_family.dyev3_right_panel_title "$font"
dtext.font_size.dyev3_right_panel_title +2
dtext.fill.dyev3_right_panel_title $text_c
dtext.anchor.dyev3_right_panel_title center
dtext.justify.dyev3_right_panel_title center
graph.background.dyev3_text_graph $background_c
graph.plotbackground.dyev3_text_graph $background_c
graph.borderwidth.dyev3_text_graph 1
graph.plotrelief.dyev3_text_graph flat
dtext.font_size.dyev3_chart_stage_title +2
dtext.anchor.dyev3_chart_stage_title center
dtext.justify.dyev3_chart_stage_title center
dtext.fill.dyev3_chart_stage_title $text_c
dtext.anchor.dyev3_chart_stage_colheader center
dtext.justify.dyev3_chart_stage_colheader center
dtext.anchor.dyev3_chart_stage_value center
dtext.justify.dyev3_chart_stage_value center
dtext.anchor.dyev3_chart_stage_comp center
dtext.justify.dyev3_chart_stage_comp center
dtext.font_size.dyev3_chart_stage_comp -4
dtext.fill.dyev3_chart_stage_comp grey
line.fill.dyev3_chart_stage_line_sep grey
dbutton.shape.dyev3_action_half outline
dbutton.fill.dyev3_action_half {}
dbutton.disabledfill.dyev3_action_half {}
dbutton.width.dyev3_action_half [dui platform rescale_x 7]
dbutton.outline.dyev3_action_half white
dbutton.disabledoutline.dyev3_action_half $disabled_c
dbutton.bwidth.dyev3_action_half $half_button_width
dbutton.bheight.dyev3_action_half 125
dbutton_symbol.pos.dyev3_action_half {0.2 0.5}
dbutton_label.pos.dyev3_action_half {0.6 0.5}
dbutton_label.width.dyev3_action_half [expr {$half_button_width-75}]
#text_tag.foregroud.which_shot $background_c
text_tag.font.dyev3_which_shot "[dui font get $font 13]"
text_tag.justify.dyev3_which_shot center
text_tag.justify.dyev3_profile_title center
text_tag.foreground.dyev3_section $text_c
text_tag.font.dyev3_section "[dui font get $font 12]"
text_tag.spacing1.dyev3_section [dui platform rescale_y 15]
text_tag.foreground.dyev3_field $text_c
text_tag.lmargin1.dyev3_field [dui platform rescale_x 35]
text_tag.lmargin2.dyev3_field [dui platform rescale_x 45]
text_tag.foreground.dyev3_value #4e85f4
text_tag.foreground.dyev3_compare grey
text_tag.font.dyev3_field_highlighted "[dui font get $font 10]"
text_tag.background.dyev3_field_highlighted darkgrey
text_tag.font.dyev3_field_nonhighlighted "[dui font get $font 10]"
text_tag.background.dyev3_field_nonhighlighted {}
}]
# New DSx2-specific styles
# dbutton.width.dsx2 0
# dui aspect set -theme DYE_Streamline [subst {
# dbutton.shape.dsx2 round
# dbutton.bheight.dsx2 100
# dbutton.fill.dsx2 $button_bg_c
# dbutton.pressfill.dsx2 \{ $button_label_c 150 \}
# dbutton.disabledfill.dsx2 $unselected_c
#
# dbutton_label.pos.dsx2 {0.5 0.5}
# dbutton_label.font_size.dsx2 [expr {$default_font_size+1}]
# dbutton_label.anchor.dsx2 center
# dbutton_label.justify.dsx2 center
# dbutton_label.fill.dsx2 $button_label_c
# dbutton_label.pressfill.dsx2 \{ $button_bg_c 150 \}
# dbutton_label.disabledfill.dsx2 $disabled_c
#
# dbutton_label1.pos.dsx2 {0.5 0.8}
# dbutton_label1.font_size.dsx2 [expr {$default_font_size-1}]
# dbutton_label1.anchor.dsx2 center
# dbutton_label1.justify.dsx2 center
# dbutton_label1.fill.dsx2 $button_label_c
# dbutton_label1.pressfill.dsx2 \{ $selected_c 150 $selected_c \}
# dbutton_label1.activefill.dsx2 $fill_and_insert_c
# dbutton_label1.disabledfill.dsx2 $disabled_c
#
# dbutton_symbol.pos.dsx2 {0.2 0.5}
# dbutton_symbol.font_size.dx2 28
# dbutton_symbol.anchor.dsx2 center
# dbutton_symbol.justify.dsx2 center
# dbutton_symbol.fill.dsx2 $button_label_c
# dbutton_symbol.disabledfill.dsx2 $disabled_c
#
# dbutton.shape.dsx2_pm round_outline
# dbutton.bheight.dsx2_pm 100
# dbutton.bwidth.dsx2_pm 100
# dbutton.fill.dsx2_pm $button_bg_c
# dbutton.disabledfill.dsx2_pm $unselected_c
# dbutton.outline.dsx2_pm $::skin_forground_colour
# dbutton.disabledoutline.dsx2_pm $unselected_c
#
# dbutton_label.pos.dsx2_pm {0.5 0.5}
# dbutton_label.font_family.dsx2_pm "$::skin(font_awesome_light)"
# dbutton_label.font_size.dsx2_pm [fixed_size 30]
# dbutton_label.anchor.dsx2_pm center
# dbutton_label.justify.dsx2_pm center
# dbutton_label.fill.dsx2_pm $button_label_c
# dbutton_label.disabledfill.dsx2_pm $disabled_c
#
# dtext.font_family.dsx2_setting_heading "$boldfont"
# dtext.font_size.dsx2_setting_heading 15
# dtext.fill.dsx2_setting_heading $text_c
# dtext.disabledfill.dsx2_setting_heading $disabled_c
# dtext.anchor.dsx2_setting_heading center
# dtext.justify.dsx2_setting_heading center
# }]
}