- tweak: UI improvement
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
<Window
|
||||
Background="{x:Null}"
|
||||
ExtendClientAreaChromeHints="NoChrome"
|
||||
ExtendClientAreaTitleBarHeightHint="-1"
|
||||
ExtendClientAreaToDecorationsHint="True"
|
||||
Height="500"
|
||||
Icon="/Assets/avalonia-logo.ico"
|
||||
MinHeight="500"
|
||||
MinWidth="800"
|
||||
SystemDecorations="BorderOnly"
|
||||
Title="Nebula.Launcher"
|
||||
TransparencyLevelHint="AcrylicBlur"
|
||||
Width="800"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800"
|
||||
mc:Ignorable="d"
|
||||
@@ -12,4 +19,54 @@
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" />
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Grid ColumnDefinitions="*" RowDefinitions="30,*">
|
||||
<Border
|
||||
Background="{StaticResource DefaultGrad}"
|
||||
BorderThickness="0,0,0,2"
|
||||
CornerRadius="0"
|
||||
Grid.Column="0"
|
||||
Grid.Row="0">
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="100%,50%" StartPoint="0%,50%">
|
||||
<GradientStop Color="#222222" Offset="0.0" />
|
||||
<GradientStop Color="#442222" Offset="1.0" />
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Panel
|
||||
Background="{StaticResource DefaultGrad}"
|
||||
Height="30"
|
||||
PointerPressed="InputElement_OnPointerPressed">
|
||||
<TextBlock
|
||||
FontSize="10"
|
||||
Foreground="White"
|
||||
IsVisible="False"
|
||||
Margin="15,0"
|
||||
Text="Nebula Launcher"
|
||||
VerticalAlignment="Center" />
|
||||
<StackPanel
|
||||
HorizontalAlignment="Right"
|
||||
Margin="5,0,5,0"
|
||||
Orientation="Horizontal"
|
||||
Spacing="8">
|
||||
<Button
|
||||
Click="Minimize_Click"
|
||||
Content="🗕"
|
||||
Foreground="Azure" />
|
||||
<Button
|
||||
Click="Maximize_Click"
|
||||
Content="🗗"
|
||||
Foreground="Azure" />
|
||||
<Button
|
||||
Click="Close_Click"
|
||||
Content="🗙"
|
||||
Foreground="Azure" />
|
||||
</StackPanel>
|
||||
</Panel>
|
||||
</Border>
|
||||
<UserControl
|
||||
Grid.Column="0"
|
||||
Grid.Row="1"
|
||||
x:Name="Control" />
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user