-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettingsWindow.xaml
More file actions
2750 lines (2648 loc) · 203 KB
/
Copy pathSettingsWindow.xaml
File metadata and controls
2750 lines (2648 loc) · 203 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="FluidBar.SettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="FluidBar 设置"
Width="968" Height="616"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
ResizeMode="NoResize"
ShowInTaskbar="False"
Topmost="True"
WindowStartupLocation="CenterScreen"
Loaded="Window_Loaded"
MouseLeftButtonDown="Window_MouseLeftButtonDown">
<Window.Resources>
<!-- ============================================================
Theme Tokens — 可主题切换的画刷(DynamicResource)
代码后台 UpdateThemeVisuals 会改写这些画刷的 Color
============================================================ -->
<SolidColorBrush x:Key="ThemeBg" Color="#F5F5F7"/>
<SolidColorBrush x:Key="ThemeSurface" Color="#FFFFFF"/>
<SolidColorBrush x:Key="ThemeCardBg" Color="#FFFFFF"/>
<SolidColorBrush x:Key="ThemeSidebar" Color="#EDEDF1"/>
<SolidColorBrush x:Key="ThemeIconTile" Color="#F5F5F7"/>
<SolidColorBrush x:Key="ThemeFg" Color="#1D1D1F"/>
<SolidColorBrush x:Key="ThemeFgSecondary" Color="#6E6E73"/>
<SolidColorBrush x:Key="ThemeFgTertiary" Color="#8E8E93"/>
<SolidColorBrush x:Key="ThemeBorder" Color="#E5E5EA"/>
<SolidColorBrush x:Key="ThemeBorderStrong" Color="#D8D9DF"/>
<SolidColorBrush x:Key="ThemeAccent" Color="#4685C0"/>
<SolidColorBrush x:Key="ThemeAccentBg" Color="#E8F0F8"/>
<SolidColorBrush x:Key="ThemeHover" Color="#F0F0F2"/>
<SolidColorBrush x:Key="ThemeTagBg" Color="#F0F0F2"/>
<!-- ============================================================
Design Tokens — 横版现代化白色主题
============================================================ -->
<SolidColorBrush x:Key="ColorBg" Color="#F5F5F7"/>
<SolidColorBrush x:Key="ColorSurface" Color="#FFFFFF"/>
<SolidColorBrush x:Key="ColorSurfaceHover" Color="#F0F0F2"/>
<SolidColorBrush x:Key="ColorSurfaceActive" Color="#EBEBED"/>
<SolidColorBrush x:Key="ColorSidebar" Color="#EDEDF1"/>
<SolidColorBrush x:Key="ColorFg" Color="#1D1D1F"/>
<!-- ============================================================
微妙渐变画刷 — 借鉴 Day-night-toggle 的暖光氛围
主背景带极淡的暖黄光晕(如日光扩散),侧边栏用冷灰拉开层次
============================================================ -->
<RadialGradientBrush x:Key="BgGradient"
GradientOrigin="0.85,0.12" Center="0.85,0.12"
RadiusX="0.9" RadiusY="0.7">
<GradientStop Color="#FFFDF6" Offset="0"/>
<GradientStop Color="#FBFAF5" Offset="0.35"/>
<GradientStop Color="#F4F4F8" Offset="0.75"/>
<GradientStop Color="#EEEFF3" Offset="1"/>
</RadialGradientBrush>
<LinearGradientBrush x:Key="TitleCardBg" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#FFFBF3" Offset="0"/>
<GradientStop Color="#F3F6FB" Offset="0.55"/>
<GradientStop Color="#EAF0F8" Offset="1"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="SidebarGradient" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#E9E9EE" Offset="0"/>
<GradientStop Color="#E2E2E8" Offset="1"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="CardGradient" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FFFFFF" Offset="0"/>
<GradientStop Color="#FBFBFD" Offset="1"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="IconTileGradient" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#F8F8FB" Offset="0"/>
<GradientStop Color="#EFF0F4" Offset="1"/>
</LinearGradientBrush>
<!-- 选中导航胶囊的暖白渐变 -->
<LinearGradientBrush x:Key="NavActiveGradient" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#FFFFFF" Offset="0"/>
<GradientStop Color="#F7F8FB" Offset="1"/>
</LinearGradientBrush>
<SolidColorBrush x:Key="ColorFgSecondary" Color="#6E6E73"/>
<SolidColorBrush x:Key="ColorFgTertiary" Color="#AEAEB2"/>
<SolidColorBrush x:Key="ColorBorder" Color="#E5E5EA"/>
<SolidColorBrush x:Key="ColorBorderHover" Color="#D1D1D6"/>
<SolidColorBrush x:Key="ColorAccent" Color="#4685C0"/>
<SolidColorBrush x:Key="ColorAccentHover" Color="#3A72A6"/>
<SolidColorBrush x:Key="ColorAccentBg" Color="#E8F0F8"/>
<SolidColorBrush x:Key="ColorAccentText" Color="#4685C0"/>
<SolidColorBrush x:Key="ColorDanger" Color="#FF3B30"/>
<SolidColorBrush x:Key="ColorDangerBg" Color="#FFF0EF"/>
<SolidColorBrush x:Key="ColorSuccess" Color="#34C759"/>
<SolidColorBrush x:Key="ColorTrackInactive" Color="#E5E5EA"/>
<SolidColorBrush x:Key="ColorNavActiveBg" Color="#FFFFFF"/>
<SolidColorBrush x:Key="ColorNavInactiveFg" Color="#6E6E73"/>
<!-- ============================================================
Typography
============================================================ -->
<FontFamily x:Key="FontUI">Segoe UI Variable Text, Segoe UI, Microsoft YaHei UI</FontFamily>
<FontFamily x:Key="FontDisplay">Segoe UI Variable Display, Segoe UI, Microsoft YaHei UI</FontFamily>
<Geometry x:Key="starGeometry">F0M100,50 C72.38589,50 50,72.38589 50,100 C50,72.38589 27.61411,50 0,50 C27.61411,50 50,27.61411 50,0 C50,27.61411 72.38589,50 100,50 z</Geometry>
<!-- 閼洪亶鍣烽懗鈥虫憼閻ㄥ嫮娈戝ǎ杈/濞村懓澹婇崚鍥ㄥ床閹稿鎸抽弽宄扮础 -->
<Style x:Key="ToggleButtonGorgeousThemeSwitchStyle" TargetType="{x:Type ToggleButton}">
<Setter Property="Height" Value="22" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Padding" Value="6,0,0,0" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Foreground" Value="{DynamicResource PrimaryTextBrush}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ToggleButton}">
<ControlTemplate.Resources>
<Storyboard x:Key="StoryboardChecked">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="thumb" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="66">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="63">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames Storyboard.TargetName="backBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
<EasingColorKeyFrame KeyTime="0:0:0.6" Value="#171E33">
<EasingColorKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingColorKeyFrame.EasingFunction>
</EasingColorKeyFrame>
</ColorAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="glow1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="23">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="21">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="glow2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="35">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="33">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="glow3" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="47">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="45">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="cloud1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="34">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="cloud2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="26">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="stars" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="3">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="moon" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-1">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="star1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:1.9" Value="0" />
<EasingDoubleKeyFrame KeyTime="0:0:2.5" Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="star2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<EasingDoubleKeyFrame KeyTime="0:0:1.6" Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:2.2" Value="0" />
<EasingDoubleKeyFrame KeyTime="0:0:2.8" Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="star3" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<EasingDoubleKeyFrame KeyTime="0:0:2.0" Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:2.5" Value="0" />
<EasingDoubleKeyFrame KeyTime="0:0:3.1" Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="star4" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<EasingDoubleKeyFrame KeyTime="0:0:2.2" Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:2.7" Value="0" />
<EasingDoubleKeyFrame KeyTime="0:0:3.3" Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="star5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<EasingDoubleKeyFrame KeyTime="0:0:2.6" Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:3.0" Value="0" />
<EasingDoubleKeyFrame KeyTime="0:0:3.6" Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="StoryboardUnChecked">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="thumb" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="2">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="4">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<ColorAnimationUsingKeyFrames Storyboard.TargetName="backBorder" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
<EasingColorKeyFrame KeyTime="0:0:0.7" Value="#4685C0">
<EasingColorKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingColorKeyFrame.EasingFunction>
</EasingColorKeyFrame>
</ColorAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="glow1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-2">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="glow2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-2">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="glow3" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-2">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.3" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="cloud1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-6">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:2.4" Value="4">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:3.6" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="cloud2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-4">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:1.8" Value="3">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
<EasingDoubleKeyFrame KeyTime="0:0:2.8" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="stars" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="-36">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="moon" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="34">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="UnCheckedReduceSize">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ShadowElement" Storyboard.TargetProperty="(FrameworkElement.Opacity)">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="0" />
</DoubleAnimationUsingKeyFrames>
<RectAnimationUsingKeyFrames Storyboard.TargetName="frameBorder" Storyboard.TargetProperty="(UIElement.Clip).(RectangleGeometry.Rect)">
<EasingRectKeyFrame KeyTime="00:00:00.5" Value="0,0,41,40">
<EasingRectKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingRectKeyFrame.EasingFunction>
</EasingRectKeyFrame>
</RectAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="frameBorder" Storyboard.TargetProperty="(FrameworkElement.Width)">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="42">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<ThicknessAnimationUsingKeyFrames Storyboard.TargetName="secondGrid" Storyboard.TargetProperty="(FrameworkElement.Margin)">
<EasingThicknessKeyFrame KeyTime="00:00:00.5" Value="0,0,0,0">
<EasingThicknessKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingThicknessKeyFrame.EasingFunction>
</EasingThicknessKeyFrame>
</ThicknessAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="CheckedReduceSize">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ShadowElement" Storyboard.TargetProperty="(FrameworkElement.Opacity)">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="0" />
</DoubleAnimationUsingKeyFrames>
<RectAnimationUsingKeyFrames Storyboard.TargetName="frameBorder" Storyboard.TargetProperty="(UIElement.Clip).(RectangleGeometry.Rect)">
<EasingRectKeyFrame KeyTime="00:00:00.5" Value="0,0,41,40">
<EasingRectKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingRectKeyFrame.EasingFunction>
</EasingRectKeyFrame>
</RectAnimationUsingKeyFrames>
<ThicknessAnimationUsingKeyFrames Storyboard.TargetName="secondGrid" Storyboard.TargetProperty="(FrameworkElement.Margin)">
<EasingThicknessKeyFrame KeyTime="00:00:00.5" Value="-59,0,0,0">
<EasingThicknessKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingThicknessKeyFrame.EasingFunction>
</EasingThicknessKeyFrame>
</ThicknessAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="frameBorder" Storyboard.TargetProperty="(FrameworkElement.Width)">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="41">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="RestoreSize">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ShadowElement" Storyboard.TargetProperty="(FrameworkElement.Opacity)">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="1" />
</DoubleAnimationUsingKeyFrames>
<RectAnimationUsingKeyFrames Storyboard.TargetName="frameBorder" Storyboard.TargetProperty="(UIElement.Clip).(RectangleGeometry.Rect)">
<EasingRectKeyFrame KeyTime="00:00:00.5" Value="0,0,100,40">
<EasingRectKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingRectKeyFrame.EasingFunction>
</EasingRectKeyFrame>
</RectAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="frameBorder" Storyboard.TargetProperty="(FrameworkElement.Width)">
<EasingDoubleKeyFrame KeyTime="00:00:00.5" Value="100">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<ThicknessAnimationUsingKeyFrames Storyboard.TargetName="secondGrid" Storyboard.TargetProperty="(FrameworkElement.Margin)">
<EasingThicknessKeyFrame KeyTime="00:00:00.5" Value="0,0,0,0">
<EasingThicknessKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingThicknessKeyFrame.EasingFunction>
</EasingThicknessKeyFrame>
</ThicknessAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="ThumbMouseHover">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="sun" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
<EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="30">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimation Storyboard.TargetName="highlightMask" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5">
<DoubleAnimation.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
<Storyboard x:Key="ThumbMouseLeave">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="sun" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)">
<EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="0">
<EasingDoubleKeyFrame.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</EasingDoubleKeyFrame.EasingFunction>
</EasingDoubleKeyFrame>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimation Storyboard.TargetName="highlightMask" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5">
<DoubleAnimation.EasingFunction>
<PowerEase EasingMode="EaseInOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
<Style TargetType="{x:Type Path}">
<Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
<Setter Property="RenderTransform">
<Setter.Value>
<TransformGroup>
<TranslateTransform />
</TransformGroup>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type Rectangle}">
<Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
<Setter Property="RenderTransform">
<Setter.Value>
<TransformGroup>
<TranslateTransform />
</TransformGroup>
</Setter.Value>
</Setter>
</Style>
</ControlTemplate.Resources>
<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Viewbox>
<Border x:Name="frameBorder" Grid.Column="0" Width="100" Height="40" CornerRadius="20">
<Grid x:Name="secondGrid">
<Border x:Name="backBorder" Width="100" Height="40" Background="#4685C0" CornerRadius="20" />
<Canvas x:Name="stars">
<Canvas.Resources>
<Style TargetType="{x:Type Path}">
<Setter Property="Data" Value="{StaticResource starGeometry}" />
<Setter Property="Stretch" Value="UniformToFill" />
<Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
<Setter Property="RenderTransform">
<Setter.Value>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Path}, Path=RenderTransform.Children[0].ScaleX}" />
</TransformGroup>
</Setter.Value>
</Setter>
</Style>
</Canvas.Resources>
<Canvas.RenderTransform>
<TransformGroup>
<TranslateTransform Y="-36" />
</TransformGroup>
</Canvas.RenderTransform>
<Path Canvas.Left="11.5" Canvas.Top="26.5" Width="5" Height="5" Fill="White" />
<Path x:Name="star3" Canvas.Left="24.635" Canvas.Top="26.5" Width="5" Height="5" Fill="White" />
<Path x:Name="star5" Canvas.Left="44.5" Canvas.Top="29.5" Width="5" Height="5" Fill="White" />
<Path x:Name="star1" Canvas.Left="20.635" Canvas.Top="5.5" Width="7" Height="7" Fill="White" />
<Path x:Name="star2" Canvas.Left="48.5" Canvas.Top="10" Width="7" Height="7" Fill="White" />
<Path Canvas.Left="32.315" Canvas.Top="12.5" Width="3" Height="3" Fill="White" />
<Path Canvas.Left="23.635" Canvas.Top="18" Width="3" Height="3" Fill="White" />
<Path Canvas.Left="33.999" Canvas.Top="24" Width="3" Height="3" Fill="White" />
<Path Canvas.Left="47" Canvas.Top="22.5" Width="3" Height="3" Fill="White" />
<Path Canvas.Left="39.481" Canvas.Top="7.997" Width="3" Height="3" Fill="White" />
<Path x:Name="star4" Canvas.Left="10" Canvas.Top="11" Width="3" Height="3" Fill="White" />
</Canvas>
<Path x:Name="cloud1" Margin="2,2,-3,-9"
Data="M158.99223,453.55724 C169.78284,423.31232 203.15378,392.41965 241.59875,404.12313 261.99875,383.72313 299.3,391.57463 305.3,392.77701 330.15525,362.39707 353.16314,370.00505 368.58869,378.91567 370.80287,377.8725 376.53823,377.01298 381.06677,376.82559 387.43795,354.90123 410.63981,354.27147 420.4351,355.75324 432.85079,341.48144 440.27525,342.83843 451.87985,342.32945 457.75133,307.27233 472.82215,288.94564 509.06064,292.16184 512.31051,292.45027 525.93938,292.61638 525.93938,292.61638 525.90428,295.34879 526.73875,460.86787 526.8053,465.68179 L154.99571,465.6552 z"
Fill="#88FFFFFF" Stretch="UniformToFill" />
<Path x:Name="cloud2" Width="100" Height="40" Margin="2,8,-2,-8"
Data="M158.99223,453.55724 C169.78284,423.31232 203.15378,392.41965 241.59875,404.12313 261.99875,383.72313 299.3,391.57463 305.3,392.77701 337.22357,353.75764 390.50003,373.43798 398.90003,384.97667 412.50003,378.21261 430.04088,381.41688 430.04088,381.41688 436.82018,362.13027 456.18064,352.96024 465.00342,351.59457 460.57167,304.02021 510.55723,292.35177 521.33687,292.25901 530.92623,292.1765 525.93938,292.61638 525.93938,292.61638 525.90428,295.34879 526.73875,460.86787 526.8053,465.68179 L154.99571,465.6552 z"
Fill="White" Stretch="UniformToFill" />
<Rectangle x:Name="glow1" Width="79" Height="79" HorizontalAlignment="Left" VerticalAlignment="Center" Fill="#11FFFFFF" RadiusX="45"
RadiusY="45" RenderTransformOrigin="0.5,0.5" />
<Rectangle x:Name="glow2" Width="67" Height="67" HorizontalAlignment="Left" VerticalAlignment="Center" Fill="#22FFFFFF" RadiusX="45"
RadiusY="45" RenderTransformOrigin="0.5,0.5" />
<Rectangle x:Name="glow3" Width="55" Height="55" HorizontalAlignment="Left" VerticalAlignment="Center" Fill="#22FFFFFF" RadiusX="45"
RadiusY="45" RenderTransformOrigin="0.5,0.5" />
<Border x:Name="thumb" Width="36" Height="38" HorizontalAlignment="Left" CornerRadius="20" RenderTransformOrigin="0.5,0.5">
<Border.RenderTransform>
<TransformGroup>
<RotateTransform Angle="0" />
<TranslateTransform X="4" />
</TransformGroup>
</Border.RenderTransform>
<Canvas>
<Rectangle Canvas.Top="2.5" Width="36" Height="36" HorizontalAlignment="Right" VerticalAlignment="Bottom" RadiusX="45" RadiusY="45">
<Rectangle.Fill>
<RadialGradientBrush Center="0.5,0.5" GradientOrigin="0.5,0.5" RadiusX="0.5" RadiusY="0.5">
<GradientStop Offset="1" Color="#00000000" />
<GradientStop Offset="0.7" Color="#E5000000" />
</RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Grid x:Name="sun" Canvas.Top="2.5" Width="33" Height="33" HorizontalAlignment="Left" Background="#F3C62B"
RenderTransformOrigin="0.5,0.5">
<Grid.RenderTransform>
<TransformGroup>
<RotateTransform Angle="0" />
</TransformGroup>
</Grid.RenderTransform>
<Grid.Clip>
<RectangleGeometry RadiusX="20" RadiusY="20" Rect="0,0,33,33" />
</Grid.Clip>
<Path Width="29" Margin="-1.5,-1.5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"
Data="M195.79568,256.36186 C128.27033,194.80746 208.6956,103.20326 276.96226,155.20326 220.40909,129.80395 148.71988,171.59981 195.79568,256.36186 z"
Stretch="Uniform" Visibility="Visible">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.3,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="0.1" Color="White" />
<GradientStop Offset="1" Color="Transparent" />
</LinearGradientBrush>
</Path.Fill>
<Path.RenderTransform>
<TransformGroup>
<RotateTransform Angle="2" />
</TransformGroup>
</Path.RenderTransform>
</Path>
<Path Width="28" Margin="0,0,-0.6,-2.2" HorizontalAlignment="Right" VerticalAlignment="Bottom"
Data="M195.79568,256.36186 C128.27033,194.80746 208.6956,103.20326 276.96226,155.20326 220.40909,129.80395 148.71988,171.59981 195.79568,256.36186 z"
Stretch="Uniform" Visibility="Visible">
<Path.Fill>
<LinearGradientBrush StartPoint="1,0" EndPoint="0,1">
<GradientStop Offset="1" Color="#00000000" />
<GradientStop Offset="0.3" Color="#66000000" />
<GradientStop Offset="0" Color="#00000000" />
</LinearGradientBrush>
</Path.Fill>
<Path.RenderTransform>
<TransformGroup>
<RotateTransform Angle="200" />
</TransformGroup>
</Path.RenderTransform>
</Path>
<Ellipse x:Name="highlightMask" Opacity="0">
<Ellipse.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#6FFFFFFF" />
<GradientStop Offset="1" Color="Transparent" />
</LinearGradientBrush>
</Ellipse.Fill>
</Ellipse>
<Border x:Name="moon">
<Border.Effect>
<DropShadowEffect BlurRadius="4" RenderingBias="Performance" ShadowDepth="2" Color="Gray" />
</Border.Effect>
<Border.RenderTransform>
<TransformGroup>
<TranslateTransform X="34" />
</TransformGroup>
</Border.RenderTransform>
<Grid>
<Grid.Clip>
<RectangleGeometry RadiusX="20" RadiusY="20" Rect="0,0,33,33" />
</Grid.Clip>
<Rectangle Fill="#C4C9D4" />
<Border Width="10" Height="10" Margin="6,14,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#9A9FB2"
BorderBrush="#66000000" BorderThickness="0.6" CornerRadius="45" />
<Border Width="6" Height="6" Margin="13,5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#9A9FB2"
BorderBrush="#66000000" BorderThickness="0.6" CornerRadius="45" />
<Border Width="7" Height="7" Margin="20,18,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Background="#9A9FB2"
BorderBrush="#66000000" BorderThickness="0.6" CornerRadius="45" />
<Path Width="29" Margin="-1.5,-1.5,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"
Data="M195.79568,256.36186 C128.27033,194.80746 208.6956,103.20326 276.96226,155.20326 220.40909,129.80395 148.71988,171.59981 195.79568,256.36186 z"
Stretch="Uniform" Visibility="Visible">
<Path.Fill>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="0.2" Color="#DDFFFFFF" />
<GradientStop Offset="1" Color="Transparent" />
</LinearGradientBrush>
</Path.Fill>
<Path.RenderTransform>
<TransformGroup>
<RotateTransform Angle="2" />
</TransformGroup>
</Path.RenderTransform>
</Path>
<Path Width="28" Margin="0,0,-1.0,-2.0" HorizontalAlignment="Right" VerticalAlignment="Bottom"
Data="M195.79568,256.36186 C128.27033,194.80746 208.6956,103.20326 276.96226,155.20326 220.40909,129.80395 148.71988,171.59981 195.79568,256.36186 z"
Stretch="Uniform" Visibility="Visible">
<Path.Fill>
<LinearGradientBrush StartPoint="0.2,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="#00000000" />
<GradientStop Offset="0.1" Color="#66000000" />
<GradientStop Offset="1" Color="#00000000" />
</LinearGradientBrush>
</Path.Fill>
<Path.RenderTransform>
<TransformGroup>
<RotateTransform Angle="192" />
</TransformGroup>
</Path.RenderTransform>
</Path>
</Grid>
</Border>
</Grid>
</Canvas>
<Border.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard Storyboard="{StaticResource ThumbMouseHover}" />
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard Storyboard="{StaticResource ThumbMouseLeave}" />
</EventTrigger>
</Border.Triggers>
</Border>
<Border x:Name="ShadowElement" Margin="-2,-2" BorderBrush="#5C6170" BorderThickness="1.8" CornerRadius="21"
RenderTransformOrigin="0.5,0.5">
<Border.Effect>
<DropShadowEffect x:Name="Shadow" BlurRadius="7" RenderingBias="Performance" ShadowDepth="0" />
</Border.Effect>
</Border>
</Grid>
<Border.Clip>
<RectangleGeometry RadiusX="20" RadiusY="20" Rect="0,0,100,40" />
</Border.Clip>
</Border>
</Viewbox>
<ContentPresenter x:Name="contentPresenter" Grid.Column="1"
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Focusable="False" RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
Visibility="Collapsed" />
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="MouseOver" Storyboard="{StaticResource RestoreSize}" />
<VisualState x:Name="MouseLeaveChecked" Storyboard="{StaticResource CheckedReduceSize}" />
<VisualState x:Name="MouseLeaveUnChecked" Storyboard="{StaticResource UnCheckedReduceSize}" />
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="HasContent" Value="true">
<Setter TargetName="contentPresenter" Property="Visibility" Value="Visible" />
</Trigger>
<Trigger Property="IsChecked" Value="true">
<Trigger.EnterActions>
<BeginStoryboard Storyboard="{StaticResource StoryboardChecked}" />
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard Storyboard="{StaticResource StoryboardUnChecked}" />
</Trigger.ExitActions>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.4" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ============================================================
Slider — 现代白色风格
============================================================ -->
<Style TargetType="Slider">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="MinHeight" Value="28"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Slider">
<Grid Height="28">
<Track x:Name="PART_Track" VerticalAlignment="Center">
<Track.DecreaseRepeatButton>
<RepeatButton Command="{x:Static Slider.DecreaseLarge}">
<RepeatButton.Template>
<ControlTemplate TargetType="RepeatButton">
<Border Height="4" CornerRadius="2"
Background="#4685C0"/>
</ControlTemplate>
</RepeatButton.Template>
</RepeatButton>
</Track.DecreaseRepeatButton>
<Track.IncreaseRepeatButton>
<RepeatButton Command="{x:Static Slider.IncreaseLarge}">
<RepeatButton.Template>
<ControlTemplate TargetType="RepeatButton">
<Border Height="4" CornerRadius="2"
Background="#E5E5EA"/>
</ControlTemplate>
</RepeatButton.Template>
</RepeatButton>
</Track.IncreaseRepeatButton>
<Track.Thumb>
<Thumb Width="20" Height="20">
<Thumb.Template>
<ControlTemplate TargetType="Thumb">
<Grid>
<Ellipse Width="20" Height="20"
Fill="#FFFFFF"
Stroke="#E5E5EA"
StrokeThickness="1">
<Ellipse.Effect>
<DropShadowEffect BlurRadius="8"
Opacity="0.12"
ShadowDepth="0"
Color="#000000"/>
</Ellipse.Effect>
</Ellipse>
<Ellipse Width="8" Height="8"
Fill="#4685C0"
x:Name="InnerDot"
Opacity="0"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsDragging" Value="True">
<Setter TargetName="InnerDot" Property="Opacity" Value="1"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="InnerDot" Property="Opacity" Value="0.5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Thumb.Template>
</Thumb>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ============================================================
ScrollBar — 纤细白色风格
============================================================ -->
<Style TargetType="ScrollBar">
<Setter Property="Width" Value="6"/>
<Setter Property="MinWidth" Value="6"/>
<Setter Property="Margin" Value="0,4,4,4"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Grid>
<!-- 轨道背景(极淡) -->
<Border CornerRadius="3" Background="{DynamicResource ThemeBorder}" Opacity="0.1"/>
<Track x:Name="PART_Track" IsDirectionReversed="True" Margin="1">
<Track.Thumb>
<Thumb>
<Thumb.Template>
<ControlTemplate TargetType="Thumb">
<Border x:Name="ThumbBg" CornerRadius="3"
Background="{DynamicResource ThemeFgTertiary}"
MinHeight="28" Margin="0">
<Border.RenderTransform>
<ScaleTransform x:Name="ThumbScale" ScaleX="1" ScaleY="1"/>
</Border.RenderTransform>
<Border.RenderTransformOrigin>0.5,0.5</Border.RenderTransformOrigin>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="ThumbBg" Property="Background"
Value="{DynamicResource ThemeAccent}"/>
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="ThumbScale"
Storyboard.TargetProperty="ScaleX"
To="1.4" Duration="0:0:0.15">
<DoubleAnimation.EasingFunction>
<PowerEase EasingMode="EaseOut" Power="2"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="ThumbScale"
Storyboard.TargetProperty="ScaleX"
To="1" Duration="0:0:0.18">
<DoubleAnimation.EasingFunction>
<PowerEase EasingMode="EaseOut" Power="2"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Thumb.Template>
</Thumb>
</Track.Thumb>
</Track>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ============================================================
ToggleSwitch — Telegram 风格弹性动画
============================================================ -->
<Style x:Key="ToggleSwitchStyle" TargetType="ToggleButton">
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<Grid x:Name="SwitchRoot"
Width="44" Height="24"
RenderTransformOrigin="0.5,0.5">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SwitchScale"
Storyboard.TargetProperty="ScaleX"
To="1" Duration="0:0:0.18">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="SwitchScale"
Storyboard.TargetProperty="ScaleY"
To="1" Duration="0:0:0.18">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
<VisualState x:Name="MouseOver">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SwitchScale"
Storyboard.TargetProperty="ScaleX"
To="1.05" Duration="0:0:0.18">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="SwitchScale"
Storyboard.TargetProperty="ScaleY"
To="1.05" Duration="0:0:0.18">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
<VisualState x:Name="Pressed">
<Storyboard>
<DoubleAnimation Storyboard.TargetName="SwitchScale"
Storyboard.TargetProperty="ScaleX"
To="0.93" Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="SwitchScale"
Storyboard.TargetProperty="ScaleY"
To="0.93" Duration="0:0:0.1">
<DoubleAnimation.EasingFunction>
<CubicEase EasingMode="EaseOut"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
<VisualState x:Name="Disabled"/>
</VisualStateGroup>
<VisualStateGroup x:Name="CheckStates">
<VisualState x:Name="Unchecked">
<Storyboard>
<ColorAnimation Storyboard.TargetName="TrackBg"
Storyboard.TargetProperty="Color"
To="#E5E5EA" Duration="0:0:0.22"/>
<DoubleAnimation Storyboard.TargetName="ThumbTranslate"
Storyboard.TargetProperty="X"
To="0" Duration="0:0:0.3">
<DoubleAnimation.EasingFunction>
<BackEase EasingMode="EaseOut" Amplitude="0.3"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
<VisualState x:Name="Checked">
<Storyboard>
<ColorAnimation Storyboard.TargetName="TrackBg"
Storyboard.TargetProperty="Color"
To="#34C759" Duration="0:0:0.22"/>
<DoubleAnimation Storyboard.TargetName="ThumbTranslate"
Storyboard.TargetProperty="X"
To="20" Duration="0:0:0.35">
<DoubleAnimation.EasingFunction>
<BackEase EasingMode="EaseOut" Amplitude="0.4"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Grid.RenderTransform>
<ScaleTransform x:Name="SwitchScale" ScaleX="1" ScaleY="1"/>
</Grid.RenderTransform>
<Border x:Name="Track" CornerRadius="12"
Width="44" Height="24">
<Border.Background>
<SolidColorBrush x:Name="TrackBg" Color="#E5E5EA"/>
</Border.Background>
</Border>
<Border x:Name="Thumb" CornerRadius="10"
Background="#FFFFFF" Width="20" Height="20"
HorizontalAlignment="Left" Margin="2,0,0,0">
<Border.RenderTransform>
<TranslateTransform x:Name="ThumbTranslate" X="0"/>
</Border.RenderTransform>
<Border.Effect>
<DropShadowEffect BlurRadius="6" Opacity="0.18"
ShadowDepth="0" Color="#000000"/>
</Border.Effect>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ============================================================
ComboBox — 白色圆角风格
============================================================ -->
<Style TargetType="ComboBox">
<Setter Property="Height" Value="34"/>
<Setter Property="FontSize" Value="13"/>
<Setter Property="FontFamily" Value="Segoe UI, Microsoft YaHei UI"/>
<Setter Property="Background" Value="{DynamicResource ThemeHover}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeFg}"/>