mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Workshop - Plugin/layout management visual tweaks
Workshop - Avoid acidentally pre-selecting a release
This commit is contained in:
parent
c37c031dc2
commit
a9d4bd2385
@ -27,7 +27,7 @@ public partial class EntryReleasesViewModel : ActivatableViewModelBase
|
|||||||
this.WhenActivated(d =>
|
this.WhenActivated(d =>
|
||||||
{
|
{
|
||||||
router.CurrentPath.Subscribe(p =>
|
router.CurrentPath.Subscribe(p =>
|
||||||
SelectedRelease = p != null && p.StartsWith(Entry.GetEntryPath()) && float.TryParse(p.Split('/').Last(), out float releaseId)
|
SelectedRelease = p != null && p.StartsWith($"{Entry.GetEntryPath()}/releases") && float.TryParse(p.Split('/').Last(), out float releaseId)
|
||||||
? Releases.FirstOrDefault(r => r.Release.Id == releaseId)
|
? Releases.FirstOrDefault(r => r.Release.Id == releaseId)
|
||||||
: null)
|
: null)
|
||||||
.DisposeWith(d);
|
.DisposeWith(d);
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
<Button Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Classes="icon-button" Command="{CompiledBinding Close}">
|
<Button Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Classes="icon-button" Command="{CompiledBinding Close}">
|
||||||
<avalonia:MaterialIcon Kind="ArrowBack" />
|
<avalonia:MaterialIcon Kind="ArrowBack" />
|
||||||
</Button>
|
</Button>
|
||||||
<TextBlock Grid.Row="0" Grid.Column="1" Classes="h4 no-margin">Manage layout</TextBlock>
|
<TextBlock Grid.Row="0" Grid.Column="1" Theme="{StaticResource SubtitleTextBlockStyle}">Manage layout</TextBlock>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Border Classes="card-separator" />
|
<Border Classes="card-separator" />
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<Button Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Classes="icon-button" Command="{CompiledBinding Close}">
|
<Button Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Classes="icon-button" Command="{CompiledBinding Close}">
|
||||||
<avalonia:MaterialIcon Kind="ArrowBack" />
|
<avalonia:MaterialIcon Kind="ArrowBack" />
|
||||||
</Button>
|
</Button>
|
||||||
<TextBlock Grid.Row="0" Grid.Column="1" Classes="h4 no-margin">Manage plugin</TextBlock>
|
<TextBlock Grid.Row="0" Grid.Column="1" Theme="{StaticResource SubtitleTextBlockStyle}">Manage plugin</TextBlock>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Border Classes="card-separator" />
|
<Border Classes="card-separator" />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user