Rename tile properties
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TileViewModel.cs
@@ -8,23 +8,23 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
{
[AutoNotify] private ObservableCollection<TilePresetViewModel>? _tilePresets;
[AutoNotify] private int _tilePresetIndex;
- [AutoNotify] private int _smallLayoutIndex;
- [AutoNotify] private int _normalLayoutIndex;
- [AutoNotify] private int _wideLayoutIndex;
- [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isSmallLayout;
- [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isNormalLayout;
- [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isWideLayout;
+ [AutoNotify] private int _smallPresetIndex;
+ [AutoNotify] private int _normalPresetIndex;
+ [AutoNotify] private int _widePresetIndex;
+ [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isSmallPreset;
+ [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isNormalPreset;
+ [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isWidePreset;
protected TileViewModel()
{
- _smallLayoutIndex = 0;
- _normalLayoutIndex = 1;
- _wideLayoutIndex = 2;
+ _smallPresetIndex = 0;
+ _normalPresetIndex = 1;
+ _widePresetIndex = 2;
this.WhenAnyValue(x => x.TilePresetIndex)
.Subscribe(x =>
{
- SetLayoutFlag(x);
+ SetPresetSetFlag(x);
NotifyPresetChanged();
});
}
@@ -51,11 +51,11 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
this.RaisePropertyChanged(nameof(IsVisible));
}
- private void SetLayoutFlag(int layoutIndex)
+ private void SetPresetSetFlag(int presetIndex)
{
- IsSmallLayout = layoutIndex == _smallLayoutIndex;
- IsNormalLayout = layoutIndex == _normalLayoutIndex;
- IsWideLayout = layoutIndex == _wideLayoutIndex;
+ IsSmallPreset = presetIndex == _smallPresetIndex;
+ IsNormalPreset = presetIndex == _normalPresetIndex;
+ IsWidePreset = presetIndex == _widePresetIndex;
}
}
}
\ No newline at end of file

Rename tile properties