Convert queue expand/collapse button text to images (rmcrackan/Libation#339)
This commit is contained in:
parent
d94759d868
commit
26c60e8e79
BIN
Source/LibationAvalonia/Assets/Arrows_left.png
Normal file
BIN
Source/LibationAvalonia/Assets/Arrows_left.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 515 B |
BIN
Source/LibationAvalonia/Assets/Arrows_right.png
Normal file
BIN
Source/LibationAvalonia/Assets/Arrows_right.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 510 B |
@ -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" />
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user