rename mini to compact.
MODIFY
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
@@ -29,7 +29,7 @@ namespace WalletWasabi.Fluent
HomeScreen = 1,
DialogScreen = 2,
FullScreen = 3,
- MiniDialogScreen = 4,
+ CompactDialogScreen = 4,
}
public sealed class NavigationMetaData

MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -28,7 +28,7 @@ namespace WalletWasabi.Fluent.ViewModels
[AutoNotify] private bool _isFullScreenEnabled;
[AutoNotify] private DialogScreenViewModel _dialogScreen;
[AutoNotify] private DialogScreenViewModel _fullScreen;
- [AutoNotify] private DialogScreenViewModel _miniDialogScreen;
+ [AutoNotify] private DialogScreenViewModel _compactDialogScreen;
[AutoNotify] private NavBarViewModel _navBar;
[AutoNotify] private StatusBarViewModel _statusBar;
[AutoNotify] private string _title = "Wasabi Wallet";
@@ -47,11 +47,11 @@ namespace WalletWasabi.Fluent.ViewModels
_fullScreen = new DialogScreenViewModel(double.PositiveInfinity, double.PositiveInfinity, NavigationTarget.FullScreen);
- _miniDialogScreen = new DialogScreenViewModel(480, 270, NavigationTarget.MiniDialogScreen);
+ _compactDialogScreen = new DialogScreenViewModel(480, 270, NavigationTarget.CompactDialogScreen);
MainScreen = new TargettedNavigationStack(NavigationTarget.HomeScreen);
- NavigationState.Register(MainScreen, DialogScreen, FullScreen, MiniDialogScreen);
+ NavigationState.Register(MainScreen, DialogScreen, FullScreen, CompactDialogScreen);
Network = global.Network;

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/NavigationState.cs
WalletWasabi.Fluent/ViewModels/Navigation/NavigationState.cs
@@ -6,12 +6,12 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
INavigationStack<RoutableViewModel> homeScreenNavigation,
INavigationStack<RoutableViewModel> dialogScreenNavigation,
INavigationStack<RoutableViewModel> fullScreenNavigation,
- INavigationStack<RoutableViewModel> miniDialogScreenNavigation)
+ INavigationStack<RoutableViewModel> compactDialogScreenNavigation)
{
HomeScreenNavigation = homeScreenNavigation;
DialogScreenNavigation = dialogScreenNavigation;
FullScreenNavigation = fullScreenNavigation;
- MiniDialogScreenNavigation = miniDialogScreenNavigation;
+ CompactDialogScreenNavigation = compactDialogScreenNavigation;
}
public static NavigationState Instance { get; private set; } = null!;
@@ -22,19 +22,19 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
public INavigationStack<RoutableViewModel> FullScreenNavigation { get; }
- public INavigationStack<RoutableViewModel> MiniDialogScreenNavigation { get; }
+ public INavigationStack<RoutableViewModel> CompactDialogScreenNavigation { get; }
public static void Register(
INavigationStack<RoutableViewModel> homeScreenNavigation,
INavigationStack<RoutableViewModel> dialogScreenNavigation,
INavigationStack<RoutableViewModel> fullScreenNavigation,
- INavigationStack<RoutableViewModel> miniDialogScreenNavigation)
+ INavigationStack<RoutableViewModel> compactDialogScreenNavigation)
{
Instance = new NavigationState(
homeScreenNavigation,
dialogScreenNavigation,
fullScreenNavigation,
- miniDialogScreenNavigation);
+ compactDialogScreenNavigation);
}
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
@@ -75,7 +75,7 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
NavigationTarget.HomeScreen => NavigationState.Instance.HomeScreenNavigation,
NavigationTarget.DialogScreen => NavigationState.Instance.DialogScreenNavigation,
NavigationTarget.FullScreen => NavigationState.Instance.FullScreenNavigation,
- NavigationTarget.MiniDialogScreen => NavigationState.Instance.MiniDialogScreenNavigation,
+ NavigationTarget.CompactDialogScreen => NavigationState.Instance.CompactDialogScreenNavigation,
_ => throw new NotSupportedException(),
};
}

MODIFY
WalletWasabi.Fluent/Views/MainView.axaml
WalletWasabi.Fluent/Views/MainView.axaml
<ContentControl Content="{Binding CurrentPage}" />
</c:Dialog>
<c:Dialog x:CompileBindings="False"
- DataContext="{Binding MiniDialogScreen}"
+ DataContext="{Binding CompacyDialogScreen}"
IsDialogOpen="{Binding IsDialogOpen, Mode=TwoWay}"
EnableCancelOnPressed="False"
EnableCancelOnEscape="True"

rename mini to compact.