| 
					
				 | 
			
			
				@@ -2,6 +2,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Runtime.InteropServices;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Windows;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Windows.Interop;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using MahApps.Metro.Controls;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using MediaBrowser.Common.Logging;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using MediaBrowser.Model.Progress;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -10,7 +11,7 @@ namespace MediaBrowser.Common.UI 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /// <summary>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /// Interaction logic for Splash.xaml
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /// </summary>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public partial class Splash : Window
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public partial class Splash : MetroWindow
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private const int GWL_STYLE = -16;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private const int WS_SYSMENU = 0x80000;
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -19,12 +20,12 @@ namespace MediaBrowser.Common.UI 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         [DllImport("user32.dll")]
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public Splash(Progress<TaskProgress> progress)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             InitializeComponent();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             progress.ProgressChanged += progress_ProgressChanged;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Loaded+=Splash_Loaded;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         void progress_ProgressChanged(object sender, TaskProgress e)
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -43,6 +44,9 @@ namespace MediaBrowser.Common.UI 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var hwnd = new WindowInteropHelper(this).Handle;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) & ~WS_SYSMENU);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // Setting this in markup throws an exception at runtime
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ShowTitleBar = false;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }
 
			 |