diff options
| author | MutantAura <44103205+MutantAura@users.noreply.github.com> | 2022-09-19 20:04:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-19 16:04:22 -0300 |
| commit | 41790aa7434a5e6d132fad2e24844d450378205b (patch) | |
| tree | 7d8dfbdf37b63a939038dad5db2153477da83d26 /Ryujinx.Ava/Ui/ViewModels/MainWindowViewModel.cs | |
| parent | 0cb1e926b594432134f5d35d02da622cd3fd3458 (diff) | |
Avalonia - Misc changes to UX (#3643)
* Change navbar from compact to default and force text overflow globally
* Fix settings window
* Fix right stick control alignment
* Initialize value and add logging for SDL IDs
* Fix alignment of setting text and improve borders
* Clean up padding and size of buttons on controller settings
* Fix right side trigger alignment and correct styling
* Revert axaml alignment
* Fix alignment of volume widget
* Fix timezone autocompletebox dropdown height
* MainWindow: Line up volume status bar item
* Remove margins and add padding to volume widget
* Make volume text localizable.
Co-authored-by: merry <git@mary.rs>
Diffstat (limited to 'Ryujinx.Ava/Ui/ViewModels/MainWindowViewModel.cs')
| -rw-r--r-- | Ryujinx.Ava/Ui/ViewModels/MainWindowViewModel.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Ryujinx.Ava/Ui/ViewModels/MainWindowViewModel.cs b/Ryujinx.Ava/Ui/ViewModels/MainWindowViewModel.cs index 98516159..3672f963 100644 --- a/Ryujinx.Ava/Ui/ViewModels/MainWindowViewModel.cs +++ b/Ryujinx.Ava/Ui/ViewModels/MainWindowViewModel.cs @@ -50,6 +50,7 @@ namespace Ryujinx.Ava.Ui.ViewModels private string _dockedStatusText; private string _fifoStatusText; private string _gameStatusText; + private string _volumeStatusText; private string _gpuStatusText; private bool _isAmiiboRequested; private bool _isGameRunning; @@ -385,11 +386,12 @@ namespace Ryujinx.Ava.Ui.ViewModels public string VolumeStatusText { - get + get => _volumeStatusText; + set { - string icon = Volume == 0 ? "🔇" : "🔊"; + _volumeStatusText = value; - return $"{icon} {(int)(Volume * 100)}%"; + OnPropertyChanged(); } } |
