Add option to show the title bar #101

Merged
LukeWarnut merged 7 commits from window-title into master 2024-10-30 07:22:22 +00:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 434296966e - Show all commits

View File

@ -1552,7 +1552,7 @@ namespace Ryujinx.UI.Common.Configuration
{
Ryujinx.Common.Logging.Logger.Warning?.Print(LogClass.Application, $"Outdated configuration version {configurationFileFormat.Version}, migrating to version 56.");
configurationFileFormat.ShowTitleBar = (OperatingSystem.IsWindows()) ? false : true;
configurationFileFormat.ShowTitleBar = !OperatingSystem.IsWindows();
configurationFileUpdated = true;
}

View File

@ -17,7 +17,7 @@ namespace Ryujinx.Ava.UI.Views.Settings
public SettingsUiView()
{
InitializeComponent();
ShowTitleBarBox.IsVisible = (OperatingSystem.IsWindows()) ? true : false;
ShowTitleBarBox.IsVisible = OperatingSystem.IsWindows();
}
private async void AddGameDirButton_OnClick(object sender, RoutedEventArgs e)

View File

@ -82,7 +82,7 @@ namespace Ryujinx.Ava.UI.Windows
ViewModel.Title = App.FormatTitle();
TitleBar.ExtendsContentIntoTitleBar = (ConfigurationState.Instance.ShowTitleBar) ? false : true;
TitleBar.ExtendsContentIntoTitleBar = !ConfigurationState.Instance.ShowTitleBar;
TitleBar.TitleBarHitTestType = TitleBarHitTestType.Complex;
// NOTE: Height of MenuBar and StatusBar is not usable here, since it would still be 0 at this point.