- tweak: prettify
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<SolidColorBrush x:Key="DefaultBackground">#121212</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DefaultForeground">#222222</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DefaultBackground">#222222</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DefaultForeground">#121212</SolidColorBrush>
|
||||
<SolidColorBrush x:Key="DefaultSelected">#D95F59</SolidColorBrush>
|
||||
</ResourceDictionary>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Style Selector="Window">
|
||||
<Setter Property="Background" Value="{StaticResource DefaultBackground}"/>
|
||||
<Setter Property="Background" Value="{StaticResource DefaultBackground}" />
|
||||
</Style>
|
||||
<Style Selector="Border">
|
||||
<Setter Property="CornerRadius" Value="10" />
|
||||
@@ -48,23 +48,35 @@
|
||||
<Setter Property="BorderBrush" Value="#f7f7ff" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Style>
|
||||
<Style Selector="TextBox"></Style>
|
||||
<Style Selector="TextBox" />
|
||||
|
||||
<Style Selector="ListBoxItem">
|
||||
<Style Selector="ListBoxItem /template/ ContentPresenter">
|
||||
<Setter Property="CornerRadius" Value="0,8,8,0" />
|
||||
<Setter Property="Margin" Value="0,0,0,5" />
|
||||
<Setter Property="Padding" Value="8" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="ListBoxItem:selected">
|
||||
<Setter Property="Background" Value="{StaticResource DefaultSelected}"/>
|
||||
<Style Selector="ListBoxItem:selected /template/ ContentPresenter">
|
||||
<Setter Property="CornerRadius" Value="0,8,8,0" />
|
||||
<Setter Property="Background" Value="{StaticResource DefaultSelected}" />
|
||||
<Setter Property="BoxShadow" Value="0 0 15 1 #1212" />
|
||||
</Style>
|
||||
<Style Selector="ListBoxItem:pressed">
|
||||
<Setter Property="Background" Value="{StaticResource DefaultSelected}"/>
|
||||
<Style Selector="ListBoxItem:pointerover">
|
||||
<Setter Property="CornerRadius" Value="0,8,8,0" />
|
||||
<Setter Property="Margin" Value="0,0,5,0" />
|
||||
</Style>
|
||||
<Style Selector="ListBoxItem:pressed /template/ ContentPresenter">
|
||||
<Setter Property="CornerRadius" Value="0,8,8,0" />
|
||||
<Setter Property="Background" Value="{StaticResource DefaultSelected}" />
|
||||
</Style>
|
||||
|
||||
<Style Selector="TextBox">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Style>
|
||||
<Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
|
||||
<Setter Property="BorderBrush" Value="White" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="0,0,0,1" />
|
||||
</Style>
|
||||
</Styles>
|
||||
@@ -35,19 +35,19 @@
|
||||
Grid.ColumnSpan="2"
|
||||
Grid.Row="0"
|
||||
IsPaneOpen="{Binding IsPaneOpen}"
|
||||
PaneBackground="#00000000">
|
||||
PaneBackground="Transparent">
|
||||
<SplitView.Pane>
|
||||
<Border
|
||||
Background="{StaticResource DefaultForeground}"
|
||||
BorderThickness="0,0,2,0"
|
||||
Background="{StaticResource DefaultBackground}"
|
||||
BoxShadow="0 0 5 0 #121212"
|
||||
CornerRadius="0,8,8,0"
|
||||
Grid.Column="0"
|
||||
Grid.Row="0"
|
||||
Margin="0,0,5,0"
|
||||
Padding="0">
|
||||
Padding="0,0,-4,0">
|
||||
<Grid ColumnDefinitions="*" RowDefinitions="*,40">
|
||||
<ListBox
|
||||
Background="#00000000"
|
||||
Background="Transparent"
|
||||
ItemsSource="{Binding Items}"
|
||||
Padding="0"
|
||||
SelectedItem="{Binding SelectedListItem}">
|
||||
@@ -78,9 +78,9 @@
|
||||
</SplitView>
|
||||
|
||||
<Border
|
||||
BorderThickness="0,2,0,0"
|
||||
Background="{StaticResource DefaultBackground}"
|
||||
BoxShadow="0 0 5 0 #121212"
|
||||
CornerRadius="0,0,0,0"
|
||||
Background="{StaticResource DefaultForeground}"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Grid.Row="1"
|
||||
@@ -96,7 +96,12 @@
|
||||
Margin="0"
|
||||
Padding="0"
|
||||
VerticalAlignment="Center">
|
||||
<TextBlock Foreground="#777777" HorizontalAlignment="Left" VerticalAlignment="Center">https://cinka.ru/nebula-launcher/</TextBlock>
|
||||
<TextBlock
|
||||
Foreground="#777777"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center">
|
||||
https://cinka.ru/nebula-launcher/
|
||||
</TextBlock>
|
||||
</Button>
|
||||
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center">prototype-product-v0.01</TextBlock>
|
||||
</Panel>
|
||||
@@ -106,9 +111,13 @@
|
||||
|
||||
<Panel IsVisible="{Binding Popup}">
|
||||
<Border Background="#111" Opacity="50" />
|
||||
<Border CornerRadius="10" Margin="40" Background="{StaticResource DefaultBackground}">
|
||||
<Border
|
||||
Background="{StaticResource DefaultBackground}"
|
||||
CornerRadius="10"
|
||||
Margin="40">
|
||||
<Grid RowDefinitions="35,*,20">
|
||||
<Border
|
||||
BorderBrush="{StaticResource DefaultForeground}"
|
||||
BorderThickness="0,0,0,2"
|
||||
CornerRadius="10,10,0,0"
|
||||
Grid.Row="0">
|
||||
@@ -131,7 +140,8 @@
|
||||
<TransitioningContentControl Content="{Binding CurrentPopup}" Grid.Row="1" />
|
||||
|
||||
<Border
|
||||
BorderThickness="0,2,0,2"
|
||||
BorderBrush="{StaticResource DefaultForeground}"
|
||||
BorderThickness="0,2,0,0"
|
||||
CornerRadius="0,0,10,10"
|
||||
Grid.Row="2">
|
||||
<Panel Margin="12,0,12,0" VerticalAlignment="Center">
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Nebula.Launcher.Views;
|
||||
@@ -15,5 +16,8 @@ public partial class MainWindow : Window
|
||||
: this()
|
||||
{
|
||||
Content = mainView;
|
||||
#if DEBUG
|
||||
this.AttachDevTools();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -7,8 +7,8 @@
|
||||
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:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages">
|
||||
xmlns:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Design.DataContext>
|
||||
<pages:AccountInfoViewModel />
|
||||
</Design.DataContext>
|
||||
@@ -18,6 +18,7 @@
|
||||
RowDefinitions="*">
|
||||
<StackPanel Grid.Column="1" Grid.Row="0">
|
||||
<Border
|
||||
BoxShadow="0 -1 15 0 #121212"
|
||||
CornerRadius="10,10,0,0"
|
||||
Margin="5,5,5,0"
|
||||
Padding="5">
|
||||
@@ -31,8 +32,9 @@
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate DataType="{x:Type pages:AuthLoginPasswordModel}">
|
||||
<Border
|
||||
BoxShadow="0 1 15 0 #121212"
|
||||
CornerRadius="0,10,0,10"
|
||||
Margin="5,5,5,0"
|
||||
Margin="5,5,5,5"
|
||||
VerticalAlignment="Center">
|
||||
<Panel>
|
||||
<StackPanel Margin="10,5,5,5" Orientation="Horizontal">
|
||||
@@ -51,7 +53,6 @@
|
||||
</Label>
|
||||
</Button>
|
||||
<Button
|
||||
BorderThickness="2,0,0,0"
|
||||
Command="{Binding OnDelete}"
|
||||
CornerRadius="0,10,0,0"
|
||||
Padding="5">
|
||||
@@ -73,6 +74,7 @@
|
||||
Grid.ColumnSpan="{Binding AuthViewSpan}"
|
||||
Grid.Row="0">
|
||||
<Border
|
||||
BoxShadow="0 0 15 0 #121212"
|
||||
CornerRadius="10"
|
||||
Margin="5"
|
||||
Padding="15">
|
||||
@@ -81,7 +83,7 @@
|
||||
<Svg
|
||||
Height="100"
|
||||
Margin="0,0,0,20"
|
||||
Path="/Assets/svg/user.svg"/>
|
||||
Path="/Assets/svg/user.svg" />
|
||||
<StackPanel HorizontalAlignment="Center">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label VerticalAlignment="Center">
|
||||
@@ -107,7 +109,7 @@
|
||||
</StackPanel>
|
||||
|
||||
<Border
|
||||
Background="#333333"
|
||||
BoxShadow="0 0 5 0 #121212"
|
||||
CornerRadius="10"
|
||||
IsVisible="{Binding AuthUrlConfigExpand}">
|
||||
<ScrollViewer Height="80">
|
||||
@@ -127,12 +129,14 @@
|
||||
</ListBox>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
<Button
|
||||
Command="{Binding DoAuth}"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center">
|
||||
<Label>Auth</Label>
|
||||
</Button>
|
||||
<Border BoxShadow="0 0 5 0 #121212">
|
||||
<Button
|
||||
Command="{Binding DoAuth}"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center">
|
||||
<Label>Auth</Label>
|
||||
</Button>
|
||||
</Border>
|
||||
<Button Command="{Binding ExpandAuthViewCommand}" HorizontalAlignment="Right">
|
||||
<Label>
|
||||
>
|
||||
@@ -144,7 +148,7 @@
|
||||
<Svg
|
||||
Height="100"
|
||||
Margin="0,0,0,20"
|
||||
Path="/Assets/svg/user.svg"/>
|
||||
Path="/Assets/svg/user.svg" />
|
||||
<Label>
|
||||
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
<TextBlock>Hello,</TextBlock>
|
||||
@@ -156,12 +160,16 @@
|
||||
Margin="5,20,5,5"
|
||||
Orientation="Horizontal"
|
||||
Spacing="5">
|
||||
<Button Command="{Binding Logout}">
|
||||
<Label>Logout</Label>
|
||||
</Button>
|
||||
<Button Command="{Binding SaveProfileCommand}">
|
||||
<Label>Save profile</Label>
|
||||
</Button>
|
||||
<Border BoxShadow="0 0 5 0 #121212">
|
||||
<Button Command="{Binding Logout}">
|
||||
<Label>Logout</Label>
|
||||
</Button>
|
||||
</Border>
|
||||
<Border BoxShadow="0 0 5 0 #121212">
|
||||
<Button Command="{Binding SaveProfileCommand}">
|
||||
<Label>Save profile</Label>
|
||||
</Button>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Panel>
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
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:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages">
|
||||
xmlns:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Design.DataContext>
|
||||
<pages:ServerListViewModel />
|
||||
@@ -18,18 +18,24 @@
|
||||
ColumnDefinitions="*"
|
||||
Margin="0"
|
||||
RowDefinitions="*,40">
|
||||
<ScrollViewer Margin="0,0,0,10" Padding="0,0,10,0" Grid.RowSpan="2">
|
||||
<ItemsControl
|
||||
ItemsSource="{Binding ServerInfos}"
|
||||
Padding="0">
|
||||
</ItemsControl>
|
||||
<ScrollViewer
|
||||
Grid.RowSpan="2"
|
||||
Margin="0,0,0,10"
|
||||
Padding="0,0,10,0">
|
||||
<ItemsControl ItemsSource="{Binding ServerInfos}" Padding="0" />
|
||||
</ScrollViewer>
|
||||
|
||||
<Border Grid.Row="1" Background="{StaticResource DefaultBackground}" BorderThickness="0">
|
||||
|
||||
</Border>
|
||||
|
||||
<Grid Grid.Row="1" ColumnDefinitions="*,40,40" RowDefinitions="*" Margin="5,0,0,0">
|
||||
<Border
|
||||
Background="{StaticResource DefaultBackground}"
|
||||
BoxShadow="0 2 25 0 #121212"
|
||||
CornerRadius="0"
|
||||
Grid.Row="1" />
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="*,40,40"
|
||||
Grid.Row="1"
|
||||
Margin="5,0,0,0"
|
||||
RowDefinitions="*">
|
||||
<TextBox
|
||||
Margin="0"
|
||||
Text="{Binding SearchText}"
|
||||
@@ -40,13 +46,13 @@
|
||||
Command="{Binding FilterRequired}"
|
||||
Grid.Column="1"
|
||||
Padding="10">
|
||||
<Svg Path="/Assets/svg/filter.svg"></Svg>
|
||||
<Svg Path="/Assets/svg/filter.svg" />
|
||||
</Button>
|
||||
<Button
|
||||
Command="{Binding UpdateRequired}"
|
||||
Grid.Column="2"
|
||||
Padding="10">
|
||||
<Svg Path="/Assets/svg/refresh.svg"></Svg>
|
||||
<Svg Path="/Assets/svg/refresh.svg" />
|
||||
</Button>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
@@ -18,15 +18,13 @@
|
||||
|
||||
<Border
|
||||
Background="Transparent"
|
||||
BorderThickness="3,1,0,1"
|
||||
BorderBrush="{StaticResource DefaultForeground}"
|
||||
BoxShadow="-2 0 18 -1 #121212"
|
||||
CornerRadius="10"
|
||||
Margin="5">
|
||||
<Grid ColumnDefinitions="*,80,50" RowDefinitions="35,*,*">
|
||||
<Border
|
||||
BorderBrush="{StaticResource DefaultForeground}"
|
||||
Background="#00000000"
|
||||
BorderThickness="0,0,0,2"
|
||||
Background="Transparent"
|
||||
BoxShadow="0 3 3 -1 #121212"
|
||||
CornerRadius="10"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
@@ -38,7 +36,8 @@
|
||||
Command="{Binding ExpandInfoRequired}"
|
||||
Grid.Column="0"
|
||||
Grid.Row="0"
|
||||
VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch">
|
||||
<ScrollViewer
|
||||
HorizontalScrollBarVisibility="Hidden"
|
||||
Margin="10,0,0,0"
|
||||
@@ -49,7 +48,7 @@
|
||||
</Label>
|
||||
</ScrollViewer>
|
||||
</Button>
|
||||
|
||||
|
||||
<StackPanel
|
||||
Grid.Column="1"
|
||||
Grid.Row="0"
|
||||
@@ -88,25 +87,27 @@
|
||||
</Button>
|
||||
</Grid>
|
||||
</Panel>
|
||||
|
||||
<Label FontSize="12" Grid.Column="0" HorizontalAlignment="Left"
|
||||
Grid.ColumnSpan="2"
|
||||
Grid.Row="1"
|
||||
IsVisible="{Binding ExpandInfo}"
|
||||
Margin="15">
|
||||
<TextBlock Text="{Binding Description}" TextWrapping="Wrap" />
|
||||
</Label>
|
||||
|
||||
<Border
|
||||
BorderBrush="{StaticResource DefaultForeground}"
|
||||
Background="Transparent"
|
||||
BorderThickness="0,2,0,0"
|
||||
CornerRadius="10"
|
||||
|
||||
<Label
|
||||
FontSize="12"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Grid.Row="1"
|
||||
HorizontalAlignment="Left"
|
||||
IsVisible="{Binding ExpandInfo}"
|
||||
Margin="15">
|
||||
<TextBlock Text="{Binding Description}" TextWrapping="Wrap" />
|
||||
</Label>
|
||||
|
||||
<Border
|
||||
Background="Transparent"
|
||||
BoxShadow="0 -3 3 -1 #121212"
|
||||
CornerRadius="10"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="3"
|
||||
Grid.Row="2"
|
||||
IsVisible="{Binding ExpandInfo}"
|
||||
Margin="5,15,15,5">
|
||||
Margin="5">
|
||||
<StackPanel Margin="5" Spacing="5">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label FontSize="10" VerticalAlignment="Center">Tags:</Label>
|
||||
@@ -115,8 +116,8 @@
|
||||
<DataTemplate DataType="{x:Type system:String}">
|
||||
<Border
|
||||
Background="{StaticResource DefaultForeground}"
|
||||
CornerRadius="8"
|
||||
BorderThickness="0"
|
||||
CornerRadius="8"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="1,1,1,1"
|
||||
VerticalAlignment="Center">
|
||||
@@ -128,21 +129,23 @@
|
||||
</ItemsControl.ItemTemplate>
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<StackPanel Margin="5"
|
||||
<StackPanel
|
||||
HorizontalAlignment="Left"
|
||||
Margin="5"
|
||||
Orientation="Horizontal"
|
||||
VerticalAlignment="Center" Spacing="8"/>
|
||||
Spacing="8"
|
||||
VerticalAlignment="Center" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
</ItemsControl>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" >
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label FontSize="10" VerticalAlignment="Center">Map:</Label>
|
||||
<Border
|
||||
<Border
|
||||
Background="{StaticResource DefaultForeground}"
|
||||
CornerRadius="8"
|
||||
BorderThickness="0"
|
||||
CornerRadius="8"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="5"
|
||||
VerticalAlignment="Center">
|
||||
@@ -156,8 +159,8 @@
|
||||
<Label FontSize="10" VerticalAlignment="Center">Preset:</Label>
|
||||
<Border
|
||||
Background="{StaticResource DefaultForeground}"
|
||||
CornerRadius="8"
|
||||
BorderThickness="0"
|
||||
CornerRadius="8"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="5"
|
||||
VerticalAlignment="Center">
|
||||
|
||||
Reference in New Issue
Block a user