From b9cf223d86ae64bc6f4421d242eca1d64af2073d Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Fri, 19 May 2023 10:08:24 -0400 Subject: [PATCH] Visual fixes and improvements One weird bug --- .../Input/KeyboardInputViewModel.cs | 4 +++ .../UI/Views/Input/ControllerInputView.axaml | 22 +++++++-------- .../UI/Views/Input/KeyboardInputView.axaml | 28 +++++++++---------- 3 files changed, 28 insertions(+), 26 deletions(-) diff --git a/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs b/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs index 6e886d0b8..b9f4c8602 100644 --- a/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs +++ b/src/Ryujinx.Ava/UI/ViewModels/Input/KeyboardInputViewModel.cs @@ -24,6 +24,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input { _isLeft = value; OnPropertyChanged(); + OnPropertyChanged(nameof(HasSides)); } } @@ -35,9 +36,12 @@ namespace Ryujinx.Ava.UI.ViewModels.Input { _isRight = value; OnPropertyChanged(); + OnPropertyChanged(nameof(HasSides)); } } + public bool HasSides => IsLeft ^ IsRight; + private SvgImage _image; public SvgImage Image { diff --git a/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml b/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml index e7c1d54ca..6cf873071 100644 --- a/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml +++ b/src/Ryujinx.Ava/UI/Views/Input/ControllerInputView.axaml @@ -316,6 +316,13 @@ Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> + + - - + + + MinHeight="90" + IsVisible="{Binding HasSides}"> - - -