mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-09-12 21:57:19 -04:00
Replace the hand-composed vector layers with the shared rendering bound through EntryStatus.ButtonImage, and delete the geometry and stoplight brushes that only that composition used. The rendering is per-theme rather than a set of DynamicResource brushes, so each button re-renders its icon when the actual theme variant changes. Co-authored-by: rmcrackan <rmcrackan@gmail.com>
11 lines
344 B
C#
11 lines
344 B
C#
using Avalonia.Media;
|
|
using ReactiveUI;
|
|
|
|
namespace LibationAvalonia.ViewModels;
|
|
|
|
public class LiberateStatusButtonViewModel : ViewModelBase
|
|
{
|
|
public bool IsButtonEnabled { get => field; set => this.RaiseAndSetIfChanged(ref field, value); }
|
|
public IImage? ButtonImage { get => field; set => this.RaiseAndSetIfChanged(ref field, value); }
|
|
}
|