Pixiview/Gallery/OptionPage.xaml
2021-08-04 10:27:41 +08:00

47 lines
2.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<u:AdaptedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:u="clr-namespace:Gallery.UI"
xmlns:r="clr-namespace:Gallery.Resources"
x:Class="Gallery.OptionPage"
Title="{r:Text Option}">
<ContentPage.ToolbarItems>
<ToolbarItem Order="Primary" Clicked="ShareCookie_Clicked"
IconImageSource="{DynamicResource FontIconShare}"/>
</ContentPage.ToolbarItems>
<TableView Intent="Settings" VerticalOptions="Start"
BackgroundColor="{DynamicResource OptionBackColor}">
<TableRoot>
<TableSection Title="{r:Text About}">
<u:OptionTextCell Title="{r:Text Version}" Detail="{Binding Version}"/>
</TableSection>
<TableSection Title="{r:Text Illusts}">
<u:OptionSwitchCell Title="{r:Text R18}"
IsToggled="{Binding IsOnR18, Mode=TwoWay}"/>
<u:OptionDropCell x:Name="optionFavSync" Title="{r:Text SyncType}"
SelectedIndex="{Binding SyncFavType, Mode=TwoWay}"/>
<u:OptionEntryCell Title="{r:Text DownloadIllustThreads}"
Text="{Binding DownloadIllustThreads, Mode=TwoWay}"
Keyboard="Numeric" Placeholder="1~10"/>
</TableSection>
<TableSection Title="{r:Text Proxy}">
<u:OptionSwitchCell Title="{r:Text Enabled}"
IsToggled="{Binding IsProxied, Mode=TwoWay}"/>
</TableSection>
<TableSection Title="{r:Text Detail}">
<u:OptionEntryCell Title="{r:Text Host}"
Text="{Binding Host, Mode=TwoWay}"
Keyboard="Url" Placeholder="www.example.com"/>
<u:OptionEntryCell Title="{r:Text Port}"
Text="{Binding Port, Mode=TwoWay}"
Keyboard="Numeric" Placeholder="8080"/>
</TableSection>
<TableSection Title="{r:Text Privacy}">
<u:OptionEntryCell Title="{r:Text Cookie}"
Text="{Binding Cookie, Mode=TwoWay}"
Keyboard="Text"/>
</TableSection>
</TableRoot>
</TableView>
</u:AdaptedPage>