|
11 | 11 | xmlns:winUi="using:FluentIcons.WinUI" |
12 | 12 | xmlns:converters="using:ShadowViewer.Plugin.Local.Converters" |
13 | 13 | xmlns:controls1="using:ShadowViewer.Controls" |
| 14 | + xmlns:local="using:ShadowViewer.Plugin.Local" |
14 | 15 | xmlns:enums="using:ShadowViewer.Plugin.Local.Enums" |
15 | 16 | xmlns:i18N="using:ShadowViewer.Plugin.Local.I18n" |
16 | 17 | mc:Ignorable="d"> |
|
25 | 26 | CornerRadius="{ThemeResource NavigationViewContentGridCornerRadius}"> |
26 | 27 | <controls:MangaReader |
27 | 28 | x:Name="MangaReader" |
28 | | - ReadMode="{x:Bind ViewModel.ReadMode,Mode=OneWay}" |
| 29 | + ReadMode="{x:Bind local:LocalPlugin.Settings.LocalReaderMode,Mode=OneWay}" |
29 | 30 | CurrentIndex="{x:Bind ViewModel.CurrentPage, Mode=TwoWay}" |
30 | 31 | HorizontalAlignment="Center" |
31 | 32 | Pictures="{x:Bind ViewModel.Images, Mode=OneWay}"> |
32 | 33 | </controls:MangaReader> |
33 | 34 | <controls:MangaScrollingReader |
34 | 35 | CurrentIndex="{x:Bind ViewModel.CurrentPage, Mode=TwoWay}" |
35 | 36 | IgnoreViewChanged="{x:Bind ViewModel.IsPageSliderPressed,Mode=OneWay}" |
36 | | - ReadMode="{x:Bind ViewModel.ReadMode,Mode=OneWay}" |
| 37 | + ReadMode="{x:Bind local:LocalPlugin.Settings.LocalReaderMode,Mode=OneWay}" |
37 | 38 | x:Name="PicViewer" |
38 | 39 | HorizontalAlignment="Center" |
39 | 40 | ItemsSource="{x:Bind ViewModel.Images, Mode=OneWay}" |
|
82 | 83 | IconVariant="{x:Bind ViewModel.ReadModeIconVariant,Mode=OneWay}"> |
83 | 84 | </winUi:FluentIcon> |
84 | 85 | <TextBlock Grid.Column="1" |
85 | | - Text="{x:Bind ViewModel.ReadMode,Mode=OneWay,Converter={StaticResource MenuFlyoutItemTextConverter}}"> |
| 86 | + Text="{x:Bind local:LocalPlugin.Settings.LocalReaderMode,Mode=OneWay,Converter={StaticResource MenuFlyoutItemTextConverter}}"> |
86 | 87 | </TextBlock> |
87 | 88 | </Grid> |
88 | 89 | <Button.Flyout> |
89 | 90 | <controls1:EnumMenuFlyout |
90 | | - SelectedValue="{x:Bind ViewModel.ReadMode,Mode=TwoWay}" |
| 91 | + SelectedValue="{x:Bind local:LocalPlugin.Settings.LocalReaderMode, Mode=TwoWay}" |
91 | 92 | TextConverter="{StaticResource MenuFlyoutItemTextConverter}" |
92 | 93 | EnumSource="enums:LocalReadMode" |
93 | 94 | Placement="Top"> |
|
0 commit comments