public override void WindowDidLoad() { base.WindowDidLoad(); menuManager = new FigmaVersionMenu(); menuManager.VersionSelected += (s, e) => { VersionSelected?.Invoke(this, e); }; versionsMainMenu = NSApplication.SharedApplication.MainMenu.ItemWithTitle("Versions"); CGRect frame = Window.Frame; ShouldCascadeWindows = true; frame.Width = NSScreen.MainScreen.Frame.Width * 0.8f; frame.Height = NSScreen.MainScreen.Frame.Height * 0.8f; Window.SetFrame(frame, display: true); if (firstWindow) { Window.Center(); } if (UsesDarkMode) { DarkModeButton.State = NSCellStateValue.On; } firstWindow = false; }