Rework ServerSelector app UI (#27)

* Rework ServerSelector app UI

* fix border on linux

---------

Co-authored-by: Mikhail Tyukin <mishakeys20@gmail.com>
This commit is contained in:
GreenXeMotion
2025-04-07 03:56:44 +06:00
committed by GitHub
parent 3769b8ef58
commit fb274baebf
5 changed files with 331 additions and 15 deletions

View File

@@ -1,4 +1,6 @@
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
namespace ServerSelector.Views;
@@ -8,4 +10,22 @@ public partial class MainWindow : Window
{
InitializeComponent();
}
private void WindowPointerPressed(object? sender, PointerPressedEventArgs e)
{
if (e.GetCurrentPoint(this).Properties.IsLeftButtonPressed)
{
BeginMoveDrag(e);
}
}
private void MinimizeButton_Click(object sender, RoutedEventArgs e)
{
WindowState = WindowState.Minimized;
}
private void CloseButton_Click(object sender, RoutedEventArgs e)
{
Close();
}
}