mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-29 17:19:50 -06:00
UI: Remove title bar, put icon next to File button. Added icons to most dropdown menu actions. Title bar content is now displayed when hovering the logo in the title bar.
This commit is contained in:
@ -22,9 +22,9 @@ namespace Ryujinx.Ava.UI.Views.Main
|
||||
{
|
||||
base.OnAttachedToVisualTree(e);
|
||||
|
||||
if (VisualRoot is MainWindow window)
|
||||
if (VisualRoot is MainWindow)
|
||||
{
|
||||
ViewModel = window.ViewModel;
|
||||
ViewModel = MainWindow.ViewModel;
|
||||
}
|
||||
|
||||
DataContext = ViewModel;
|
||||
@ -32,18 +32,14 @@ namespace Ryujinx.Ava.UI.Views.Main
|
||||
|
||||
public void Sort_Checked(object sender, RoutedEventArgs args)
|
||||
{
|
||||
if (sender is RadioButton button)
|
||||
{
|
||||
ViewModel.Sort(Enum.Parse<ApplicationSort>(button.Tag.ToString()));
|
||||
}
|
||||
if (sender is RadioButton { Tag: string sortStrategy })
|
||||
ViewModel.Sort(Enum.Parse<ApplicationSort>(sortStrategy));
|
||||
}
|
||||
|
||||
public void Order_Checked(object sender, RoutedEventArgs args)
|
||||
{
|
||||
if (sender is RadioButton button)
|
||||
{
|
||||
ViewModel.Sort(button.Tag.ToString() != "Descending");
|
||||
}
|
||||
if (sender is RadioButton { Tag: string sortOrder })
|
||||
ViewModel.Sort(sortOrder is not "Descending");
|
||||
}
|
||||
|
||||
private void SearchBox_OnKeyUp(object sender, KeyEventArgs e)
|
||||
|
Reference in New Issue
Block a user