mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-12 07:36:59 +00:00
UI: Give the cheat manager the custom window title bar treatment
This commit is contained in:
parent
7bdf013ba6
commit
c76f32a4ee
4 changed files with 86 additions and 37 deletions
|
|
@ -22,7 +22,7 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
await appWindow.ShowDialog(owner ?? RyujinxApp.MainWindow);
|
||||
}
|
||||
|
||||
protected StyleableAppWindow(bool useCustomTitleBar = false)
|
||||
protected StyleableAppWindow(bool useCustomTitleBar = false, double? titleBarHeight = null)
|
||||
{
|
||||
WindowStartupLocation = WindowStartupLocation.CenterOwner;
|
||||
TransparencyLevelHint = [WindowTransparencyLevel.None];
|
||||
|
|
@ -34,6 +34,9 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
{
|
||||
TitleBar.ExtendsContentIntoTitleBar = !ConfigurationState.Instance.ShowTitleBar;
|
||||
TitleBar.TitleBarHitTestType = ConfigurationState.Instance.ShowTitleBar ? TitleBarHitTestType.Simple : TitleBarHitTestType.Complex;
|
||||
|
||||
if (TitleBar.ExtendsContentIntoTitleBar && titleBarHeight != null)
|
||||
TitleBar.Height = titleBarHeight.Value;
|
||||
}
|
||||
|
||||
Icon = MainWindowViewModel.IconBitmap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue