-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.axaml
More file actions
60 lines (57 loc) · 3.1 KB
/
Copy pathMainWindow.axaml
File metadata and controls
60 lines (57 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<Window 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:controls="clr-namespace:YuCanvas.Controls"
xmlns:vm="clr-namespace:YuCanvas.Models"
xmlns:md="https://github.com/whistyun/Markdown.Avalonia"
x:DataType="viewModels:MainWindowViewModel"
xmlns:views="clr-namespace:YuCanvas.Views"
xmlns:viewModels="clr-namespace:YuCanvas.Models.ViewModels"
mc:Ignorable="d" d:DesignWidth="1320" d:DesignHeight="860"
x:Class="YuCanvas.MainWindow"
Title="YuCanvas"
Width="1320" Height="860"
MinWidth="1040" MinHeight="680"
Background="{StaticResource BgDeepBrush}"
TransparencyLevelHint="AcrylicBlur"
ExtendClientAreaToDecorationsHint="False">
<Panel>
<Border Background="{StaticResource AppBackground}" />
<Border Background="{StaticResource GlowPurple}" Width="700" Height="700"
Opacity="0.35" HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="0,-320,-220,0" />
<Border Background="{StaticResource GlowPurple}" Width="560" Height="560"
Opacity="0.22" HorizontalAlignment="Left" VerticalAlignment="Bottom"
Margin="-260,0,0,-260" />
<Grid ColumnDefinitions="260,*">
<controls:SidebarView Grid.Column="0" />
<Grid Grid.Column="1" RowDefinitions="Auto,*">
<controls:TopBarView Grid.Row="0" />
<ContentControl Grid.Row="1" Content="{Binding CurrentPage}" />
</Grid>
</Grid>
<Border Background="#C70B1120" IsVisible="{Binding Settings.IsChangelogOpen}">
<Border Classes="glass" MinWidth="480" MaxWidth="1000" MaxHeight="700"
HorizontalAlignment="Center" VerticalAlignment="Center"
ClipToBounds="True">
<Grid RowDefinitions="Auto,Auto,*">
<Grid Grid.Row="0" ColumnDefinitions="*,Auto" Margin="24,18,14,14">
<StackPanel Grid.Column="0" Spacing="2" VerticalAlignment="Center">
<TextBlock Text="Änderungen" Classes="h2" />
<TextBlock Text="{Binding Settings.LatestVersionLabel}" Classes="caption" />
</StackPanel>
<Button Grid.Column="1" Classes="iconbtn"
Command="{Binding Settings.CloseChangelogCommand}">
<TextBlock Text="✕" />
</Button>
</Grid>
<Rectangle Grid.Row="1" Height="1"
Fill="{StaticResource GlassStrokeBrush}" Margin="24,0" />
<md:MarkdownScrollViewer Grid.Row="2" Margin="24,14,24,20"
Markdown="{Binding Settings.ChangelogText}" />
</Grid>
</Border>
</Border>
</Panel>
</Window>