|
|
@@ -0,0 +1,178 @@
|
|
|
+<Window
|
|
|
+ x:Class="PicView.Avalonia.Win32.Views.SettingsWindow"
|
|
|
+ xmlns="https://github.com/avaloniaui"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels;assembly=PicView.Avalonia"
|
|
|
+ xmlns:views="clr-namespace:PicView.Avalonia.Views;assembly=PicView.Avalonia"
|
|
|
+ Title="Loading..."
|
|
|
+ Height="300"
|
|
|
+ x:DataType="viewModels:MainViewModel"
|
|
|
+ BorderBrush="{StaticResource MainBorderColor}"
|
|
|
+ BorderThickness="1"
|
|
|
+ ExtendClientAreaChromeHints="NoChrome"
|
|
|
+ ExtendClientAreaTitleBarHeightHint="-1"
|
|
|
+ SizeToContent="Width"
|
|
|
+ WindowStartupLocation="CenterOwner"
|
|
|
+ mc:Ignorable="d">
|
|
|
+ <Design.DataContext>
|
|
|
+ <viewModels:MainViewModel />
|
|
|
+ </Design.DataContext>
|
|
|
+ <StackPanel>
|
|
|
+
|
|
|
+ <Border
|
|
|
+ Background="{StaticResource SecondaryBackgroundColor}"
|
|
|
+ BorderBrush="{StaticResource MainBorderColor}"
|
|
|
+ BorderThickness="0,0,1,1">
|
|
|
+ <DockPanel
|
|
|
+ Height="28"
|
|
|
+ LastChildFill="True"
|
|
|
+ PointerPressed="MoveWindow">
|
|
|
+
|
|
|
+ <Border BorderBrush="{StaticResource MainBorderColor}" BorderThickness="0,0,1,0">
|
|
|
+ <Image
|
|
|
+ Width="20"
|
|
|
+ Height="25"
|
|
|
+ Margin="7,1,7,1"
|
|
|
+ DockPanel.Dock="Left">
|
|
|
+ <Image.Source>
|
|
|
+ <DrawingImage>
|
|
|
+ <DrawingImage.Drawing>
|
|
|
+ <DrawingGroup ClipGeometry="M0,0 V329.25937 H333.44974 V0 H0 Z">
|
|
|
+ <DrawingGroup>
|
|
|
+ <GeometryDrawing Brush="{StaticResource AccentColor}" Geometry="F1 M333.44974,329.25937z M0,0z M329.796,130.208L311.354,177.826 304.172,196.392 286.112,243.011 280.229,258.204C279.6,259.845,277.133,259.397,277.133,257.644L277.133,214.336C277.133,214.143,277.164,213.949,277.236,213.776L289.486,182.156 296.669,163.58 306.194,138.991C306.514,138.176,306.101,137.259,305.265,136.953L278.155,126.723C277.536,126.488,277.123,125.897,277.123,125.245L277.123,109.094C277.123,107.983,278.248,107.219,279.3,107.617L328.888,126.346C311.406,53.8949 245.461,0 166.74,0 121.569,0 80.6197,17.7714 50.5885,46.5785L255.368,46.5785C257.928,46.5785,260.012,48.6267,260.012,51.164L260.012,263.198C260.012,265.725,257.938,267.783,255.368,267.783L40.6298,267.783C38.0705,267.783,35.9858,265.735,35.9858,263.198L35.9858,62.5258C13.4779,90.5891 0,126.05 0,164.63 0,255.555 74.6445,329.259 166.73,329.259 184.625,329.259 201.849,326.447 218.01,321.291L210.972,318.631 203.531,315.819 120.971,284.648 269.971,284.648 269.207,286.594 264.935,297.63C306.452,267.681 333.449,219.279 333.449,164.62 333.47,152.819 332.18,141.315 329.796,130.208L329.796,130.208z" />
|
|
|
+ <GeometryDrawing Brush="{StaticResource LogoAccentColor}" Geometry="F0 M333.44974,329.25937z M0,0z M62.2502,219.656L73.9737,219.656C80.4857,212.339 86.9666,205.033 93.4579,197.717 95.0265,195.944 96.6261,194.211 98.0709,192.357 98.8862,191.348 99.5054,191.287 100.537,191.99 105.563,195.403 110.63,198.725 115.646,202.19 117.018,203.138 117.689,203.464 118.752,201.629 125.14,190.543 131.725,179.609 138.154,168.543 138.928,167.228 139.403,167.452 140.362,168.135 147.432,173.118 154.532,178.08 161.621,183.053 162.375,183.573 163.149,184.062 163.913,184.582 171.384,169.297 178.784,154.154 186.379,138.625 188.484,142.762 190.425,146.553 192.365,150.343 204.191,173.454 216.018,196.545 227.835,219.656L236.514,219.656C239.083,219.656,241.147,217.597,241.147,215.06L241.147,69.4041C241.147,67.3967 239.847,65.7051 238.031,65.0835 237.556,64.9205 237.05,64.8084 236.524,64.8084L62.2502,64.8084C59.6806,64.8084,57.6166,66.8668,57.6166,69.4041L57.6166,215.06C57.6166,216.15 58.0191,217.149 58.6589,217.933 59.5051,218.973 60.7848,219.656 62.2502,219.656L62.2502,219.656z M105.119,125.969C116.203,126.631 124.583,135.619 124.284,146.654 123.953,159.188 114.16,166.963 103.375,166.739 90.7024,166.474 82.9521,156.773 82.8282,145.992 83.2721,134.039 92.8696,125.245 105.119,125.969L105.119,125.969z" />
|
|
|
+ </DrawingGroup>
|
|
|
+ </DrawingGroup>
|
|
|
+ </DrawingImage.Drawing>
|
|
|
+ </DrawingImage>
|
|
|
+ </Image.Source>
|
|
|
+ </Image>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ Width="35"
|
|
|
+ Background="{StaticResource MainButtonBackgroundColor}"
|
|
|
+ BorderBrush="{StaticResource MainBorderColor}"
|
|
|
+ BorderThickness="0,0,1,0"
|
|
|
+ Classes="hover"
|
|
|
+ Click="Close"
|
|
|
+ DockPanel.Dock="Right">
|
|
|
+ <Path
|
|
|
+ Width="10"
|
|
|
+ Height="10"
|
|
|
+ Data="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4 L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1 c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1 c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z"
|
|
|
+ Fill="{StaticResource MainIconColor}"
|
|
|
+ Stretch="Fill" />
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ Name="RestoreButton"
|
|
|
+ Width="35"
|
|
|
+ Background="{StaticResource MainButtonBackgroundColor}"
|
|
|
+ BorderBrush="{StaticResource MainBorderColor}"
|
|
|
+ BorderThickness="0,0,1,0"
|
|
|
+ Classes="hover"
|
|
|
+ Click="Maximize"
|
|
|
+ DockPanel.Dock="Right">
|
|
|
+ <Path
|
|
|
+ Width="12"
|
|
|
+ Height="12"
|
|
|
+ Data="M405.34 405.332H106.66V106.668H240V64H106.66C83.191 64 64 83.197 64 106.668v298.664C64 428.803 83.191 448 106.66 448h298.68c23.469 0 42.66-19.197 42.66-42.668V272h-42.66v133.332zM288 64v42.668h87.474L159.999 322.133l29.866 29.866 215.476-215.47V224H448V64H288z"
|
|
|
+ Fill="{StaticResource MainIconColor}"
|
|
|
+ Stretch="Fill" />
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ Width="35"
|
|
|
+ Background="{StaticResource MainButtonBackgroundColor}"
|
|
|
+ BorderBrush="{StaticResource MainBorderColor}"
|
|
|
+ BorderThickness="1,0,1,0"
|
|
|
+ Classes="hover"
|
|
|
+ Click="Minimize"
|
|
|
+ DockPanel.Dock="Right">
|
|
|
+ <Viewbox Width="12" Height="12">
|
|
|
+ <Path
|
|
|
+ Data="M24,11c0-0.6-0.4-1-1-1H1c-0.6,0-1,0.4-1,1v2c0,0.6,0.4,1,1,1h22c0.6,0,1-0.4,1-1V11z"
|
|
|
+ Fill="{StaticResource MainIconColor}"
|
|
|
+ Stretch="Fill" />
|
|
|
+ </Viewbox>
|
|
|
+ </Button>
|
|
|
+ <TabControl Margin="0" Padding="0">
|
|
|
+ <TabItem x:Name="GeneralSettingsTabItem" PointerPressed="MoveWindow">
|
|
|
+
|
|
|
+ <TabItem.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Path
|
|
|
+ Width="14"
|
|
|
+ Height="14"
|
|
|
+ Margin="0,0,5,0"
|
|
|
+ Data="{StaticResource CogGeometry}"
|
|
|
+ Fill="{StaticResource MainIconColor}"
|
|
|
+ Stretch="Fill" />
|
|
|
+ <TextBlock
|
|
|
+ Classes="txt"
|
|
|
+ Text="{Binding GeneralSettings}"
|
|
|
+ TextAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </TabItem.Header>
|
|
|
+ </TabItem>
|
|
|
+ <TabItem>
|
|
|
+ <TabItem.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Image
|
|
|
+ Width="14"
|
|
|
+ Height="14"
|
|
|
+ Margin="0,0,5,0"
|
|
|
+ Source="{StaticResource DisplayImage}" />
|
|
|
+ <TextBlock
|
|
|
+ Classes="txt"
|
|
|
+ Text="{Binding UISettings}"
|
|
|
+ TextAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </TabItem.Header>
|
|
|
+ </TabItem>
|
|
|
+ <TabItem PointerPressed="MoveWindow">
|
|
|
+ <TabItem.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Image
|
|
|
+ Width="14"
|
|
|
+ Height="14"
|
|
|
+ Margin="0,0,5,0"
|
|
|
+ Source="{StaticResource LanguageImage}" />
|
|
|
+ <TextBlock
|
|
|
+ Classes="txt"
|
|
|
+ Text="{Binding Language}"
|
|
|
+ TextAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </TabItem.Header>
|
|
|
+ </TabItem>
|
|
|
+ <TabItem PointerPressed="MoveWindow">
|
|
|
+ <TabItem.Header>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Image
|
|
|
+ Width="14"
|
|
|
+ Height="14"
|
|
|
+ Margin="0,0,5,0"
|
|
|
+ Source="{StaticResource ShortcutsImage}" />
|
|
|
+ <TextBlock
|
|
|
+ Classes="txt"
|
|
|
+ Text="{Binding ApplicationShortcuts}"
|
|
|
+ TextAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </TabItem.Header>
|
|
|
+ </TabItem>
|
|
|
+ </TabControl>
|
|
|
+ </DockPanel>
|
|
|
+ </Border>
|
|
|
+ <Grid PointerPressed="MoveWindow">
|
|
|
+ <ScrollViewer
|
|
|
+ Height="{Binding $parent[StackPanel].Bounds.Height}"
|
|
|
+ Background="{StaticResource NoisyTexture}"
|
|
|
+ IsVisible="{Binding Path=IsSelected, ElementName=GeneralSettingsTabItem}">
|
|
|
+ <views:GeneralSettingsView />
|
|
|
+ </ScrollViewer>
|
|
|
+ </Grid>
|
|
|
+ </StackPanel>
|
|
|
+</Window>
|