Convert queue expand/collapse button text to images (rmcrackan/Libation#339)

This commit is contained in:
Mbucari 2023-03-02 19:23:03 -07:00
parent d94759d868
commit 26c60e8e79
5 changed files with 9 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

View File

@ -31,6 +31,8 @@
<ItemGroup> <ItemGroup>
<AvaloniaResource Include="Assets\**" /> <AvaloniaResource Include="Assets\**" />
<None Remove=".gitignore" /> <None Remove=".gitignore" />
<None Remove="Assets\Arrows_left.png" />
<None Remove="Assets\Arrows_right.png" />
<None Remove="Assets\Asterisk.png" /> <None Remove="Assets\Asterisk.png" />
<None Remove="Assets\cancel.png" /> <None Remove="Assets\cancel.png" />
<None Remove="Assets\completed.png" /> <None Remove="Assets\completed.png" />

View File

@ -1,4 +1,5 @@
using ApplicationServices; using ApplicationServices;
using Avalonia.Media.Imaging;
using Dinah.Core; using Dinah.Core;
using LibationFileManager; using LibationFileManager;
using ReactiveUI; using ReactiveUI;
@ -135,15 +136,9 @@ namespace LibationAvalonia.ViewModels
set set
{ {
this.RaiseAndSetIfChanged(ref _queueOpen, value); this.RaiseAndSetIfChanged(ref _queueOpen, value);
QueueHideButtonText = _queueOpen? "❱❱❱" : "❰❰❰";
this.RaisePropertyChanged(nameof(QueueHideButtonText));
} }
} }
/// <summary> The Process Queue's Expand/Collapse button display text </summary>
public string QueueHideButtonText { get; private set; }
/// <summary> The number of books visible in the Product Display </summary> /// <summary> The number of books visible in the Product Display </summary>
public int VisibleCount public int VisibleCount

View File

@ -173,7 +173,12 @@
<StackPanel Grid.Column="2" Height="30" Orientation="Horizontal"> <StackPanel Grid.Column="2" Height="30" Orientation="Horizontal">
<Button Click="filterBtn_Click" Height="30" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="Filter"/> <Button Click="filterBtn_Click" Height="30" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Content="Filter"/>
<Button Padding="5,0,5,0" Click="ToggleQueueHideBtn_Click" Content="{Binding QueueHideButtonText}"/> <Button Padding="5,0,5,0" Click="ToggleQueueHideBtn_Click">
<Panel>
<Image Stretch="None" IsVisible="{Binding !QueueOpen}" Source="/Assets/Arrows_left.png" />
<Image Stretch="None" IsVisible="{Binding QueueOpen}" Source="/Assets/Arrows_right.png" />
</Panel>
</Button>
</StackPanel> </StackPanel>
</Grid> </Grid>