-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
3869 lines (3769 loc) · 278 KB
/
Copy pathMainWindow.xaml
File metadata and controls
3869 lines (3769 loc) · 278 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
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
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Window x:Class="JustCode.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:JustCode"
xmlns:models="clr-namespace:JustCode.Models"
xmlns:vm="clr-namespace:JustCode.ViewModels"
xmlns:md="clr-namespace:Markdig.Wpf;assembly=Markdig.Wpf"
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
mc:Ignorable="d"
Title="{Binding SelectedProject.WorkingDirectory, StringFormat='JustCode — {0}', FallbackValue='JustCode', TargetNullValue='JustCode'}"
Height="820" Width="1360"
Icon="pack://application:,,,/app.ico"
FontFamily="Segoe UI Variable, Segoe UI" FontSize="12" Background="#1e1e1e" Foreground="#eaeaea"
TextOptions.TextFormattingMode="Ideal" UseLayoutRounding="True">
<Window.Resources>
<ResourceDictionary>
<BooleanToVisibilityConverter x:Key="BoolToVis"/>
<!-- Tool icons (inlined from claude.svg / openai.svg) -->
<Geometry x:Key="ClaudeIconGeometry">M 233.959793 800.214905 L 468.644287 668.536987 L 472.590637 657.100647 L 468.644287 650.738403 L 457.208069 650.738403 L 417.986633 648.322144 L 283.892639 644.69812 L 167.597321 639.865845 L 54.926208 633.825623 L 26.577238 627.785339 L 0 592.751709 L 2.73832 575.27533 L 26.577238 559.248352 L 60.724873 562.228149 L 136.187973 567.382629 L 249.422867 575.194763 L 331.570496 580.026978 L 453.261841 592.671082 L 472.590637 592.671082 L 475.328857 584.859009 L 468.724915 580.026978 L 463.570557 575.194763 L 346.389313 495.785217 L 219.543671 411.865906 L 153.100723 363.543762 L 117.181267 339.060425 L 99.060455 316.107361 L 91.248367 266.01355 L 123.865784 230.093994 L 167.677887 233.073853 L 178.872513 236.053772 L 223.248367 270.201477 L 318.040283 343.570496 L 441.825592 434.738342 L 459.946411 449.798706 L 467.194672 444.64447 L 468.080597 441.020203 L 459.946411 427.409485 L 392.617493 305.718323 L 320.778564 181.932983 L 288.80542 130.630859 L 280.348999 99.865845 C 277.369171 87.221436 275.194641 76.590698 275.194641 63.624268 L 312.322174 13.20813 L 332.8591 6.604126 L 382.389313 13.20813 L 403.248352 31.328979 L 434.013519 101.71814 L 483.865753 212.537048 L 561.181274 363.221497 L 583.812134 407.919434 L 595.892639 449.315491 L 600.40271 461.959839 L 608.214783 461.959839 L 608.214783 454.711609 L 614.577271 369.825623 L 626.335632 265.61084 L 637.771851 131.516846 L 641.718201 93.745117 L 660.402832 48.483276 L 697.530334 24.000122 L 726.52356 37.852417 L 750.362549 72 L 747.060486 94.067139 L 732.886047 186.201416 L 705.100708 330.52356 L 686.979919 427.167847 L 697.530334 427.167847 L 709.61084 415.087341 L 758.496704 350.174561 L 840.644348 247.490051 L 876.885925 206.738342 L 919.167847 161.71814 L 946.308838 140.29541 L 997.61084 140.29541 L 1035.38269 196.429626 L 1018.469849 254.416199 L 965.637634 321.422852 L 921.825562 378.201538 L 859.006714 462.765259 L 819.785278 530.41626 L 823.409424 535.812073 L 832.75177 534.92627 L 974.657776 504.724915 L 1051.328979 490.872559 L 1142.818848 475.167786 L 1184.214844 494.496582 L 1188.724854 514.147644 L 1172.456421 554.335693 L 1074.604126 578.496765 L 959.838989 601.449829 L 788.939636 641.879272 L 786.845764 643.409485 L 789.261841 646.389343 L 866.255127 653.637634 L 899.194702 655.409424 L 979.812134 655.409424 L 1129.932861 666.604187 L 1169.154419 692.537109 L 1192.671265 724.268677 L 1188.724854 748.429688 L 1128.322144 779.194641 L 1046.818848 759.865845 L 856.590759 714.604126 L 791.355774 698.335754 L 782.335693 698.335754 L 782.335693 703.731567 L 836.69812 756.885986 L 936.322205 846.845581 L 1061.073975 962.81897 L 1067.436279 991.490112 L 1051.409424 1014.120911 L 1034.496704 1011.704712 L 924.885986 929.234924 L 882.604126 892.107544 L 786.845764 811.48999 L 780.483276 811.48999 L 780.483276 819.946289 L 802.550415 852.241699 L 919.087341 1027.409424 L 925.127625 1081.127686 L 916.671204 1098.604126 L 886.469849 1109.154419 L 853.288696 1103.114136 L 785.073914 1007.355835 L 714.684631 899.516785 L 657.906067 802.872498 L 650.979858 806.81897 L 617.476624 1167.704834 L 601.771851 1186.147705 L 565.530212 1200 L 535.328857 1177.046997 L 519.302124 1139.919556 L 535.328857 1066.550537 L 554.657776 970.792053 L 570.362488 894.68457 L 584.536926 800.134277 L 592.993347 768.724976 L 592.429626 766.630859 L 585.503479 767.516968 L 514.22821 865.369263 L 405.825531 1011.865906 L 320.053711 1103.677979 L 299.516815 1111.812256 L 263.919525 1093.369263 L 267.221497 1060.429688 L 287.114136 1031.114136 L 405.825531 880.107361 L 477.422913 786.52356 L 523.651062 732.483276 L 523.328918 724.671265 L 520.590698 724.671265 L 205.288605 929.395935 L 149.154434 936.644409 L 124.993355 914.01355 L 127.973183 876.885986 L 139.409409 864.80542 L 234.201385 799.570435 L 233.879227 799.8927 Z</Geometry>
<Geometry x:Key="OpenAiIconGeometry">M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z</Geometry>
<SolidColorBrush x:Key="ClaudeBrandBrush" Color="#d97757"/>
<!-- Pi glyph — top bar + two legs, roughly a π character at 16×16 -->
<Geometry x:Key="PiIconGeometry">M 2,3 L 14,3 L 14,5 L 13,5 L 13,14 L 11,14 L 11,5 L 7,5 L 7,14 L 5,14 L 5,5 L 2,5 Z</Geometry>
<SolidColorBrush x:Key="PiBrandBrush" Color="#a855f7"/>
<!-- Supermodel wordmark (inlined from supermodel.svg) -->
<DrawingImage x:Key="SupermodelIcon">
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="#61B8BC">
<GeometryDrawing.Geometry>
<PathGeometry FillRule="EvenOdd" Figures="M90.5 61.6124C76.4375 73.9694 60.3419 78.5 45.2554 78.5C30.169 78.5 12.3614 73.1122 0.5 61.6011V17.4458C12.1168 6.5 30.391 0.5 45.4887 0.5C63.27 0.5 79.3723 7.47959 90.4887 17.4458V61.6124H90.5ZM88.6882 39.4553C78.2923 23.3824 60.3983 16.2959 45.2554 16.2959C30.1126 16.2959 13.9515 22.4008 2.056 39.4444C13.0382 55.19 27.4 63.0085 45.2554 62.5944C68.1297 62.0639 78.1495 52.4184 88.6882 39.4553ZM45.2554 16.8475C32.9756 16.8475 22.8888 27.1879 22.7554 39.4388C34.8765 39.4162 45.2554 29.6429 45.2554 16.8475C45.2554 29.6429 55.6344 39.4162 67.7554 39.4388C67.6202 27.0216 57.6141 16.8475 45.2554 16.8475ZM45.2554 62.0639C45.2554 48.9898 34.8765 39.4614 22.7554 39.4388C22.8888 51.6897 32.9756 62.0639 45.2554 62.0639C57.5352 62.0639 67.622 51.6897 67.7554 39.4388C55.6344 39.4614 45.2554 48.9898 45.2554 62.0639Z"/>
</GeometryDrawing.Geometry>
</GeometryDrawing>
<GeometryDrawing Brush="White">
<GeometryDrawing.Geometry>
<PathGeometry FillRule="EvenOdd" Figures="M141.587 6.5C149.129 6.5 155.226 8.67281 160.307 12.6664L160.513 12.8291V25.9152L159.486 24.213C154.693 16.2765 147.808 12.7404 140.23 12.7403C134.79 12.7403 129.469 15.9092 129.469 21.7141C129.469 23.8774 130.048 25.6892 131.318 27.2592C132.598 28.8411 134.611 30.2184 137.55 31.4434L149.766 36.5109C153.951 38.2279 157.187 40.5259 159.376 43.4242C161.569 46.3276 162.686 49.8005 162.686 53.817C162.686 59.393 160.448 64.0803 156.566 67.3659C152.691 70.6458 147.214 72.5 140.773 72.5C131.781 72.5 124.836 69.7904 119.825 64.5934L119.693 64.4571L119.676 64.269L118.5 51.1079L119.527 50.7877C125.887 61.437 133.695 66.1708 142.221 66.1709C145.878 66.1709 148.837 65.1763 150.874 63.4269C152.902 61.6845 154.069 59.1484 154.069 55.9514C154.069 53.7029 153.423 51.6173 152.018 49.7723C150.608 47.9221 148.41 46.285 145.263 44.9785L133.593 40.2671L133.588 40.265C129.229 38.4618 126.081 36.2323 124.025 33.508C121.964 30.7765 121.032 27.59 121.032 23.9372C121.032 18.7578 123.16 14.3831 126.813 11.3107C130.461 8.24391 135.597 6.50001 141.587 6.5Z M513.906 6.5C533.503 6.5 547.133 20.6288 547.133 39.5C547.133 58.3712 533.503 72.5 513.906 72.5C494.306 72.4998 480.77 58.3691 480.77 39.5C480.77 20.6309 494.306 6.50023 513.906 6.5ZM513.906 12.6505C507.351 12.6506 501.507 15.0412 497.298 19.566C493.087 24.0936 490.473 30.8021 490.473 39.5C490.473 48.1979 493.087 54.9064 497.298 59.434C501.507 63.9588 507.351 66.3494 513.906 66.3495C520.461 66.3495 526.305 63.959 530.514 59.434C534.725 54.9064 537.339 48.1979 537.339 39.5C537.339 30.8021 534.725 24.0936 530.514 19.566C526.305 15.041 520.461 12.6505 513.906 12.6505Z M186.482 8.68824C184.745 11.0687 183.925 12.1974 183.522 13.0214C183.152 13.7774 183.146 14.2428 183.146 15.3998V47.414C183.146 53.2288 184.814 57.8205 187.763 60.9534C190.707 64.0809 194.985 65.8148 200.334 65.8148C205.542 65.8148 209.705 64.0841 212.571 60.9587C215.444 57.8262 217.068 53.2325 217.068 47.414V15.2212C217.068 14.0625 217.062 13.6043 216.687 12.8756C216.275 12.0765 215.436 10.9944 213.651 8.70197L212.976 7.83344L227.303 7.83344L226.78 8.65971C225.272 11.0389 224.558 12.1682 224.207 12.995C223.88 13.7626 223.876 14.2413 223.876 15.3998V46.8804C223.876 55.0221 221.632 61.442 217.365 65.8286C213.095 70.219 206.87 72.4989 199.066 72.4989C191.221 72.4989 184.952 70.2651 180.646 65.9089C176.344 61.5551 174.077 55.1559 174.077 46.9692V15.2212C174.077 14.0609 174.071 13.5863 173.748 12.8439C173.398 12.0417 172.686 10.9582 171.178 8.6671L170.628 7.83344L187.107 7.83344L186.482 8.68824Z M262.479 7.83344C269.048 7.83344 274.368 9.59393 278.055 12.6759C281.75 15.7646 283.759 20.1431 283.759 25.2707C283.759 30.3981 281.75 34.7767 278.055 37.8654C274.368 40.9473 269.048 42.7079 262.479 42.7079H249.455V63.7766C249.455 64.9358 249.462 65.3969 249.829 66.1276C250.23 66.927 251.048 68.0091 252.786 70.3012L253.441 71.1655H236.958L237.482 70.3392C238.99 67.9599 239.703 66.8297 240.054 66.0029C240.381 65.2354 240.386 64.7574 240.386 63.5991V15.2212C240.386 14.0609 240.38 13.5863 240.057 12.8439C239.707 12.0418 238.996 10.958 237.488 8.6671L236.937 7.83344L262.479 7.83344ZM249.455 37.0909H260.941C265.452 37.0909 268.763 35.832 270.943 33.7637C273.121 31.6963 274.237 28.7582 274.237 25.2707C274.237 21.7831 273.121 18.845 270.943 16.7776C268.763 14.7093 265.452 13.4504 260.941 13.4504L249.455 13.4504V37.0909Z M333.574 19.6125L332.638 18.7228C329.937 16.1576 328.162 14.923 326.718 14.3178C325.294 13.7215 324.154 13.7177 322.613 13.7177L303.073 13.7177V34.6893L318.903 34.6893C320.358 34.6893 321.406 34.6856 322.647 34.293C323.895 33.8982 325.376 33.0961 327.619 31.4212L328.506 30.7587V44.5052L327.619 43.8427C325.376 42.1677 323.895 41.3646 322.647 40.9697C321.406 40.5772 320.358 40.5735 318.903 40.5735H303.073V65.2813H321.075C322.789 65.2813 324.051 65.2778 325.798 64.5765C327.574 63.8636 329.875 62.4171 333.577 59.4456L334.658 58.5781L333.026 70.6953L332.964 71.1655L290.575 71.1655L291.099 70.3392C292.607 67.9599 293.32 66.8297 293.672 66.0029C293.998 65.2355 294.003 64.7573 294.003 63.5991V15.2212C294.003 14.0609 293.998 13.5863 293.674 12.8439C293.324 12.0417 292.613 10.9581 291.104 8.6671L290.555 7.83344L333.574 7.83344V19.6125Z M367.955 7.83344C374.602 7.83347 380.009 9.45422 383.766 12.398C387.536 15.3523 389.597 19.6025 389.597 24.7371C389.597 29.2752 387.959 33.1093 384.96 35.9635C382.152 38.6362 378.182 40.4182 373.328 41.1504L390.38 62.3714L391.493 63.7291C392.477 64.9221 393.114 65.6683 393.813 66.396C394.746 67.3675 395.792 68.3088 397.925 70.2262L398.971 71.1655H386.058L362.614 41.5519H355.293V63.6879C355.293 64.8928 355.3 65.3627 355.711 66.0948C356.164 66.9021 357.087 67.9827 359.055 70.2758L359.818 71.1655H342.795L343.32 70.3392C344.827 67.9599 345.54 66.8297 345.892 66.0029C346.218 65.2354 346.223 64.7574 346.223 63.5991V15.2212C346.223 14.0609 346.218 13.5863 345.894 12.8439C345.544 12.0418 344.833 10.9581 343.324 8.6671L342.775 7.83344L367.955 7.83344ZM355.293 36.2013H366.778C371.083 36.2013 374.399 35.1546 376.631 33.2449C378.852 31.3446 380.074 28.527 380.074 24.8258C380.074 21.1247 378.852 18.307 376.631 16.4068C374.399 14.4971 371.083 13.4504 366.778 13.4504L355.293 13.4504V36.2013Z M437.807 42.0697L460.68 7.83344L471.913 7.83344L471.409 8.65337C469.947 11.0323 469.255 12.1622 468.913 12.9897C468.596 13.7598 468.592 14.2411 468.592 15.3998V63.7766C468.592 64.9371 468.596 65.4146 468.911 66.1593C469.251 66.9621 469.941 68.0464 471.404 70.3371L471.932 71.1655H454.931L455.663 70.2832C457.674 67.8579 458.625 66.7072 459.092 65.873C459.516 65.1159 459.521 64.6636 459.521 63.5104V20.7061L436.36 55.8827L413.289 20.7938V63.7766C413.289 64.9357 413.296 65.3945 413.671 66.1234C414.083 66.9224 414.922 68.0039 416.706 70.2959L417.383 71.1655L403.236 71.1655L403.76 70.3392C405.268 67.9599 405.981 66.8297 406.332 66.0029C406.659 65.2354 406.664 64.7574 406.664 63.5991V15.2212C406.664 14.0609 406.658 13.5863 406.334 12.8439C405.985 12.0418 405.273 10.9581 403.764 8.6671L403.215 7.83344L414.845 7.83344L437.807 42.0697Z M580.646 7.83344C589.81 7.83344 598.03 10.6253 603.965 16.0031C609.907 21.3866 613.511 29.3181 613.511 39.4989C613.511 49.6799 609.907 57.6123 603.965 62.9958C598.03 68.3734 589.81 71.1655 580.646 71.1655H555.849L556.373 70.3392C557.881 67.9599 558.594 66.8297 558.945 66.0029C559.272 65.2355 559.277 64.7574 559.277 63.5991V15.2212C559.277 14.0609 559.271 13.5863 558.947 12.8439C558.598 12.0417 557.886 10.9581 556.377 8.6671L555.828 7.83344L580.646 7.83344ZM568.346 65.37H579.198C585.729 65.37 591.874 63.2321 596.384 58.9532C600.888 54.679 603.808 48.2235 603.808 39.4989C603.808 30.7296 600.888 24.2755 596.385 20.013C591.876 15.7454 585.73 13.6279 579.198 13.6279L568.346 13.6279V65.37Z M665.194 19.6125L664.256 18.7228C661.555 16.1577 659.781 14.9231 658.337 14.3178C656.913 13.7213 655.772 13.7177 654.232 13.7177L634.691 13.7177V34.6893H650.521C651.976 34.6893 653.025 34.6857 654.266 34.293C655.514 33.8982 656.994 33.0958 659.237 31.4212L660.125 30.7587V44.5052L659.237 43.8427C656.994 42.1678 655.514 41.3646 654.266 40.9697C653.025 40.577 651.976 40.5735 650.521 40.5735H634.691V65.2813H652.693C654.407 65.2813 655.669 65.2778 657.417 64.5765C659.193 63.8636 661.494 62.4175 665.196 59.4456L666.276 58.5781L664.582 71.1655L622.194 71.1655L622.718 70.3392C624.225 67.9599 624.938 66.8297 625.29 66.0029C625.616 65.2354 625.621 64.7574 625.621 63.5991V15.2212C625.621 14.0609 625.616 13.5863 625.292 12.8439C624.942 12.0418 624.232 10.958 622.723 8.6671L622.173 7.83344L665.194 7.83344V19.6125Z M689.902 8.66499C688.348 11.0444 687.614 12.1742 687.252 13.0003C686.916 13.7655 686.912 14.2415 686.912 15.3998V65.1037H703.556C705.361 65.1037 706.708 65.0998 708.517 64.3261C710.355 63.54 712.699 61.944 716.4 58.6627L717.5 57.6874L715.811 71.1655H674.414L674.938 70.3392C676.445 67.9599 677.159 66.8297 677.511 66.0029C677.837 65.2355 677.842 64.7573 677.842 63.5991V15.2212C677.842 14.061 677.837 13.5863 677.513 12.8439C677.163 12.0417 676.452 10.9582 674.943 8.6671L674.394 7.83344L690.445 7.83344L689.902 8.66499Z"/>
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
<!-- Tool option item: icon + name, used by the TOOL ComboBox -->
<Style x:Key="ToolIconStyle" TargetType="Path">
<Setter Property="Width" Value="14"/>
<Setter Property="Height" Value="14"/>
<Setter Property="Stretch" Value="Uniform"/>
<Setter Property="Margin" Value="0,0,6,0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Fill" Value="Transparent"/>
<Setter Property="Data">
<Setter.Value>
<RectangleGeometry Rect="0,0,0,0"/>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding Tool}" Value="{x:Static models:CliTool.ClaudeCode}">
<Setter Property="Data" Value="{StaticResource ClaudeIconGeometry}"/>
<Setter Property="Fill" Value="{StaticResource ClaudeBrandBrush}"/>
</DataTrigger>
<DataTrigger Binding="{Binding Tool}" Value="{x:Static models:CliTool.Codex}">
<Setter Property="Data" Value="{StaticResource OpenAiIconGeometry}"/>
<Setter Property="Fill" Value="White"/>
</DataTrigger>
<DataTrigger Binding="{Binding Tool}" Value="{x:Static models:CliTool.Pi}">
<Setter Property="Data" Value="{StaticResource PiIconGeometry}"/>
<Setter Property="Fill" Value="{StaticResource PiBrandBrush}"/>
</DataTrigger>
</Style.Triggers>
</Style>
<DataTemplate x:Key="ToolOptionTemplate">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Path Style="{StaticResource ToolIconStyle}"/>
<TextBlock Text="{Binding Name}" VerticalAlignment="Center"/>
</StackPanel>
</DataTemplate>
<!-- Palette -->
<SolidColorBrush x:Key="BgWindow" Color="#1e1e1e"/>
<SolidColorBrush x:Key="BgSurface" Color="#252526"/>
<SolidColorBrush x:Key="BgToolbar" Color="#2d2d30"/>
<SolidColorBrush x:Key="BgInput" Color="#1b1b1c"/>
<SolidColorBrush x:Key="BgConsole" Color="#0f0f10"/>
<SolidColorBrush x:Key="FgPrimary" Color="#eaeaea"/>
<SolidColorBrush x:Key="FgMuted" Color="#a8a8ac"/>
<SolidColorBrush x:Key="FgDim" Color="#76767c"/>
<SolidColorBrush x:Key="FgAccent" Color="#7dc4ff"/>
<SolidColorBrush x:Key="Border1" Color="#3f3f46"/>
<SolidColorBrush x:Key="Border2" Color="#2a2a2d"/>
<SolidColorBrush x:Key="Accent" Color="#0e639c"/>
<SolidColorBrush x:Key="AccentHover" Color="#1177bb"/>
<SolidColorBrush x:Key="Success" Color="#16825d"/>
<SolidColorBrush x:Key="SuccessHover" Color="#1a9b70"/>
<SolidColorBrush x:Key="Danger" Color="#b03030"/>
<SolidColorBrush x:Key="DangerHover" Color="#cc3838"/>
<!-- ========== Pill design system — restrained, Apple-adjacent ========== -->
<!-- Shared surface: barely lifted from toolbar, hairline border -->
<SolidColorBrush x:Key="PillSurface" Color="#1f1f23"/>
<SolidColorBrush x:Key="PillHairline" Color="#2c2c32"/>
<SolidColorBrush x:Key="PillLabelColor" Color="#7a7a82"/>
<!-- Status accents: single saturated color per state, flat (no gradients) -->
<SolidColorBrush x:Key="AccentEmerald" Color="#34d399"/>
<SolidColorBrush x:Key="AccentEmeraldDim" Color="#2a3b35"/>
<SolidColorBrush x:Key="AccentAmber" Color="#fbbf24"/>
<SolidColorBrush x:Key="AccentAmberDim" Color="#3b3422"/>
<SolidColorBrush x:Key="AccentRose" Color="#f87171"/>
<SolidColorBrush x:Key="AccentRoseDim" Color="#3b2428"/>
<!-- Progress track + fill for the TASKS pill -->
<SolidColorBrush x:Key="PillTrack" Color="#2a2a30"/>
<!-- Base pill: shared surface, hairline, tight single-row padding -->
<Style x:Key="StatusPill" TargetType="Border">
<Setter Property="Background" Value="{StaticResource PillSurface}"/>
<Setter Property="BorderBrush" Value="{StaticResource PillHairline}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="6"/>
<Setter Property="Padding" Value="10,2,10,2"/>
<Setter Property="Margin" Value="0,0,6,0"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<!-- Status variants share the surface; only the content color differs -->
<Style x:Key="StatusPillOk" TargetType="Border" BasedOn="{StaticResource StatusPill}"/>
<Style x:Key="StatusPillWarn" TargetType="Border" BasedOn="{StaticResource StatusPill}"/>
<Style x:Key="StatusPillDanger" TargetType="Border" BasedOn="{StaticResource StatusPill}"/>
<!-- Typography — legible label (no small-caps — too small to read at a glance) -->
<Style x:Key="PillLabel" TargetType="TextBlock">
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{StaticResource PillLabelColor}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="TextOptions.TextFormattingMode" Value="Ideal"/>
</Style>
<Style x:Key="PillNumber" TargetType="TextBlock">
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Typography.NumeralAlignment" Value="Tabular"/>
<Setter Property="TextOptions.TextFormattingMode" Value="Ideal"/>
</Style>
<Style x:Key="PillDot" TargetType="Ellipse">
<Setter Property="Width" Value="6"/>
<Setter Property="Height" Value="6"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Margin" Value="0,0,8,0"/>
</Style>
<!-- Thin 2px progress bar with fully-rounded caps (capsule style) -->
<Style x:Key="MiniProgressBar" TargetType="ProgressBar">
<Setter Property="Height" Value="3"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Minimum" Value="0"/>
<Setter Property="Maximum" Value="100"/>
<Setter Property="Foreground" Value="{StaticResource AccentEmerald}"/>
<Setter Property="Background" Value="{StaticResource PillTrack}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ProgressBar">
<Border Background="{TemplateBinding Background}"
CornerRadius="1.5" ClipToBounds="True">
<Grid>
<Rectangle Name="PART_Track"/>
<Rectangle Name="PART_Indicator"
HorizontalAlignment="Left"
Fill="{TemplateBinding Foreground}"
RadiusX="1.5" RadiusY="1.5"/>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Flat button -->
<Style x:Key="FlatButton" TargetType="Button">
<Setter Property="Background" Value="#3a3a3d"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="BorderBrush" Value="{StaticResource Border1}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="10,5"/>
<Setter Property="MinWidth" Value="64"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4" SnapsToDevicePixels="True">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="{TemplateBinding Padding}" RecognizesAccessKey="True"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#4a4a4e"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#2c2c2f"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Bd" Property="Opacity" Value="0.45"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Primary Start/Stop -->
<Style x:Key="PrimaryButton" TargetType="Button" BasedOn="{StaticResource FlatButton}">
<Setter Property="Background" Value="{StaticResource Success}"/>
<Setter Property="BorderBrush" Value="#0f5f44"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Padding" Value="18,7"/>
<Setter Property="MinWidth" Value="100"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1" CornerRadius="4">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="{TemplateBinding Padding}"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource SuccessHover}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding IsRunning}" Value="True">
<Setter Property="Background" Value="{StaticResource Danger}"/>
<Setter Property="BorderBrush" Value="#7a1f1f"/>
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="TaskFilterChip" TargetType="RadioButton">
<Setter Property="Foreground" Value="{StaticResource FgMuted}"/>
<Setter Property="Background" Value="#232327"/>
<Setter Property="BorderBrush" Value="{StaticResource Border1}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="8,3"/>
<Setter Property="Margin" Value="0,0,6,0"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border x:Name="Bd"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4"
Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#2c2c31"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#16364d"/>
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Bd" Property="Opacity" Value="0.45"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Inputs -->
<Style TargetType="TextBox">
<Setter Property="Background" Value="{StaticResource BgInput}"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="BorderBrush" Value="{StaticResource Border1}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="6,4"/>
<Setter Property="CaretBrush" Value="{StaticResource FgPrimary}"/>
<Setter Property="SelectionBrush" Value="{StaticResource Accent}"/>
</Style>
<Style TargetType="Label">
<Setter Property="Foreground" Value="{StaticResource FgDim}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Padding" Value="0,0,6,0"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<!-- ComboBox toggle button template used inside the ComboBox template -->
<ControlTemplate x:Key="ComboToggleTemplate" TargetType="ToggleButton">
<Border x:Name="Bd" Background="{StaticResource BgInput}"
BorderBrush="{StaticResource Border1}"
BorderThickness="1" CornerRadius="4"/>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
<Setter TargetName="Bd" Property="Background" Value="#232327"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<!-- ComboBox -->
<Style TargetType="ComboBox">
<Setter Property="Background" Value="{StaticResource BgInput}"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="BorderBrush" Value="{StaticResource Border1}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="8,4"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBox">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="22"/>
</Grid.ColumnDefinitions>
<ToggleButton x:Name="ToggleButton" Grid.ColumnSpan="2"
Focusable="False" ClickMode="Press"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
Template="{StaticResource ComboToggleTemplate}"
Background="{TemplateBinding Background}"/>
<ContentPresenter x:Name="ContentSite" Grid.Column="0"
IsHitTestVisible="False"
Content="{TemplateBinding SelectionBoxItem}"
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
Margin="{TemplateBinding Padding}"
VerticalAlignment="Center" HorizontalAlignment="Left"/>
<Path Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Fill="{StaticResource FgMuted}" Data="M 0 0 L 8 0 L 4 5 Z"
IsHitTestVisible="False"/>
<Popup x:Name="Popup" Placement="Bottom"
IsOpen="{TemplateBinding IsDropDownOpen}"
AllowsTransparency="True" Focusable="False" PopupAnimation="Slide">
<Border Background="{StaticResource BgSurface}"
BorderBrush="{StaticResource Border1}" BorderThickness="1"
CornerRadius="4"
MinWidth="{TemplateBinding ActualWidth}"
MaxHeight="{TemplateBinding MaxDropDownHeight}"
Margin="0,2,0,0">
<ScrollViewer>
<StackPanel IsItemsHost="True"
KeyboardNavigation.DirectionalNavigation="Contained"/>
</ScrollViewer>
</Border>
</Popup>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Editable ComboBox (Model / Effort): free-text entry + dropdown -->
<Style x:Key="EditableComboBox" TargetType="ComboBox">
<Setter Property="IsEditable" Value="True"/>
<Setter Property="Background" Value="{StaticResource BgInput}"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="BorderBrush" Value="{StaticResource Border1}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="8,4"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBox">
<Grid SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="22"/>
</Grid.ColumnDefinitions>
<Border x:Name="OuterBd" Grid.ColumnSpan="2"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4"/>
<TextBox x:Name="PART_EditableTextBox" Grid.Column="0"
Margin="{TemplateBinding Padding}"
Background="Transparent" BorderThickness="0"
Foreground="{StaticResource FgPrimary}"
CaretBrush="{StaticResource FgPrimary}"
SelectionBrush="{StaticResource Accent}"
VerticalAlignment="Center"
FocusVisualStyle="{x:Null}"/>
<ToggleButton Grid.Column="1" Focusable="False" ClickMode="Press"
Background="Transparent"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
<ToggleButton.Template>
<ControlTemplate TargetType="ToggleButton">
<Border Background="Transparent">
<Path HorizontalAlignment="Center" VerticalAlignment="Center"
Fill="{StaticResource FgMuted}" Data="M 0 0 L 8 0 L 4 5 Z"/>
</Border>
</ControlTemplate>
</ToggleButton.Template>
</ToggleButton>
<Popup x:Name="Popup" Placement="Bottom"
IsOpen="{TemplateBinding IsDropDownOpen}"
AllowsTransparency="True" Focusable="False" PopupAnimation="Slide">
<Border Background="{StaticResource BgSurface}"
BorderBrush="{StaticResource Border1}" BorderThickness="1"
CornerRadius="4" Margin="0,2,0,0"
MinWidth="{TemplateBinding ActualWidth}"
MaxHeight="{TemplateBinding MaxDropDownHeight}">
<ScrollViewer>
<StackPanel IsItemsHost="True"
KeyboardNavigation.DirectionalNavigation="Contained"/>
</ScrollViewer>
</Border>
</Popup>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter TargetName="OuterBd" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
</Trigger>
<Trigger Property="IsDropDownOpen" Value="True">
<Setter TargetName="OuterBd" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ComboBoxItem">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="Padding" Value="12,6"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBoxItem">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
<ContentPresenter/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Accent}"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#1a4e74"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="CheckBox">
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="MinHeight" Value="30"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<Border x:Name="Root"
Background="Transparent"
CornerRadius="5"
Padding="6,4"
SnapsToDevicePixels="True">
<DockPanel LastChildFill="True">
<Border x:Name="Box"
Width="18" Height="18"
CornerRadius="4"
Background="{StaticResource BgInput}"
BorderBrush="{StaticResource Border1}"
BorderThickness="1"
VerticalAlignment="Center">
<Path x:Name="Tick"
Data="M 3 9 L 7 13 L 15 5"
Stroke="White"
StrokeThickness="2"
StrokeStartLineCap="Round"
StrokeEndLineCap="Round"
StrokeLineJoin="Round"
Visibility="Collapsed"/>
</Border>
<ContentPresenter Margin="8,0,0,0"
VerticalAlignment="Center"
RecognizesAccessKey="True"
TextElement.Foreground="{TemplateBinding Foreground}"/>
</DockPanel>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Root" Property="Background" Value="#26282d"/>
<Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
</Trigger>
<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter TargetName="Root" Property="Background" Value="#26282d"/>
<Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="Box" Property="Background" Value="{StaticResource Accent}"/>
<Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
<Setter TargetName="Tick" Property="Visibility" Value="Visible"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Root" Property="Opacity" Value="0.45"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Dark ContextMenu + MenuItem + Separator -->
<Style TargetType="ContextMenu">
<Setter Property="Background" Value="{StaticResource BgSurface}"/>
<Setter Property="BorderBrush" Value="{StaticResource Border1}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="Padding" Value="4"/>
<Setter Property="HasDropShadow" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContextMenu">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4"
Padding="{TemplateBinding Padding}"
SnapsToDevicePixels="True">
<StackPanel IsItemsHost="True"
KeyboardNavigation.DirectionalNavigation="Cycle"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Dark MenuItem. Separate templates per Role so submenus
actually render — the previous single template dropped the
submenu popup + arrow entirely, which is why nested colon-
scripts and workspace expanders looked flat/broken. -->
<ControlTemplate x:Key="DarkMenuItemLeafTemplate" TargetType="MenuItem">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
Padding="{TemplateBinding Padding}" CornerRadius="3"
SnapsToDevicePixels="True">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ContentPresenter Grid.Column="0" ContentSource="Header" RecognizesAccessKey="True"
VerticalAlignment="Center"
TextElement.Foreground="{TemplateBinding Foreground}"/>
<TextBlock Grid.Column="1" x:Name="IGT"
Text="{TemplateBinding InputGestureText}"
Foreground="{StaticResource FgDim}"
Margin="14,0,0,0" VerticalAlignment="Center"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Accent}"/>
<Setter Property="Foreground" Value="White"/>
<Setter TargetName="IGT" Property="Foreground" Value="White"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.45"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate x:Key="DarkMenuItemSubmenuTemplate" TargetType="MenuItem">
<Grid>
<Border x:Name="Bd" Background="{TemplateBinding Background}"
Padding="{TemplateBinding Padding}" CornerRadius="3"
SnapsToDevicePixels="True">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ContentPresenter Grid.Column="0" ContentSource="Header" RecognizesAccessKey="True"
VerticalAlignment="Center"
TextElement.Foreground="{TemplateBinding Foreground}"/>
<TextBlock Grid.Column="1" x:Name="Arrow" Text="▸"
FontSize="10"
Foreground="{StaticResource FgDim}"
Margin="14,0,0,0" VerticalAlignment="Center"/>
</Grid>
</Border>
<Popup x:Name="PART_Popup"
Placement="Right"
HorizontalOffset="-2"
IsOpen="{TemplateBinding IsSubmenuOpen}"
AllowsTransparency="True"
Focusable="False"
PopupAnimation="Fade">
<Border Background="{StaticResource BgSurface}"
BorderBrush="{StaticResource Border1}" BorderThickness="1"
CornerRadius="5" Padding="3"
SnapsToDevicePixels="True">
<ItemsPresenter KeyboardNavigation.DirectionalNavigation="Cycle"
KeyboardNavigation.TabNavigation="Cycle"/>
</Border>
</Popup>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Accent}"/>
<Setter Property="Foreground" Value="White"/>
<Setter TargetName="Arrow" Property="Foreground" Value="White"/>
</Trigger>
<Trigger Property="IsSubmenuOpen" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#3a3a3d"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.45"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style TargetType="MenuItem">
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="10,6"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template" Value="{StaticResource DarkMenuItemLeafTemplate}"/>
<Style.Triggers>
<!-- Swap to the submenu template when the item has children.
Covers both SubmenuHeader and TopLevelHeader roles. -->
<Trigger Property="Role" Value="SubmenuHeader">
<Setter Property="Template" Value="{StaticResource DarkMenuItemSubmenuTemplate}"/>
</Trigger>
<Trigger Property="Role" Value="TopLevelHeader">
<Setter Property="Template" Value="{StaticResource DarkMenuItemSubmenuTemplate}"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="Separator">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Separator">
<Border Background="{StaticResource Border2}" Height="1" Margin="4,4"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Dark ScrollBar -->
<Style x:Key="ScrollThumb" TargetType="Thumb">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<!-- Keep the thumb large enough to grab even when the console
doc is enormous. Track honors the thumb's MinHeight/MinWidth,
so long sessions can't shrink it past a clickable size. -->
<Setter Property="MinHeight" Value="36"/>
<Setter Property="MinWidth" Value="36"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Thumb">
<Border x:Name="Bd" Background="#4a4a51" CornerRadius="3" Margin="2"/>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#6a6a72"/>
</Trigger>
<Trigger Property="IsDragging" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#7d7d86"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="InvisibleRepeatButton" TargetType="RepeatButton">
<Border Background="Transparent"/>
</ControlTemplate>
<Style TargetType="ScrollBar">
<Setter Property="Background" Value="#181819"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Style.Triggers>
<Trigger Property="Orientation" Value="Vertical">
<Setter Property="Width" Value="12"/>
<Setter Property="MinWidth" Value="12"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Grid Background="{TemplateBinding Background}">
<Track x:Name="PART_Track" IsDirectionReversed="True">
<Track.DecreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageUpCommand"
Template="{StaticResource InvisibleRepeatButton}"/>
</Track.DecreaseRepeatButton>
<Track.IncreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageDownCommand"
Template="{StaticResource InvisibleRepeatButton}"/>
</Track.IncreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ScrollThumb}"/>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="Orientation" Value="Horizontal">
<Setter Property="Height" Value="12"/>
<Setter Property="MinHeight" Value="12"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Grid Background="{TemplateBinding Background}">
<Track x:Name="PART_Track">
<Track.DecreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageLeftCommand"
Template="{StaticResource InvisibleRepeatButton}"/>
</Track.DecreaseRepeatButton>
<Track.IncreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageRightCommand"
Template="{StaticResource InvisibleRepeatButton}"/>
</Track.IncreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ScrollThumb}"/>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
<!-- Numeric stepper button (±) -->
<Style x:Key="StepperButton" TargetType="RepeatButton">
<Setter Property="Width" Value="22"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{StaticResource FgMuted}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Delay" Value="400"/>
<Setter Property="Interval" Value="60"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Border x:Name="Bd" Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#3a3a3f"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Accent}"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Toolbar divider -->
<Style x:Key="ToolbarDivider" TargetType="Border">
<Setter Property="Width" Value="1"/>
<Setter Property="Background" Value="{StaticResource Border1}"/>
<Setter Property="Margin" Value="12,4"/>
</Style>
<!-- Pane header label -->
<Style x:Key="PaneHeader" TargetType="TextBlock">
<Setter Property="Foreground" Value="{StaticResource FgMuted}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Padding" Value="4,0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<!-- Pane header bar -->
<Style x:Key="PaneHeaderBar" TargetType="Border">
<Setter Property="Background" Value="{StaticResource BgToolbar}"/>
<Setter Property="BorderBrush" Value="{StaticResource Border2}"/>
<Setter Property="BorderThickness" Value="1,1,1,0"/>
<Setter Property="Padding" Value="8,5"/>
<Setter Property="CornerRadius" Value="4,4,0,0"/>
</Style>
<!-- ===== Git panel styles ===== -->
<Style x:Key="GitIconButton" TargetType="Button">
<Setter Property="Width" Value="24"/>
<Setter Property="Height" Value="22"/>
<Setter Property="Margin" Value="2,0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{StaticResource FgMuted}"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
CornerRadius="3" SnapsToDevicePixels="True">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#3a3a3f"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="GitRowActionButton" TargetType="Button" BasedOn="{StaticResource GitIconButton}">
<Setter Property="Width" Value="22"/>
<Setter Property="Height" Value="20"/>
<Setter Property="Margin" Value="2,0,0,0"/>
<Setter Property="Opacity" Value="1"/>
<Setter Property="Background" Value="#232327"/>
</Style>
<!-- Icon-only action button for the commit bar. Slightly larger
hit target than the header-row icons, matches the Commit /
Amend / Stash row's vertical rhythm. -->
<Style x:Key="GitIconActionButton" TargetType="Button" BasedOn="{StaticResource GitIconButton}">
<Setter Property="Width" Value="30"/>
<Setter Property="Height" Value="28"/>
<Setter Property="Margin" Value="0"/>
</Style>
<!-- Compact icon button used by each queued-chat chip's action
row (duplicate, copy, remove, reorder). Centralising the
transparent-with-hover look kills six copies of the same
inline attribute bag and adds a proper hover affordance. -->
<Style x:Key="QueueChipActionButton" TargetType="Button">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{StaticResource FgDim}"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="MinWidth" Value="0"/>
<Setter Property="Padding" Value="6,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
CornerRadius="3" Padding="{TemplateBinding Padding}"
SnapsToDevicePixels="True">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="#3a3a3f"/>
<Setter Property="Foreground" Value="{StaticResource FgPrimary}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.35"/>
<Setter Property="Cursor" Value="Arrow"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Boundary-aware variants: the up-arrow on the head chip and
the down-arrow on the tail chip self-disable via a binding
on IsFirst/IsLast, so we don't need a code-behind guard and
the user sees the no-op up front. -->
<Style x:Key="QueueChipMoveUpButton" TargetType="Button"
BasedOn="{StaticResource QueueChipActionButton}">
<Setter Property="FontSize" Value="10"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsFirst}" Value="True">
<Setter Property="IsEnabled" Value="False"/>
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="QueueChipMoveDownButton" TargetType="Button"
BasedOn="{StaticResource QueueChipActionButton}">
<Setter Property="FontSize" Value="10"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsLast}" Value="True">
<Setter Property="IsEnabled" Value="False"/>
</DataTrigger>
</Style.Triggers>
</Style>
<!-- Shared hover style for Git file rows. Was previously an
inline <Border.Style> inside every DataTemplate instance,
which forced WPF to construct a fresh Style object per row
on every list refresh. Pulling it up here means one Style,
shared across all rows, zero allocations per refresh. -->
<Style x:Key="GitFileRowBorder" TargetType="Border">
<Setter Property="CornerRadius" Value="3"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="6,3"/>
<Setter Property="Margin" Value="4,0"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#2b2b30"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="GitBranchChip" TargetType="Button">
<Setter Property="Background" Value="{StaticResource BgInput}"/>
<Setter Property="BorderBrush" Value="{StaticResource Border1}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Padding" Value="10,3"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Padding="{TemplateBinding Padding}"
CornerRadius="5">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource FgAccent}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="GitPrimaryButton" TargetType="Button">
<Setter Property="Background" Value="{StaticResource Success}"/>
<Setter Property="BorderBrush" Value="#0f5f44"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Padding" Value="12,5"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="Bd" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Padding="{TemplateBinding Padding}"
CornerRadius="4">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{StaticResource SuccessHover}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="Bd" Property="Opacity" Value="0.4"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="GitSecondaryButton" TargetType="Button" BasedOn="{StaticResource GitPrimaryButton}">