mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Workshop - UI tweaks
This commit is contained in:
parent
9c6d7329a6
commit
742496b13d
@ -64,7 +64,7 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<!-- Info -->
|
<!-- Info -->
|
||||||
<StackPanel Grid.Column="2">
|
<StackPanel Grid.Column="2" Margin="0 0 4 0">
|
||||||
<TextBlock TextAlignment="Right" Text="{CompiledBinding Entry.CreatedAt, FallbackValue=01-01-1337, Converter={StaticResource DateTimeConverter}}" />
|
<TextBlock TextAlignment="Right" Text="{CompiledBinding Entry.CreatedAt, FallbackValue=01-01-1337, Converter={StaticResource DateTimeConverter}}" />
|
||||||
<TextBlock TextAlignment="Right">
|
<TextBlock TextAlignment="Right">
|
||||||
<avalonia:MaterialIcon Kind="Downloads" />
|
<avalonia:MaterialIcon Kind="Downloads" />
|
||||||
|
|||||||
@ -85,8 +85,7 @@
|
|||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Theme="{StaticResource SubtitleTextBlockStyle}">Latest release</TextBlock>
|
<TextBlock Theme="{StaticResource SubtitleTextBlockStyle}">Latest release</TextBlock>
|
||||||
<Border Classes="card-separator" />
|
<Border Classes="card-separator" />
|
||||||
<Button CornerRadius="8"
|
<Button HorizontalAlignment="Stretch"
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
HorizontalContentAlignment="Stretch"
|
HorizontalContentAlignment="Stretch"
|
||||||
Command="{CompiledBinding DownloadLatestRelease}">
|
Command="{CompiledBinding DownloadLatestRelease}">
|
||||||
<Grid ColumnDefinitions="Auto,*">
|
<Grid ColumnDefinitions="Auto,*">
|
||||||
|
|||||||
@ -54,8 +54,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Border IsVisible="{CompiledBinding IconBitmap, Converter={x:Static ObjectConverters.IsNotNull}}"
|
<Border IsVisible="{CompiledBinding IconBitmap, Converter={x:Static ObjectConverters.IsNotNull}}"
|
||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
CornerRadius="12"
|
CornerRadius="6"
|
||||||
Background="{StaticResource ControlStrokeColorOnAccentDefault}"
|
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Width="95"
|
Width="95"
|
||||||
Height="95">
|
Height="95">
|
||||||
|
|||||||
@ -55,13 +55,12 @@ public class WorkshopService : IWorkshopService
|
|||||||
return new IWorkshopService.WorkshopStatus(false, e.Message);
|
return new IWorkshopService.WorkshopStatus(false, e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <param name="cancellationToken"></param>
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public async Task<bool> ValidateWorkshopStatus(CancellationToken cancellationToken)
|
public async Task<bool> ValidateWorkshopStatus(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
IWorkshopService.WorkshopStatus status = await GetWorkshopStatus(cancellationToken);
|
IWorkshopService.WorkshopStatus status = await GetWorkshopStatus(cancellationToken);
|
||||||
if (!status.IsReachable)
|
if (!status.IsReachable && !cancellationToken.IsCancellationRequested)
|
||||||
await _router.Navigate($"workshop/offline/{status.Message}");
|
await _router.Navigate($"workshop/offline/{status.Message}");
|
||||||
return status.IsReachable;
|
return status.IsReachable;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user