mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 19:46:24 +02:00
misc: chore: add helper constructor parameter to StyleableWindow to auto use custom title bar based on configuration
This commit is contained in:
parent
bed3835718
commit
dd02c8e25d
3 changed files with 10 additions and 8 deletions
|
@ -21,12 +21,10 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
SearchBoxNormal = { Text = titleId ?? string.Empty }
|
||||
});
|
||||
|
||||
public CompatibilityListWindow()
|
||||
public CompatibilityListWindow() : base(useCustomTitleBar: true)
|
||||
{
|
||||
Title = RyujinxApp.FormatTitle(LocaleKeys.CompatibilityListTitle);
|
||||
|
||||
TitleBar.ExtendsContentIntoTitleBar = !ConfigurationState.Instance.ShowTitleBar;
|
||||
TitleBar.TitleBarHitTestType = ConfigurationState.Instance.ShowTitleBar ? TitleBarHitTestType.Simple : TitleBarHitTestType.Complex;
|
||||
TitleBar.Height = 37;
|
||||
|
||||
InitializeComponent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue