|
17 | 17 | <Page.Resources> |
18 | 18 | <converters:LocalReaderModeConverter x:Key="LocalReaderModeConverter" /> |
19 | 19 | </Page.Resources> |
20 | | - <Grid |
21 | | - x:Name="RootGrid" |
22 | | - Background="{ThemeResource LayerFillColorDefaultBrush}" |
23 | | - BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
24 | | - BorderThickness="1" PointerWheelChanged="MangaPointerWheelChanged" |
25 | | - CornerRadius="{ThemeResource NavigationViewContentGridCornerRadius}"> |
| 20 | + <Grid Tapped="PageTapped" |
| 21 | + x:Name="RootGrid" |
| 22 | + Background="{ThemeResource LayerFillColorDefaultBrush}" |
| 23 | + BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
| 24 | + BorderThickness="1" PointerWheelChanged="MangaPointerWheelChanged" |
| 25 | + CornerRadius="{ThemeResource NavigationViewContentGridCornerRadius}"> |
26 | 26 | <controls:MangaReader |
27 | 27 | x:Name="MangaReader" |
28 | 28 | ReadMode="{x:Bind local:LocalPlugin.Settings.LocalReaderMode,Mode=OneWay}" |
|
52 | 52 | </DataTemplate> |
53 | 53 | </controls:MangaScrollingReader.ItemTemplate> |
54 | 54 | </controls:MangaScrollingReader> |
55 | | - <Grid Loaded="InitTappedGridLayout" x:Name="TappedGrid" Background="{x:Bind ViewModel.TappedGridBackground,Mode=OneWay}"> |
| 55 | + <Grid Loaded="InitTappedGridLayout" x:Name="TappedGrid" |
| 56 | + Visibility="{x:Bind ViewModel.TappedGridSetting,Mode=OneWay}"> |
56 | 57 | <Grid.Resources> |
57 | 58 | <x:Double x:Key="TextFontSize">24</x:Double> |
58 | 59 | <SolidColorBrush x:Key="TextForeground">White</SolidColorBrush> |
|
85 | 86 | <!-- 右 --> |
86 | 87 | </Grid.ColumnDefinitions> |
87 | 88 |
|
88 | | - <Rectangle Fill="Transparent" Grid.Row="0" Grid.Column="0" Tapped="PrevPageTapped" /> |
89 | 89 | <!-- 上 --> |
90 | | - <Grid Grid.Row="0" Grid.Column="2" Tapped="PrevPageTapped"> |
| 90 | + <Grid Grid.Row="0" Grid.Column="2"> |
91 | 91 | <Rectangle Fill="Transparent" /> |
92 | 92 | <TextBlock Text="{i18N:Locale Key=PrevPage}" HorizontalAlignment="Center" VerticalAlignment="Center" |
93 | 93 | FontSize="{StaticResource TextFontSize}" |
94 | 94 | Foreground="{StaticResource TextForeground}" FontWeight="Bold" |
95 | 95 | Visibility="{x:Bind ViewModel.TappedGridVisibility,Mode=OneWay}" /> |
96 | 96 | </Grid> |
97 | | - <Rectangle Fill="Transparent" Grid.Row="4" Grid.Column="0" Tapped="PrevPageTapped" /> |
98 | 97 | <!-- 左 --> |
99 | | - <Grid Grid.Row="2" Grid.Column="0" Tapped="PrevPageTapped"> |
| 98 | + <Grid Grid.Row="2" Grid.Column="0"> |
100 | 99 | <Rectangle Fill="Transparent" /> |
101 | 100 | <TextBlock Text="{i18N:Locale Key=PrevPage}" HorizontalAlignment="Center" VerticalAlignment="Center" |
102 | 101 | FontSize="{StaticResource TextFontSize}" |
103 | 102 | Foreground="{StaticResource TextForeground}" FontWeight="Bold" |
104 | 103 | Visibility="{x:Bind ViewModel.TappedGridVisibility,Mode=OneWay}" /> |
105 | 104 | </Grid> |
106 | | - <Rectangle Fill="Transparent" Grid.Row="0" Grid.Column="4" Tapped="NextPageTapped" /> |
107 | | - <!-- 下 --> |
108 | | - <Grid Grid.Row="4" Grid.Column="2" Tapped="NextPageTapped"> |
| 105 | + <!-- 下 --> |
| 106 | + <Grid Grid.Row="4" Grid.Column="2"> |
109 | 107 | <Rectangle Fill="Transparent" /> |
110 | 108 | <TextBlock Text="{i18N:Locale Key=NextPage}" HorizontalAlignment="Center" VerticalAlignment="Center" |
111 | 109 | FontSize="{StaticResource TextFontSize}" |
112 | 110 | Foreground="{StaticResource TextForeground}" |
113 | 111 | FontWeight="Bold" |
114 | 112 | Visibility="{x:Bind ViewModel.TappedGridVisibility,Mode=OneWay}" /> |
115 | 113 | </Grid> |
116 | | - <Rectangle Fill="Transparent" Grid.Row="4" Grid.Column="4" Tapped="NextPageTapped" /> |
117 | 114 | <!-- 右 --> |
118 | | - <Grid Grid.Row="2" Grid.Column="4" Tapped="NextPageTapped"> |
| 115 | + <Grid Grid.Row="2" Grid.Column="4"> |
119 | 116 | <Rectangle Fill="Transparent" /> |
120 | 117 | <TextBlock Text="{i18N:Locale Key=NextPage}" HorizontalAlignment="Center" VerticalAlignment="Center" |
121 | 118 | FontSize="{StaticResource TextFontSize}" |
|
124 | 121 | </Grid> |
125 | 122 |
|
126 | 123 | <!-- 中 --> |
127 | | - <Grid Grid.Row="2" Grid.Column="2" Tapped="MenuTapped"> |
| 124 | + <Grid Grid.Row="2" Grid.Column="2"> |
128 | 125 | <Rectangle Fill="Transparent" /> |
129 | 126 | <TextBlock Text="{i18N:Locale Key=Menu}" HorizontalAlignment="Center" VerticalAlignment="Center" |
130 | 127 | FontSize="{StaticResource TextFontSize}" |
|
165 | 162 | x:Name="Menu" |
166 | 163 | Padding="20,5" |
167 | 164 | HorizontalAlignment="Center" |
168 | | - Background="{ThemeResource SolidBackgroundFillColorBaseBrush}" |
| 165 | + Background="{ThemeResource CardBackgroundFillColorDefaultBrush}" |
| 166 | + |
169 | 167 | CornerRadius="5"> |
170 | 168 | <StackPanel> |
171 | 169 | <Grid Height="48" ColumnSpacing="10" |
|
202 | 200 | </Button.Flyout> |
203 | 201 | </Button> |
204 | 202 |
|
205 | | - <ToggleButton Checked="TappedGridSet" IsChecked="{x:Bind ViewModel.TappedGridSetting,Mode=TwoWay}" |
| 203 | + <ToggleButton Checked="TappedGridSet" |
| 204 | + IsChecked="{x:Bind ViewModel.TappedGridSetting,Mode=TwoWay}" |
206 | 205 | Style="{StaticResource PointerOverToggleButtonStyle}" |
207 | 206 | Grid.Column="2"> |
208 | | - <TextBlock Text="{i18N:Locale Key=ReaderTappedGridSetting}"></TextBlock> |
| 207 | + <StackPanel Spacing="4" Orientation="Horizontal"> |
| 208 | + <winUi:FluentIcon Icon="SelectObjectSkew"/> |
| 209 | + <TextBlock Text="{i18N:Locale Key=ReaderTappedGridSetting}"></TextBlock> |
| 210 | + </StackPanel> |
209 | 211 | </ToggleButton> |
210 | 212 | </Grid> |
211 | 213 | <NavigationViewItemSeparator Visibility="{x:Bind ReaderSettingButton.IsChecked,Mode=OneWay}" /> |
|
0 commit comments