|
|
@@ -1,27 +1,32 @@
|
|
|
<UserControl
|
|
|
- Background="{StaticResource WindowBackgroundColor}"
|
|
|
x:Class="PicView.Views.CustomTitleBars.WinTitleBar"
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
xmlns:vm="using:PicView.ViewModels"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
+
|
|
|
<Design.DataContext>
|
|
|
<vm:MainWindowViewModel />
|
|
|
</Design.DataContext>
|
|
|
+
|
|
|
<DockPanel LastChildFill="True">
|
|
|
- <Image
|
|
|
- DockPanel.Dock="Left"
|
|
|
- Height="25"
|
|
|
- Margin="7,1,7,1"
|
|
|
- Source="avares://PicView/Assets/PicView/icon__Q6k_icon.ico"
|
|
|
- Width="30" />
|
|
|
- <Rectangle
|
|
|
- DockPanel.Dock="Left"
|
|
|
- Fill="{StaticResource BorderBrush}"
|
|
|
- Height="30"
|
|
|
- Width="1" />
|
|
|
+
|
|
|
+ <Border
|
|
|
+ Background="{StaticResource BackgroundSubtleHighlightBrush}"
|
|
|
+ BorderBrush="{StaticResource BorderBrush}"
|
|
|
+ BorderThickness="0,0,1,0"
|
|
|
+ Height="30">
|
|
|
+ <Image
|
|
|
+ DockPanel.Dock="Left"
|
|
|
+ Height="25"
|
|
|
+ Margin="7,1,7,1"
|
|
|
+ Source="avares://PicView/Assets/PicView/icon__Q6k_icon.ico"
|
|
|
+ Width="30" />
|
|
|
+ </Border>
|
|
|
|
|
|
<Button
|
|
|
- Background="Transparent"
|
|
|
+ Background="{StaticResource BackgroundSubtleHighlightBrush}"
|
|
|
+ BorderBrush="{StaticResource BorderBrush}"
|
|
|
+ BorderThickness="0,0,1,0"
|
|
|
DockPanel.Dock="Left"
|
|
|
Height="30"
|
|
|
Name="GalleryButton"
|
|
|
@@ -34,14 +39,11 @@
|
|
|
</DrawingImage>
|
|
|
</Image>
|
|
|
</Button>
|
|
|
- <Rectangle
|
|
|
- DockPanel.Dock="Left"
|
|
|
- Fill="{StaticResource BorderBrush}"
|
|
|
- Height="30"
|
|
|
- Width="1" />
|
|
|
|
|
|
<Button
|
|
|
- Background="Transparent"
|
|
|
+ Background="{StaticResource BackgroundSubtleHighlightBrush}"
|
|
|
+ BorderBrush="{StaticResource BorderBrush}"
|
|
|
+ BorderThickness="0,0,1,0"
|
|
|
DockPanel.Dock="Left"
|
|
|
Height="30"
|
|
|
Margin="0"
|
|
|
@@ -54,40 +56,29 @@
|
|
|
Stretch="Fill"
|
|
|
Width="15" />
|
|
|
</Button>
|
|
|
- <Rectangle
|
|
|
- DockPanel.Dock="Left"
|
|
|
- Fill="{StaticResource BorderBrush}"
|
|
|
- Height="30"
|
|
|
- Width="1" />
|
|
|
|
|
|
<Button
|
|
|
- Background="Transparent"
|
|
|
+ Background="{StaticResource BackgroundSubtleHighlightBrush}"
|
|
|
Command="{Binding ExitCommand}"
|
|
|
DockPanel.Dock="Right"
|
|
|
- Height="30">
|
|
|
+ Height="30"
|
|
|
+ Width="30">
|
|
|
<Path
|
|
|
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 IconColor}"
|
|
|
Height="12"
|
|
|
Stretch="Fill"
|
|
|
Width="12" />
|
|
|
- <Button.Styles>
|
|
|
- <Style Selector="Button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
|
|
|
- <Setter Property="Background" Value="#BFE61918" />
|
|
|
- </Style>
|
|
|
- </Button.Styles>
|
|
|
</Button>
|
|
|
- <Rectangle
|
|
|
- DockPanel.Dock="Right"
|
|
|
- Fill="{StaticResource BorderBrush}"
|
|
|
- Height="30"
|
|
|
- Width="1" />
|
|
|
|
|
|
<Button
|
|
|
- Background="Transparent"
|
|
|
+ Background="{StaticResource BackgroundSubtleHighlightBrush}"
|
|
|
+ BorderBrush="{StaticResource BorderBrush}"
|
|
|
+ BorderThickness="0,0,1,0"
|
|
|
DockPanel.Dock="Right"
|
|
|
Height="30"
|
|
|
- Name="RestoreButton">
|
|
|
+ Name="RestoreButton"
|
|
|
+ Width="30">
|
|
|
<Path
|
|
|
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 IconColor}"
|
|
|
@@ -95,17 +86,15 @@
|
|
|
Stretch="Fill"
|
|
|
Width="12" />
|
|
|
</Button>
|
|
|
- <Rectangle
|
|
|
- DockPanel.Dock="Right"
|
|
|
- Fill="{StaticResource BorderBrush}"
|
|
|
- Height="30"
|
|
|
- Width="1" />
|
|
|
|
|
|
<Button
|
|
|
- Background="Transparent"
|
|
|
+ Background="{StaticResource BackgroundSubtleHighlightBrush}"
|
|
|
+ BorderBrush="{StaticResource BorderBrush}"
|
|
|
+ BorderThickness="1,0,1,0"
|
|
|
Command="{Binding MinimizeCommand}"
|
|
|
DockPanel.Dock="Right"
|
|
|
- Height="30">
|
|
|
+ Height="30"
|
|
|
+ Width="30">
|
|
|
<Viewbox Height="12" Width="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"
|
|
|
@@ -113,11 +102,6 @@
|
|
|
Stretch="Fill" />
|
|
|
</Viewbox>
|
|
|
</Button>
|
|
|
- <Rectangle
|
|
|
- DockPanel.Dock="Right"
|
|
|
- Fill="{StaticResource BorderBrush}"
|
|
|
- Height="30"
|
|
|
- Width="1" />
|
|
|
|
|
|
<TextBlock
|
|
|
Background="{StaticResource BackgroundSubtleHighlightBrush}"
|