From 880a8ae748f149a834e4f1ca7a8506a5eb5c4c11 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Tue, 21 Jan 2025 17:50:55 -0600 Subject: [PATCH] misc: chore: Remove duplicated styling blocks in MainMenuBarView in favor of a reusable Avalonia Style. --- .../Assets/Styles/CheckboxMenuItemStyle.axaml | 13 +++ src/Ryujinx/Ryujinx.csproj | 4 +- src/Ryujinx/RyujinxApp.axaml | 1 + .../UI/Views/Main/MainMenuBarView.axaml | 96 +++---------------- 4 files changed, 30 insertions(+), 84 deletions(-) create mode 100644 src/Ryujinx/Assets/Styles/CheckboxMenuItemStyle.axaml diff --git a/src/Ryujinx/Assets/Styles/CheckboxMenuItemStyle.axaml b/src/Ryujinx/Assets/Styles/CheckboxMenuItemStyle.axaml new file mode 100644 index 000000000..13176c84f --- /dev/null +++ b/src/Ryujinx/Assets/Styles/CheckboxMenuItemStyle.axaml @@ -0,0 +1,13 @@ + + + + + diff --git a/src/Ryujinx/Ryujinx.csproj b/src/Ryujinx/Ryujinx.csproj index 7d342812f..c6a4840d2 100644 --- a/src/Ryujinx/Ryujinx.csproj +++ b/src/Ryujinx/Ryujinx.csproj @@ -123,12 +123,13 @@ MSBuild:Compile + - + @@ -150,6 +151,7 @@ + diff --git a/src/Ryujinx/RyujinxApp.axaml b/src/Ryujinx/RyujinxApp.axaml index aca69645a..636535ea4 100644 --- a/src/Ryujinx/RyujinxApp.axaml +++ b/src/Ryujinx/RyujinxApp.axaml @@ -16,5 +16,6 @@ + diff --git a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml index aa37f3720..3252aa5cf 100644 --- a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml +++ b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml @@ -81,25 +81,16 @@ - - - - + Header="{ext:Locale MenuBarOptionsStartGamesInFullscreen}" + Classes="withCheckbox"> - - - - + Header="{ext:Locale MenuBarOptionsStartGamesWithoutUI}" + Classes="withCheckbox"> - - - - + Header="{ext:Locale MenuBarOptionsShowConsole}" + Classes="withCheckbox"> - - - - - - - - + Icon="{ext:Icon fa-solid fa-language}" + Classes="withCheckbox"> - - - - + ToolTip.Tip="{ext:Locale OpenSettingsTooltip}" + Classes="withCheckbox"> - - - - + ToolTip.Tip="{ext:Locale OpenProfileManagerTooltip}" + Classes="withCheckbox">