(bool isMainWindow = false)
| 1281 | } |
| 1282 | |
| 1283 | internal static bool UseCustomWindowDecorations(bool isMainWindow = false) |
| 1284 | { |
| 1285 | #if PLATFORM_SDL |
| 1286 | return Editor.Instance.Options.Options.Interface.WindowDecorations switch |
| 1287 | { |
| 1288 | Options.InterfaceOptions.WindowDecorationsType.Auto => !SDLPlatform.SupportsNativeDecorations, |
| 1289 | Options.InterfaceOptions.WindowDecorationsType.AutoChildOnly => !isMainWindow ? !SDLPlatform.SupportsNativeDecorations : true, |
| 1290 | Options.InterfaceOptions.WindowDecorationsType.Native => false, |
| 1291 | Options.InterfaceOptions.WindowDecorationsType.ClientSide => true, |
| 1292 | _ => throw new ArgumentOutOfRangeException() |
| 1293 | }; |
| 1294 | #elif PLATFORM_WINDOWS |
| 1295 | return !Editor.Instance.Options.Options.Interface.UseNativeWindowSystem; |
| 1296 | #else |
| 1297 | return false; |
| 1298 | #endif |
| 1299 | } |
| 1300 | |
| 1301 | internal static bool HideSingleTabWindowTabBars() |
| 1302 | { |
no outgoing calls
no test coverage detected