From e4b0eb5779d56b3d494bf5792f0058853b3b1df3 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 2 Sep 2012 16:24:10 -0400 Subject: Added taskbar icon and standardized locations of images --- MediaBrowser.Common/UI/BaseApplication.cs | 13 ------------- MediaBrowser.Common/UI/Splash.xaml | 9 +++++---- MediaBrowser.Common/UI/Splash.xaml.cs | 2 -- 3 files changed, 5 insertions(+), 19 deletions(-) (limited to 'MediaBrowser.Common/UI') diff --git a/MediaBrowser.Common/UI/BaseApplication.cs b/MediaBrowser.Common/UI/BaseApplication.cs index 2112be6792..a45faca503 100644 --- a/MediaBrowser.Common/UI/BaseApplication.cs +++ b/MediaBrowser.Common/UI/BaseApplication.cs @@ -68,18 +68,5 @@ namespace MediaBrowser.Common.UI Kernel.Dispose(); } - - public BitmapImage GetLogoImage() - { - BitmapImage bitmap = new BitmapImage(); - - bitmap.CacheOption = BitmapCacheOption.Default; - - bitmap.BeginInit(); - bitmap.StreamSource = Assembly.GetExecutingAssembly().GetManifestResourceStream("MediaBrowser.Common.Resources.mblogo.png"); - bitmap.EndInit(); - - return bitmap; - } } } diff --git a/MediaBrowser.Common/UI/Splash.xaml b/MediaBrowser.Common/UI/Splash.xaml index 56c2957311..4d5c2717cc 100644 --- a/MediaBrowser.Common/UI/Splash.xaml +++ b/MediaBrowser.Common/UI/Splash.xaml @@ -11,13 +11,14 @@ WindowState="Normal" FontSize="14"> - - - + + + + - + diff --git a/MediaBrowser.Common/UI/Splash.xaml.cs b/MediaBrowser.Common/UI/Splash.xaml.cs index edfacf0167..f66f9ec8fc 100644 --- a/MediaBrowser.Common/UI/Splash.xaml.cs +++ b/MediaBrowser.Common/UI/Splash.xaml.cs @@ -35,8 +35,6 @@ namespace MediaBrowser.Common.UI { // Setting this in markup throws an exception at runtime ShowTitleBar = false; - - imgLogo.Source = (Application.Current as BaseApplication).GetLogoImage(); } } } -- cgit v1.2.3