public void Init() { Window.Resize += Resize; Window.FocusedChanged += FocusedChanged; Window.WindowStateChanged += Resize; logoFont = new Font( "Times New Roman", 28, FontStyle.Bold ); logoItalicFont = new Font( "Times New Roman", 28, FontStyle.Italic ); if( Configuration.RunningOnWindows ) platformDrawer = new WinPlatformDrawer(); else if( Configuration.RunningOnX11 ) platformDrawer = new X11PlatformDrawer(); else platformDrawer = new WinPlatformDrawer(); // TODO: mac osx support }
public void Init() { Window.Resize += Resize; Window.FocusedChanged += FocusedChanged; Window.WindowStateChanged += Resize; logoFont = new Font("Arial", 30, FontStyle.Regular); string path = Assembly.GetExecutingAssembly().Location; Window.Icon = Icon.ExtractAssociatedIcon(path); if (Configuration.RunningOnWindows) { platformDrawer = new WinPlatformDrawer(); } else if (Configuration.RunningOnX11) { platformDrawer = new X11PlatformDrawer(); } else if (Configuration.RunningOnMacOS) { platformDrawer = new OSXPlatformDrawer(); } }