Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.9 KiB

<controls:UserControlBase 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:vm="clr-namespace:StabilityMatrix.Avalonia.ViewModels"
xmlns:ui="using:FluentAvalonia.UI.Controls"
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData"
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls"
Background="Transparent"
d:DataContext="{x:Static mocks:DesignData.RefreshBadgeViewModel}"
x:DataType="vm:RefreshBadgeViewModel"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="StabilityMatrix.Avalonia.Controls.RefreshBadge">
<Grid Background="Transparent">
<Button
BorderThickness="0"
Command="{Binding RefreshCommand}"
FontSize="26"
Foreground="{Binding ColorBrush}"
Margin="4"
Padding="2"
Background="Transparent"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEnabled="{Binding !IsWorking}">
<ui:SymbolIcon Symbol="{Binding Icon}"/>
</Button>
<controls:ProgressRing
FontSize="14"
Grid.Row="0"
Height="20"
BorderThickness="2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEnabled="{Binding IsWorking}"
IsIndeterminate="True"
IsVisible="{Binding IsWorking}"
Width="20"
ToolTip.Tip="{Binding CurrentToolTip}" />
</Grid>
</controls:UserControlBase>