2024-12-21 13:11:30 +03:00
|
|
|
<UserControl
|
|
|
|
|
d:DesignHeight="450"
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
mc:Ignorable="d"
|
2024-12-22 16:38:47 +03:00
|
|
|
x:Class="Nebula.Launcher.Views.Pages.ServerListView"
|
2025-01-14 22:10:16 +03:00
|
|
|
x:DataType="pages:ServerListViewModel"
|
2024-12-21 13:11:30 +03:00
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2025-01-23 20:43:52 +03:00
|
|
|
xmlns:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2024-12-22 16:38:47 +03:00
|
|
|
|
|
|
|
|
<Design.DataContext>
|
2025-01-14 22:10:16 +03:00
|
|
|
<pages:ServerListViewModel />
|
2024-12-22 16:38:47 +03:00
|
|
|
</Design.DataContext>
|
|
|
|
|
|
2025-01-11 20:39:58 +03:00
|
|
|
<Grid
|
|
|
|
|
ColumnDefinitions="*"
|
2025-01-21 20:44:36 +03:00
|
|
|
Margin="0"
|
2025-01-11 20:39:58 +03:00
|
|
|
RowDefinitions="*,40">
|
2025-01-23 20:43:52 +03:00
|
|
|
<ScrollViewer
|
|
|
|
|
Grid.RowSpan="2"
|
2025-02-02 10:57:29 +03:00
|
|
|
Margin="5,0,0,10"
|
2025-01-23 20:43:52 +03:00
|
|
|
Padding="0,0,10,0">
|
2025-02-02 10:57:29 +03:00
|
|
|
<StackPanel>
|
|
|
|
|
<ItemsControl ItemsSource="{Binding HubErrors}" Margin="10,0,10,0" />
|
2025-01-29 12:32:42 +03:00
|
|
|
<ItemsControl
|
|
|
|
|
IsVisible="{Binding IsFavoriteMode}"
|
2025-01-30 20:18:40 +03:00
|
|
|
ItemsSource="{Binding FavoriteServers}"
|
2025-01-29 12:32:42 +03:00
|
|
|
Padding="0" />
|
|
|
|
|
<ItemsControl
|
|
|
|
|
IsVisible="{Binding !IsFavoriteMode}"
|
2025-01-30 20:18:40 +03:00
|
|
|
ItemsSource="{Binding Servers}"
|
2025-01-29 12:32:42 +03:00
|
|
|
Padding="0" />
|
2025-02-02 10:57:29 +03:00
|
|
|
</StackPanel>
|
2024-12-21 13:11:30 +03:00
|
|
|
</ScrollViewer>
|
2025-01-21 20:44:36 +03:00
|
|
|
|
2025-01-23 20:43:52 +03:00
|
|
|
<Border
|
2025-02-20 22:13:31 +03:00
|
|
|
Background="{StaticResource DefaultGrad}"
|
2025-01-23 20:43:52 +03:00
|
|
|
BoxShadow="0 2 25 0 #121212"
|
|
|
|
|
CornerRadius="0"
|
|
|
|
|
Grid.Row="1" />
|
|
|
|
|
|
|
|
|
|
<Grid
|
2025-01-29 12:32:42 +03:00
|
|
|
ColumnDefinitions="*,40,40,40"
|
2025-01-23 20:43:52 +03:00
|
|
|
Grid.Row="1"
|
2025-02-02 10:57:29 +03:00
|
|
|
Margin="-25,0,0,0"
|
2025-01-23 20:43:52 +03:00
|
|
|
RowDefinitions="*">
|
2025-01-21 20:44:36 +03:00
|
|
|
<TextBox
|
2025-02-02 10:57:29 +03:00
|
|
|
Margin="25,0,0,0"
|
2025-01-21 20:44:36 +03:00
|
|
|
Text="{Binding SearchText}"
|
|
|
|
|
TextChanged="TextBox_OnTextChanged"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Watermark="Server name..." />
|
|
|
|
|
<Button
|
2025-01-29 12:32:42 +03:00
|
|
|
Command="{Binding AddFavoriteRequired}"
|
2025-01-21 20:44:36 +03:00
|
|
|
Grid.Column="1"
|
|
|
|
|
Padding="10">
|
2025-01-29 12:32:42 +03:00
|
|
|
<Svg IsVisible="{Binding IsFavoriteMode}" Path="/Assets/svg/star.svg" />
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
Command="{Binding FilterRequired}"
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
Padding="10">
|
2025-01-23 20:43:52 +03:00
|
|
|
<Svg Path="/Assets/svg/filter.svg" />
|
2025-01-21 20:44:36 +03:00
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
Command="{Binding UpdateRequired}"
|
2025-01-29 12:32:42 +03:00
|
|
|
Grid.Column="3"
|
2025-01-21 20:44:36 +03:00
|
|
|
Padding="10">
|
2025-01-23 20:43:52 +03:00
|
|
|
<Svg Path="/Assets/svg/refresh.svg" />
|
2025-01-21 20:44:36 +03:00
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
2024-12-21 13:11:30 +03:00
|
|
|
</Grid>
|
2025-01-14 22:10:16 +03:00
|
|
|
</UserControl>
|