mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-13 03:10:44 -05:00
update to avalonia 11
This commit is contained in:
parent
a584088944
commit
0963264dfe
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
<Application xmlns="https://github.com/avaloniaui"
|
<Application xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="using:SPT.Launcher"
|
xmlns:local="using:SPT.Launcher"
|
||||||
x:Class="SPT.Launcher.App">
|
x:Class="SPT.Launcher.App"
|
||||||
|
RequestedThemeVariant="Dark"
|
||||||
|
>
|
||||||
<Application.DataTemplates>
|
<Application.DataTemplates>
|
||||||
<local:ViewLocator/>
|
<local:ViewLocator/>
|
||||||
</Application.DataTemplates>
|
</Application.DataTemplates>
|
||||||
|
|
||||||
<Application.Styles>
|
<Application.Styles>
|
||||||
<StyleInclude Source="avares://DialogHost.Avalonia/Styles.xaml"/>
|
<StyleInclude Source="avares://DialogHost.Avalonia/Styles.xaml"/>
|
||||||
<FluentTheme Mode="Light"/>
|
<FluentTheme />
|
||||||
</Application.Styles>
|
</Application.Styles>
|
||||||
|
|
||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<Styles xmlns="https://github.com/avaloniaui"
|
<Styles xmlns="https://github.com/avaloniaui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:cc="using:SPT.Launcher.CustomControls"
|
xmlns:cc="using:SPT.Launcher.CustomControls"
|
||||||
xmlns:rxui="using:Avalonia.ReactiveUI"
|
|
||||||
>
|
>
|
||||||
<Design.PreviewWith>
|
<Design.PreviewWith>
|
||||||
<StackPanel Spacing="5" Background="{StaticResource SPT_Background_Dark}" Margin="50">
|
<StackPanel Spacing="5" Background="{StaticResource SPT_Background_Dark}" Margin="50">
|
||||||
@ -17,8 +16,8 @@
|
|||||||
<!-- Notification Manager Styles -->
|
<!-- Notification Manager Styles -->
|
||||||
<Style Selector="WindowNotificationManager">
|
<Style Selector="WindowNotificationManager">
|
||||||
<Setter Property="Margin" Value="0 35 0 0"/>
|
<Setter Property="Margin" Value="0 35 0 0"/>
|
||||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
<!-- <Setter Property="VerticalAlignment" Value="Bottom"/> -->
|
||||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
<!-- <Setter Property="HorizontalAlignment" Value="Center"/> -->
|
||||||
<Setter Property="MaxItems" Value="2"/>
|
<Setter Property="MaxItems" Value="2"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
@ -41,48 +40,48 @@
|
|||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
<Style.Animations>
|
<!-- <Style.Animations> -->
|
||||||
<Animation Duration="0:0:0.45" Easing="SineEaseIn" FillMode="Forward">
|
<!-- <Animation Duration="0:0:0.45" Easing="SineEaseIn" FillMode="Forward"> -->
|
||||||
<KeyFrame Cue="0%">
|
<!-- <KeyFrame Cue="0%"> -->
|
||||||
<Setter Property="Opacity" Value="0"/>
|
<!-- <Setter Property="Opacity" Value="0"/> -->
|
||||||
<Setter Property="ZIndex" Value="0"/>
|
<!-- <Setter Property="ZIndex" Value="0"/> -->
|
||||||
<Setter Property="TranslateTransform.Y" Value="-100"/>
|
<!-- <Setter Property="TranslateTransform.Y" Value="-100"/> -->
|
||||||
<Setter Property="ScaleTransform.ScaleX" Value="1"/>
|
<!-- <Setter Property="ScaleTransform.ScaleX" Value="1"/> -->
|
||||||
<Setter Property="ScaleTransform.ScaleY" Value="1"/>
|
<!-- <Setter Property="ScaleTransform.ScaleY" Value="1"/> -->
|
||||||
</KeyFrame>
|
<!-- </KeyFrame> -->
|
||||||
<KeyFrame Cue="30%">
|
<!-- <KeyFrame Cue="30%"> -->
|
||||||
<Setter Property="Opacity" Value="0"/>
|
<!-- <Setter Property="Opacity" Value="0"/> -->
|
||||||
</KeyFrame>
|
<!-- </KeyFrame> -->
|
||||||
<KeyFrame Cue="99%">
|
<!-- <KeyFrame Cue="99%"> -->
|
||||||
<Setter Property="ZIndex" Value="0"/>
|
<!-- <Setter Property="ZIndex" Value="0"/> -->
|
||||||
</KeyFrame>
|
<!-- </KeyFrame> -->
|
||||||
<KeyFrame Cue="100%">
|
<!-- <KeyFrame Cue="100%"> -->
|
||||||
<Setter Property="Opacity" Value="1"/>
|
<!-- <Setter Property="Opacity" Value="1"/> -->
|
||||||
<Setter Property="ZIndex" Value="1"/>
|
<!-- <Setter Property="ZIndex" Value="1"/> -->
|
||||||
<Setter Property="TranslateTransform.Y" Value="0"/>
|
<!-- <Setter Property="TranslateTransform.Y" Value="0"/> -->
|
||||||
<Setter Property="ScaleTransform.ScaleX" Value="1"/>
|
<!-- <Setter Property="ScaleTransform.ScaleX" Value="1"/> -->
|
||||||
<Setter Property="ScaleTransform.ScaleY" Value="1"/>
|
<!-- <Setter Property="ScaleTransform.ScaleY" Value="1"/> -->
|
||||||
</KeyFrame>
|
<!-- </KeyFrame> -->
|
||||||
</Animation>
|
<!-- </Animation> -->
|
||||||
</Style.Animations>
|
<!-- </Style.Animations> -->
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="NotificationCard[IsClosing=true] /template/ LayoutTransformControl#PART_LayoutTransformControl">
|
<!-- <Style Selector="NotificationCard[IsClosing=true] /template/ LayoutTransformControl#PART_LayoutTransformControl"> -->
|
||||||
<Style.Animations>
|
<!-- <Style.Animations> -->
|
||||||
<Animation Duration="0:0:0.3" Easing="SineEaseOut" FillMode="Backward">
|
<!-- <Animation Duration="0:0:0.3" Easing="SineEaseOut" FillMode="Backward"> -->
|
||||||
<KeyFrame Cue="0%">
|
<!-- <KeyFrame Cue="0%"> -->
|
||||||
<Setter Property="Opacity" Value="1"/>
|
<!-- <Setter Property="Opacity" Value="1"/> -->
|
||||||
<Setter Property="TranslateTransform.X" Value="0"/>
|
<!-- <Setter Property="TranslateTransform.X" Value="0"/> -->
|
||||||
<Setter Property="TranslateTransform.Y" Value="0"/>
|
<!-- <Setter Property="TranslateTransform.Y" Value="0"/> -->
|
||||||
</KeyFrame>
|
<!-- </KeyFrame> -->
|
||||||
<KeyFrame Cue="100%">
|
<!-- <KeyFrame Cue="100%"> -->
|
||||||
<Setter Property="Opacity" Value="0"/>
|
<!-- <Setter Property="Opacity" Value="0"/> -->
|
||||||
<Setter Property="TranslateTransform.X" Value="0"/>
|
<!-- <Setter Property="TranslateTransform.X" Value="0"/> -->
|
||||||
<Setter Property="TranslateTransform.Y" Value="-100"/>
|
<!-- <Setter Property="TranslateTransform.Y" Value="-100"/> -->
|
||||||
</KeyFrame>
|
<!-- </KeyFrame> -->
|
||||||
</Animation>
|
<!-- </Animation> -->
|
||||||
</Style.Animations>
|
<!-- </Style.Animations> -->
|
||||||
</Style>
|
<!-- </Style> -->
|
||||||
|
|
||||||
<!-- TitleBar Styles -->
|
<!-- TitleBar Styles -->
|
||||||
<Style Selector="cc|TitleBar">
|
<Style Selector="cc|TitleBar">
|
||||||
@ -423,11 +422,9 @@
|
|||||||
<ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
<ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
||||||
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
|
||||||
<ItemsPresenter Name="PART_ItemsPresenter"
|
<ItemsPresenter Name="PART_ItemsPresenter"
|
||||||
Items="{TemplateBinding Items}"
|
|
||||||
Margin="{DynamicResource ComboBoxDropdownContentMargin}"
|
Margin="{DynamicResource ComboBoxDropdownContentMargin}"
|
||||||
ItemsPanel="{TemplateBinding ItemsPanel}"
|
ItemsPanel="{TemplateBinding ItemsPanel}"
|
||||||
ItemTemplate="{TemplateBinding ItemTemplate}"
|
/>
|
||||||
VirtualizationMode="{TemplateBinding VirtualizationMode}" />
|
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Border>
|
</Border>
|
||||||
</Popup>
|
</Popup>
|
||||||
|
@ -61,7 +61,7 @@ namespace SPT.Launcher.CustomControls
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
comboBox.Items = actionsList;
|
comboBox.ItemsSource = actionsList;
|
||||||
|
|
||||||
foreach(var item in comboBox.Items)
|
foreach(var item in comboBox.Items)
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,7 @@ using Avalonia.Controls.Notifications;
|
|||||||
using Splat;
|
using Splat;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using DialogHostAvalonia;
|
||||||
|
|
||||||
namespace SPT.Launcher.Models
|
namespace SPT.Launcher.Models
|
||||||
{
|
{
|
||||||
@ -30,7 +31,7 @@ namespace SPT.Launcher.Models
|
|||||||
|
|
||||||
var localeText = string.Format(LocalizationProvider.Instance.file_mismatch_dialog_message, serverVersion);
|
var localeText = string.Format(LocalizationProvider.Instance.file_mismatch_dialog_message, serverVersion);
|
||||||
|
|
||||||
var result = await DialogHost.DialogHost.Show(new ConfirmationDialogViewModel(null, localeText, null, null, LauncherSettingsProvider.Instance.IsDevMode));
|
var result = await DialogHost.Show(new ConfirmationDialogViewModel(null, localeText, null, null, LauncherSettingsProvider.Instance.IsDevMode));
|
||||||
|
|
||||||
if(result != null && result is bool confirmation && !confirmation)
|
if(result != null && result is bool confirmation && !confirmation)
|
||||||
{
|
{
|
||||||
|
@ -22,12 +22,13 @@
|
|||||||
<Content Include="Assets\icon.ico" />
|
<Content Include="Assets\icon.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia" Version="0.10.15" />
|
<PackageReference Include="Avalonia" Version="11.1.0-rc2" />
|
||||||
<PackageReference Include="Avalonia.Desktop" Version="0.10.15" />
|
<PackageReference Include="Avalonia.Desktop" Version="11.1.0-rc2" />
|
||||||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
||||||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.12" />
|
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.12" />
|
||||||
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.15" />
|
<PackageReference Include="Avalonia.ReactiveUI" Version="11.1.0-rc2" />
|
||||||
<PackageReference Include="DialogHost.Avalonia" Version="0.5.0" />
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.0-rc2" />
|
||||||
|
<PackageReference Include="DialogHost.Avalonia" Version="0.8.0-avalonia11dot1-3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\SPT.ByteBanger\SPT.ByteBanger.csproj" />
|
<ProjectReference Include="..\SPT.ByteBanger\SPT.ByteBanger.csproj" />
|
||||||
|
@ -7,7 +7,7 @@ namespace SPT.Launcher
|
|||||||
{
|
{
|
||||||
public class ViewLocator : IDataTemplate
|
public class ViewLocator : IDataTemplate
|
||||||
{
|
{
|
||||||
public IControl Build(object data)
|
public Control Build(object data)
|
||||||
{
|
{
|
||||||
var name = data.GetType().FullName!.Replace("ViewModel", "View");
|
var name = data.GetType().FullName!.Replace("ViewModel", "View");
|
||||||
var type = Type.GetType(name);
|
var type = Type.GetType(name);
|
||||||
|
@ -9,7 +9,7 @@ using SPT.Launcher.Models.SPT;
|
|||||||
using SPT.Launcher.Helpers;
|
using SPT.Launcher.Helpers;
|
||||||
using SPT.Launcher.ViewModels.Dialogs;
|
using SPT.Launcher.ViewModels.Dialogs;
|
||||||
using Avalonia.Threading;
|
using Avalonia.Threading;
|
||||||
using dialogHost = DialogHost.DialogHost;
|
using DialogHostAvalonia;
|
||||||
|
|
||||||
|
|
||||||
namespace SPT.Launcher.ViewModels
|
namespace SPT.Launcher.ViewModels
|
||||||
@ -48,7 +48,7 @@ namespace SPT.Launcher.ViewModels
|
|||||||
LocalizationProvider.Instance.yes,
|
LocalizationProvider.Instance.yes,
|
||||||
LocalizationProvider.Instance.no);
|
LocalizationProvider.Instance.no);
|
||||||
|
|
||||||
var confirmCopySettings = await dialogHost.Show(viewModel);
|
var confirmCopySettings = await DialogHost.Show(viewModel);
|
||||||
|
|
||||||
if (confirmCopySettings is bool and true)
|
if (confirmCopySettings is bool and true)
|
||||||
{
|
{
|
||||||
|
@ -10,6 +10,7 @@ using SPT.Launcher.ViewModels.Dialogs;
|
|||||||
using Avalonia.Threading;
|
using Avalonia.Threading;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using Avalonia.Controls.ApplicationLifetimes;
|
||||||
using SPT.Launcher.Models.SPT;
|
using SPT.Launcher.Models.SPT;
|
||||||
|
|
||||||
namespace SPT.Launcher.ViewModels
|
namespace SPT.Launcher.ViewModels
|
||||||
@ -221,9 +222,14 @@ namespace SPT.Launcher.ViewModels
|
|||||||
|
|
||||||
public async Task CopyCommand(object parameter)
|
public async Task CopyCommand(object parameter)
|
||||||
{
|
{
|
||||||
if (Application.Current.Clipboard != null && parameter != null && parameter is string text)
|
if (Application.Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop && parameter is string text)
|
||||||
{
|
{
|
||||||
await Application.Current.Clipboard.SetTextAsync(text);
|
if (desktop?.MainWindow?.Clipboard == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
await desktop.MainWindow.Clipboard.SetTextAsync(text);
|
||||||
SendNotification("", $"{text} {LocalizationProvider.Instance.copied}", Avalonia.Controls.Notifications.NotificationType.Success);
|
SendNotification("", $"{text} {LocalizationProvider.Instance.copied}", Avalonia.Controls.Notifications.NotificationType.Success);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ using ReactiveUI;
|
|||||||
using Splat;
|
using Splat;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using dialogHost = DialogHost.DialogHost;
|
using DialogHostAvalonia;
|
||||||
|
|
||||||
namespace SPT.Launcher.ViewModels
|
namespace SPT.Launcher.ViewModels
|
||||||
{
|
{
|
||||||
@ -162,7 +162,7 @@ namespace SPT.Launcher.ViewModels
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<object?> ShowDialog(object ViewModel)
|
public async Task<object?> ShowDialog(object ViewModel)
|
||||||
{
|
{
|
||||||
return await dialogHost.Show(ViewModel);
|
return await DialogHost.Show(ViewModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ViewModelBase(IScreen Host)
|
public ViewModelBase(IScreen Host)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:helpers="using:SPT.Launcher.Helpers"
|
xmlns:helpers="using:SPT.Launcher.Helpers"
|
||||||
xmlns:dialogHost="clr-namespace:DialogHost;assembly=DialogHost.Avalonia"
|
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
|
||||||
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SPT.Launcher.Views.Dialogs.ChangeEditionDialogView"
|
x:Class="SPT.Launcher.Views.Dialogs.ChangeEditionDialogView"
|
||||||
@ -16,7 +16,7 @@
|
|||||||
Foreground="IndianRed"
|
Foreground="IndianRed"
|
||||||
/>
|
/>
|
||||||
<ComboBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
|
<ComboBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
|
||||||
Items="{Binding editions.AvailableEditions}"
|
ItemsSource="{Binding editions.AvailableEditions}"
|
||||||
SelectedItem="{Binding editions.SelectedEdition}"
|
SelectedItem="{Binding editions.SelectedEdition}"
|
||||||
PlaceholderText="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=select_edition}"
|
PlaceholderText="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=select_edition}"
|
||||||
>
|
>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:dialogHost="clr-namespace:DialogHost;assembly=DialogHost.Avalonia"
|
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
|
||||||
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SPT.Launcher.Views.Dialogs.ConfirmationDialogView"
|
x:Class="SPT.Launcher.Views.Dialogs.ConfirmationDialogView"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:dialogHost="clr-namespace:DialogHost;assembly=DialogHost.Avalonia"
|
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
|
||||||
xmlns:helpers="using:SPT.Launcher.Helpers"
|
xmlns:helpers="using:SPT.Launcher.Helpers"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SPT.Launcher.Views.Dialogs.RegisterDialogView"
|
x:Class="SPT.Launcher.Views.Dialogs.RegisterDialogView"
|
||||||
@ -19,7 +19,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Editions Combo Selection -->
|
<!-- Editions Combo Selection -->
|
||||||
<ComboBox Items="{Binding Editions.AvailableEditions}"
|
<ComboBox ItemsSource="{Binding Editions.AvailableEditions}"
|
||||||
Margin="0 10"
|
Margin="0 10"
|
||||||
Grid.Row="1" Grid.ColumnSpan="2"
|
Grid.Row="1" Grid.ColumnSpan="2"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:helpers="using:SPT.Launcher.Helpers"
|
xmlns:helpers="using:SPT.Launcher.Helpers"
|
||||||
xmlns:dialogHost="clr-namespace:DialogHost;assembly=DialogHost.Avalonia"
|
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="SPT.Launcher.Views.Dialogs.WarningDialogView"
|
x:Class="SPT.Launcher.Views.Dialogs.WarningDialogView"
|
||||||
Background="{StaticResource SPT_Background_Dark}"
|
Background="{StaticResource SPT_Background_Dark}"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<Grid RowDefinitions="20,*,AUTO,*,20" ColumnDefinitions="20,4*,2*,20">
|
<Grid RowDefinitions="20,*,AUTO,*,20" ColumnDefinitions="20,4*,2*,20">
|
||||||
|
|
||||||
<ScrollViewer Grid.Row="1" Grid.RowSpan="3" Grid.Column="1">
|
<ScrollViewer Grid.Row="1" Grid.RowSpan="3" Grid.Column="1">
|
||||||
<ItemsControl Items="{Binding ExistingProfiles}"
|
<ItemsControl ItemsSource="{Binding ExistingProfiles}"
|
||||||
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
||||||
>
|
>
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
xmlns:rxui="using:Avalonia.ReactiveUI"
|
xmlns:rxui="using:Avalonia.ReactiveUI"
|
||||||
xmlns:helpers="using:SPT.Launcher.Helpers"
|
xmlns:helpers="using:SPT.Launcher.Helpers"
|
||||||
xmlns:cvt="using:SPT.Launcher.Converters"
|
xmlns:cvt="using:SPT.Launcher.Converters"
|
||||||
xmlns:dialogHost="clr-namespace:DialogHost;assembly=DialogHost.Avalonia"
|
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
|
||||||
mc:Ignorable="d" d:DesignWidth="750" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="750" d:DesignHeight="450"
|
||||||
x:Class="SPT.Launcher.Views.MainWindow"
|
x:Class="SPT.Launcher.Views.MainWindow"
|
||||||
Icon="/Assets/spt-logo.ico"
|
Icon="/Assets/spt-logo.ico"
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<!-- Active Mods List -->
|
<!-- Active Mods List -->
|
||||||
<ScrollViewer Grid.Row="5" Grid.Column="1">
|
<ScrollViewer Grid.Row="5" Grid.Column="1">
|
||||||
<ItemsControl Items="{Binding ModsCollection.ActiveMods}">
|
<ItemsControl ItemsSource="{Binding ModsCollection.ActiveMods}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate DataType="{x:Type launcher:SPTMod}">
|
<DataTemplate DataType="{x:Type launcher:SPTMod}">
|
||||||
<cc:ModInfoCard ModName="{Binding Name}"
|
<cc:ModInfoCard ModName="{Binding Name}"
|
||||||
@ -86,7 +86,7 @@
|
|||||||
</Border>
|
</Border>
|
||||||
<!-- Inactive Mods List -->
|
<!-- Inactive Mods List -->
|
||||||
<ScrollViewer Grid.Row="5" Grid.Column="3" >
|
<ScrollViewer Grid.Row="5" Grid.Column="3" >
|
||||||
<ItemsControl Items="{Binding ModsCollection.InactiveMods}">
|
<ItemsControl ItemsSource="{Binding ModsCollection.InactiveMods}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate DataType="{x:Type launcher:SPTMod}">
|
<DataTemplate DataType="{x:Type launcher:SPTMod}">
|
||||||
<cc:ModInfoCard ModName="{Binding Name}"
|
<cc:ModInfoCard ModName="{Binding Name}"
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
<Label Content="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=default_language}"
|
<Label Content="{Binding Source={x:Static helpers:LocalizationProvider.Instance}, Path=default_language}"
|
||||||
/>
|
/>
|
||||||
<!-- LocaleCollection reloads the locale from file when the selected loacle changes -->
|
<!-- LocaleCollection reloads the locale from file when the selected loacle changes -->
|
||||||
<ComboBox Items="{Binding Locales.AvailableLocales}" MinWidth="200"
|
<ComboBox ItemsSource="{Binding Locales.AvailableLocales}" MinWidth="200"
|
||||||
SelectedItem="{Binding Locales.SelectedLocale, Mode=TwoWay}"
|
SelectedItem="{Binding Locales.SelectedLocale, Mode=TwoWay}"
|
||||||
/>
|
/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user