@@ -2,4 +2,5 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// [Deprecated in v1.12]
|
||||
#include "Engine/Platform/ScreenUtilities.h"
|
||||
|
||||
@@ -1586,6 +1586,7 @@ namespace FlaxEditor.Utilities
|
||||
|
||||
internal static bool UseCustomWindowDecorations(bool isMainWindow = false)
|
||||
{
|
||||
#if PLATFORM_SDL
|
||||
return Editor.Instance.Options.Options.Interface.WindowDecorations switch
|
||||
{
|
||||
Options.InterfaceOptions.WindowDecorationsType.Auto => !Platform.SupportsNativeDecorations,
|
||||
@@ -1594,6 +1595,11 @@ namespace FlaxEditor.Utilities
|
||||
Options.InterfaceOptions.WindowDecorationsType.ClientSide => true,
|
||||
_ => throw new ArgumentOutOfRangeException()
|
||||
};
|
||||
#elif PLATFORM_WINDOWS
|
||||
return !Editor.Instance.Options.Options.Interface.UseNativeWindowSystem;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static bool HideSingleTabWindowTabBars()
|
||||
|
||||
Reference in New Issue
Block a user