|
12 | 12 | <ContentDialog.Resources>
|
13 | 13 | <Thickness x:Key="ContentDialogPadding">0</Thickness>
|
14 | 14 | <converters:EnumToBooleanConverter x:Key="EnumToBooleanConverter"
|
15 |
| - EnumType="ElementTheme" /> |
| 15 | + EnumType="ElementTheme" /> |
16 | 16 | </ContentDialog.Resources>
|
17 | 17 |
|
18 | 18 | <ContentDialog.DataContext>
|
19 | 19 | <vm:SettingsViewModel />
|
20 | 20 | </ContentDialog.DataContext>
|
21 | 21 |
|
22 |
| - <Grid Padding="15,15,15,30" |
| 22 | + <Grid Padding="16,16,16,32" |
23 | 23 | Background="{ThemeResource AppDeepBackgroundBrush}">
|
24 | 24 |
|
25 | 25 | <StackPanel Orientation="Vertical"
|
26 |
| - Spacing="15" |
| 26 | + Spacing="16" |
27 | 27 | MaxWidth="360">
|
28 | 28 |
|
29 | 29 | <Grid>
|
30 |
| - <TextBlock Text="Settings" |
| 30 | + |
| 31 | + <TextBlock x:Uid="SettingsTitleTextBlock" |
31 | 32 | Style="{ThemeResource TitleTextBlockStyle}"
|
32 |
| - Foreground="{ThemeResource AppForegroundBrush}" |
33 | 33 | HorizontalAlignment="Left"
|
34 |
| - Margin="5,0,0,0" /> |
| 34 | + Margin="4,0,0,0" /> |
35 | 35 | <Button Style="{StaticResource SoftRevealButtonStyle}"
|
36 | 36 | HorizontalAlignment="Right"
|
37 | 37 | VerticalAlignment="Top"
|
38 | 38 | Command="{x:Bind HideCommand}">
|
39 | 39 | <FontIcon Glyph="" />
|
40 | 40 | </Button>
|
| 41 | + |
41 | 42 | </Grid>
|
42 | 43 |
|
43 |
| - <StackPanel Spacing="5" |
44 |
| - Padding="15,0,15,0"> |
45 |
| - <TextBlock Text="Theme" |
46 |
| - Foreground="{ThemeResource AppForegroundBrush}" |
47 |
| - Style="{StaticResource SubtitleTextBlockStyle}" /> |
48 |
| - <RadioButton Content="Light" |
| 44 | + <StackPanel Spacing="4" |
| 45 | + Padding="16,0"> |
| 46 | + |
| 47 | + <TextBlock x:Uid="SettingsThemeTextBlock" |
| 48 | + Style="{StaticResource YugenSubtitleTextBlockStyle}" /> |
| 49 | + <RadioButton x:Uid="SettingsThemeLightTextBlock" |
49 | 50 | Command="{x:Bind ViewModel.SwitchThemeCommand}"
|
50 | 51 | IsChecked="{x:Bind ViewModel.ElementTheme, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Light, Mode=OneWay}"
|
51 |
| - Foreground="{ThemeResource AppForegroundBrush}"> |
| 52 | + Style="{ThemeResource YugenRadioButtonStyle}"> |
52 | 53 | <RadioButton.CommandParameter>
|
53 | 54 | <xaml:ElementTheme>Light</xaml:ElementTheme>
|
54 | 55 | </RadioButton.CommandParameter>
|
55 | 56 | </RadioButton>
|
56 |
| - <RadioButton Content="Dark" |
| 57 | + <RadioButton x:Uid="SettingsThemeDarkTextBlock" |
57 | 58 | Command="{x:Bind ViewModel.SwitchThemeCommand}"
|
58 | 59 | IsChecked="{x:Bind ViewModel.ElementTheme, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Dark, Mode=OneWay}"
|
59 |
| - Foreground="{ThemeResource AppForegroundBrush}"> |
| 60 | + Style="{ThemeResource YugenRadioButtonStyle}"> |
60 | 61 | <RadioButton.CommandParameter>
|
61 | 62 | <xaml:ElementTheme>Dark</xaml:ElementTheme>
|
62 | 63 | </RadioButton.CommandParameter>
|
63 | 64 | </RadioButton>
|
64 |
| - <RadioButton Content="Default" |
| 65 | + <RadioButton x:Uid="SettingsThemeDefaultTextBlock" |
65 | 66 | Command="{x:Bind ViewModel.SwitchThemeCommand}"
|
66 | 67 | IsChecked="{x:Bind ViewModel.ElementTheme, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Default, Mode=OneWay}"
|
67 |
| - Foreground="{ThemeResource AppForegroundBrush}"> |
| 68 | + Style="{ThemeResource YugenRadioButtonStyle}"> |
68 | 69 | <RadioButton.CommandParameter>
|
69 | 70 | <xaml:ElementTheme>Default</xaml:ElementTheme>
|
70 | 71 | </RadioButton.CommandParameter>
|
71 | 72 | </RadioButton>
|
| 73 | + |
72 | 74 | </StackPanel>
|
73 | 75 |
|
74 |
| - <StackPanel Spacing="5" |
75 |
| - Padding="15,0,15,0"> |
76 |
| - |
77 |
| - <TextBlock Text="About" |
78 |
| - Foreground="{ThemeResource AppForegroundBrush}" |
79 |
| - Style="{StaticResource SubtitleTextBlockStyle}" /> |
80 |
| - |
81 |
| - <TextBlock Foreground="{ThemeResource AppForegroundBrush}" |
82 |
| - Style="{StaticResource CaptionTextBlockStyle}"> |
83 |
| - <Run Text="{x:Bind ViewModel.AppName}" |
84 |
| - FontWeight="SemiBold" /> |
85 |
| - <LineBreak /> |
86 |
| - <Run Text="{x:Bind ViewModel.AppVersion}" /> |
87 |
| - </TextBlock> |
88 |
| - |
89 |
| - <TextBlock Foreground="{ThemeResource AppForegroundBrush}" |
90 |
| - Style="{StaticResource CaptionTextBlockStyle}"> |
91 |
| - <Run Text="Developed by" |
92 |
| - FontWeight="SemiBold" /> |
93 |
| - <LineBreak /> |
94 |
| - <Run Text="{x:Bind ViewModel.Publisher}" /> |
95 |
| - </TextBlock> |
| 76 | + <StackPanel Spacing="4" |
| 77 | + Padding="16,0"> |
96 | 78 |
|
97 |
| - <TextBlock Foreground="{ThemeResource AppForegroundBrush}" |
98 |
| - Style="{StaticResource CaptionTextBlockStyle}"> |
99 |
| - <Run Text="Colaborators" |
100 |
| - FontWeight="SemiBold" /> |
101 |
| - <LineBreak /> |
102 |
| - <Run Text="{x:Bind ViewModel.Collaborator[0]}" /> |
103 |
| - <LineBreak /> |
104 |
| - <Run Text="{x:Bind ViewModel.Collaborator[1]}" /> |
105 |
| - </TextBlock> |
106 |
| - |
107 |
| - <HyperlinkButton Content="Rate and review" |
108 |
| - Command="{x:Bind ViewModel.LaunchRateAndReviewCommand}" /> |
| 79 | + <TextBlock x:Uid="SettingsAboutTextBlock" |
| 80 | + Style="{StaticResource YugenSubtitleTextBlockStyle}" /> |
| 81 | + |
| 82 | + <TextBlock x:Uid="SettingsAppNameTextBlock" |
| 83 | + Style="{StaticResource YugenBodyTextBlockStyle}" /> |
| 84 | + <TextBlock Style="{StaticResource YugenCaptionTextBlockStyle}" |
| 85 | + Text="{x:Bind ViewModel.AppVersion}" /> |
| 86 | + |
| 87 | + <TextBlock x:Uid="SettingsDevelopedTextBlock" |
| 88 | + Margin="0,4,0,0" |
| 89 | + Style="{StaticResource YugenBodyTextBlockStyle}"/> |
| 90 | + <HyperlinkButton x:Uid="SettingsDevelopedHyperlink" |
| 91 | + Content="{x:Bind ViewModel.Publisher}" |
| 92 | + Margin="0,-8,0,0" |
| 93 | + Style="{ThemeResource YugenHyperlinkButtonStyle}"/> |
| 94 | + |
| 95 | + <TextBlock x:Uid="SettingsUITextBlock" |
| 96 | + Style="{StaticResource YugenBodyTextBlockStyle}" /> |
| 97 | + <HyperlinkButton x:Uid="SettingsUIHyperlink" |
| 98 | + Margin="0,-8,0,0" |
| 99 | + Style="{ThemeResource YugenHyperlinkButtonStyle}" /> |
| 100 | + |
| 101 | + <TextBlock x:Uid="SettingsIconTextBlock" |
| 102 | + Style="{StaticResource YugenBodyTextBlockStyle}" /> |
| 103 | + <HyperlinkButton x:Uid="SettingsIconHyperlink" |
| 104 | + Margin="0,-8,0,0" |
| 105 | + Style="{ThemeResource YugenHyperlinkButtonStyle}"/> |
| 106 | + |
| 107 | + <HyperlinkButton x:Uid="SettingsRateHyperlink" |
| 108 | + NavigateUri="{x:Bind ViewModel.RateAndReviewUri}" |
| 109 | + Style="{ThemeResource YugenHyperlinkButtonStyle}"/> |
109 | 110 |
|
110 | 111 | </StackPanel>
|
111 | 112 |
|
|
0 commit comments