Skip to content

Commit abb4240

Browse files
author
Yair Aichenbaum
committed
Added some motion to settings pages
1 parent 2a4d0c5 commit abb4240

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

Files/SettingsPages/Personalization.xaml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,16 @@
1010
<Grid>
1111

1212
<ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
13-
<StackPanel Orientation="Vertical" Spacing="14" Margin="12,12,8,8">
13+
<StackPanel
14+
Margin="12,12,8,8"
15+
Orientation="Vertical"
16+
Spacing="14">
17+
<StackPanel.ChildrenTransitions>
18+
<TransitionCollection>
19+
<RepositionThemeTransition />
20+
<ReorderThemeTransition />
21+
</TransitionCollection>
22+
</StackPanel.ChildrenTransitions>
1423

1524
<TextBlock FontSize="22" Text="Personalization" />
1625

@@ -20,6 +29,11 @@
2029
<ColumnDefinition Width="*" MaxWidth="400" />
2130
<ColumnDefinition Width="200" />
2231
</Grid.ColumnDefinitions>
32+
<Grid.ChildrenTransitions>
33+
<TransitionCollection>
34+
<RepositionThemeTransition />
35+
</TransitionCollection>
36+
</Grid.ChildrenTransitions>
2337

2438
<TextBlock
2539
Grid.Column="0"
@@ -40,6 +54,11 @@
4054
<ColumnDefinition Width="*" MaxWidth="400" />
4155
<ColumnDefinition Width="200" />
4256
</Grid.ColumnDefinitions>
57+
<Grid.ChildrenTransitions>
58+
<TransitionCollection>
59+
<RepositionThemeTransition />
60+
</TransitionCollection>
61+
</Grid.ChildrenTransitions>
4362

4463
<TextBlock
4564
Grid.Column="0"
@@ -60,6 +79,11 @@
6079
<ColumnDefinition Width="*" MaxWidth="400" />
6180
<ColumnDefinition Width="200" />
6281
</Grid.ColumnDefinitions>
82+
<Grid.ChildrenTransitions>
83+
<TransitionCollection>
84+
<RepositionThemeTransition />
85+
</TransitionCollection>
86+
</Grid.ChildrenTransitions>
6387

6488
<TextBlock
6589
Grid.Column="0"
@@ -70,10 +94,10 @@
7094
<ToggleSwitch
7195
x:Name="AcrylicSidebarSwitch"
7296
Grid.Column="2"
97+
Width="40"
7398
HorizontalAlignment="Right"
7499
OffContent=""
75-
OnContent=""
76-
Width="40"/>
100+
OnContent="" />
77101
</Grid>
78102

79103
</StackPanel>

Files/SettingsPages/Preferences.xaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,21 @@
1616
HorizontalAlignment="Stretch"
1717
VerticalAlignment="Stretch"
1818
Spacing="14">
19+
<StackPanel.ChildrenTransitions>
20+
<TransitionCollection>
21+
<RepositionThemeTransition />
22+
<ReorderThemeTransition />
23+
</TransitionCollection>
24+
</StackPanel.ChildrenTransitions>
1925

2026
<TextBlock FontSize="22" Text="Preferences" />
2127

2228
<StackPanel>
29+
<StackPanel.ChildrenTransitions>
30+
<TransitionCollection>
31+
<RepositionThemeTransition />
32+
</TransitionCollection>
33+
</StackPanel.ChildrenTransitions>
2334
<Grid HorizontalAlignment="Stretch">
2435
<Grid.ColumnDefinitions>
2536
<ColumnDefinition Width="260" />
@@ -179,6 +190,11 @@
179190
<ColumnDefinition Width="200" />
180191
<ColumnDefinition Width="*" MaxWidth="530" />
181192
</Grid.ColumnDefinitions>
193+
<Grid.ChildrenTransitions>
194+
<TransitionCollection>
195+
<RepositionThemeTransition />
196+
</TransitionCollection>
197+
</Grid.ChildrenTransitions>
182198

183199
<TextBlock
184200
Grid.Column="0"

0 commit comments

Comments
 (0)