From 1374772d4669fdb78dc27d86ff137f259ebb4c61 Mon Sep 17 00:00:00 2001 From: Cinka Date: Thu, 23 Jan 2025 20:43:52 +0300 Subject: [PATCH] - tweak: prettify --- Nebula.Launcher/Assets/AppResources.axaml | 4 +- Nebula.Launcher/Assets/Style.axaml | 26 +++++--- Nebula.Launcher/Views/MainView.axaml | 30 ++++++--- Nebula.Launcher/Views/MainWindow.axaml.cs | 4 ++ .../Views/Pages/AccountInfoView.axaml | 46 ++++++++------ .../Views/Pages/ServerListView.axaml | 34 ++++++----- Nebula.Launcher/Views/ServerEntryView.axaml | 61 ++++++++++--------- 7 files changed, 124 insertions(+), 81 deletions(-) diff --git a/Nebula.Launcher/Assets/AppResources.axaml b/Nebula.Launcher/Assets/AppResources.axaml index 0057b0c..efab005 100644 --- a/Nebula.Launcher/Assets/AppResources.axaml +++ b/Nebula.Launcher/Assets/AppResources.axaml @@ -1,5 +1,5 @@ - #121212 - #222222 + #222222 + #121212 #D95F59 diff --git a/Nebula.Launcher/Assets/Style.axaml b/Nebula.Launcher/Assets/Style.axaml index 5408d3f..065965c 100644 --- a/Nebula.Launcher/Assets/Style.axaml +++ b/Nebula.Launcher/Assets/Style.axaml @@ -1,6 +1,6 @@ - + - - + + \ No newline at end of file diff --git a/Nebula.Launcher/Views/MainView.axaml b/Nebula.Launcher/Views/MainView.axaml index cec9da4..2e9143d 100644 --- a/Nebula.Launcher/Views/MainView.axaml +++ b/Nebula.Launcher/Views/MainView.axaml @@ -35,19 +35,19 @@ Grid.ColumnSpan="2" Grid.Row="0" IsPaneOpen="{Binding IsPaneOpen}" - PaneBackground="#00000000"> + PaneBackground="Transparent"> + Padding="0,0,-4,0"> @@ -78,9 +78,9 @@ - https://cinka.ru/nebula-launcher/ + + https://cinka.ru/nebula-launcher/ + prototype-product-v0.01 @@ -106,9 +111,13 @@ - + @@ -131,7 +140,8 @@ diff --git a/Nebula.Launcher/Views/MainWindow.axaml.cs b/Nebula.Launcher/Views/MainWindow.axaml.cs index e2a8032..4ef965e 100644 --- a/Nebula.Launcher/Views/MainWindow.axaml.cs +++ b/Nebula.Launcher/Views/MainWindow.axaml.cs @@ -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 } } \ No newline at end of file diff --git a/Nebula.Launcher/Views/Pages/AccountInfoView.axaml b/Nebula.Launcher/Views/Pages/AccountInfoView.axaml index 21c186a..fa56b9d 100644 --- a/Nebula.Launcher/Views/Pages/AccountInfoView.axaml +++ b/Nebula.Launcher/Views/Pages/AccountInfoView.axaml @@ -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"> @@ -18,6 +18,7 @@ RowDefinitions="*"> @@ -31,8 +32,9 @@ @@ -51,7 +53,6 @@ + + + - + + + + + + diff --git a/Nebula.Launcher/Views/Pages/ServerListView.axaml b/Nebula.Launcher/Views/Pages/ServerListView.axaml index 0892881..729e163 100644 --- a/Nebula.Launcher/Views/Pages/ServerListView.axaml +++ b/Nebula.Launcher/Views/Pages/ServerListView.axaml @@ -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"> @@ -18,18 +18,24 @@ ColumnDefinitions="*" Margin="0" RowDefinitions="*,40"> - - - + + - - - - - + + + - + diff --git a/Nebula.Launcher/Views/ServerEntryView.axaml b/Nebula.Launcher/Views/ServerEntryView.axaml index 87c1497..bfa9f0a 100644 --- a/Nebula.Launcher/Views/ServerEntryView.axaml +++ b/Nebula.Launcher/Views/ServerEntryView.axaml @@ -18,15 +18,13 @@ + HorizontalAlignment="Stretch" + VerticalAlignment="Stretch"> - + - - - - + + + + + Margin="5"> @@ -115,8 +116,8 @@ @@ -128,21 +129,23 @@ - + Spacing="8" + VerticalAlignment="Center" /> - + - @@ -156,8 +159,8 @@