mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
70 lines
3.8 KiB
XML
70 lines
3.8 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:update="clr-namespace:Artemis.UI.Windows.Screens.Update"
|
|
xmlns:controls="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Artemis.UI.Windows.Screens.Update.UpdateDialogView"
|
|
x:DataType="update:UpdateDialogViewModel"
|
|
Title="Artemis | Update available"
|
|
Width="750"
|
|
MinWidth="750"
|
|
Height="500"
|
|
WindowStartupLocation="CenterOwner">
|
|
<Grid Margin="15" RowDefinitions="Auto,*,Auto">
|
|
|
|
<TextBlock Grid.Row="0" Classes="h4">
|
|
A new Artemis update is available! 🥳
|
|
</TextBlock>
|
|
|
|
<StackPanel Grid.Row="1" IsVisible="{CompiledBinding RetrievingChanges}" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<TextBlock>Retrieving changes...</TextBlock>
|
|
<ProgressBar IsIndeterminate="True"></ProgressBar>
|
|
</StackPanel>
|
|
|
|
<Border Grid.Row="1" Classes="card" IsVisible="{CompiledBinding !RetrievingChanges}">
|
|
<Grid RowDefinitions="Auto,*">
|
|
<StackPanel Grid.Row="0">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="You are currently running build " />
|
|
<TextBlock Text="{CompiledBinding CurrentBuild, Mode=OneWay}"></TextBlock>
|
|
<TextBlock Text=" while the latest build is " />
|
|
<TextBlock Text="{CompiledBinding LatestBuild, Mode=OneWay}"></TextBlock>
|
|
<TextBlock Text="." />
|
|
</StackPanel>
|
|
|
|
<TextBlock Text="Updating Artemis will give you the latest bug(fixes), features and improvements." />
|
|
<Separator Classes="card-separator" />
|
|
|
|
<TextBlock Classes="h5" IsVisible="{CompiledBinding HasChanges}">
|
|
Changelog (auto-generated)
|
|
</TextBlock>
|
|
</StackPanel>
|
|
|
|
<ScrollViewer Grid.Row="1" VerticalAlignment="Top" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" IsVisible="{CompiledBinding HasChanges}">
|
|
<ItemsControl Items="{CompiledBinding Changes}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid ColumnDefinitions="Auto,*">
|
|
<TextBlock Text="•" Margin="10 0" />
|
|
<TextBlock Grid.Column="1" Text="{Binding}" TextWrapping="Wrap" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
|
|
<StackPanel Grid.Row="1" IsVisible="{CompiledBinding !HasChanges}" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<TextBlock HorizontalAlignment="Center">We couldn't retrieve any changes</TextBlock>
|
|
<controls:HyperlinkButton NavigateUri="https://github.com/Artemis-RGB/Artemis/commits/master" HorizontalAlignment="Center">View online</controls:HyperlinkButton>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Spacing="5" Grid.Row="2" Margin="0 15 0 0">
|
|
<Button Classes="accent" Command="{CompiledBinding Install}">Install update</Button>
|
|
<Button Command="{CompiledBinding AskLater}">Ask later</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window> |