Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Fixed not loading app icon for splash screen and chats page
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Apr 22, 2019
1 parent 7fffdad commit 1a1e02f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion UWPX_UI/Pages/ChatPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
Padding="10">
<Image Width="120"
Height="120"
Source="ms-appx:///Assets/Square150x150Logo.scale-400.png"/>
Source="ms-appx:///Assets/Square150x150Logo.png"/>
<TextBlock FontWeight="SemiBold"
Style="{StaticResource TitleTextBlockStyle}"
Text="Select a chat to view."/>
Expand Down
2 changes: 1 addition & 1 deletion UWPX_UI/Pages/ExtendedSplashScreenPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Stretch="UniformToFill"/>
<Canvas Grid.Row="0">
<Image x:Name="logo_img"
Source="ms-appx:///Assets/SplashScreen.scale-100.png"/>
Source="ms-appx:///Assets/SplashScreen.png"/>
</Canvas>
</Grid>
</Page>
11 changes: 3 additions & 8 deletions UWPX_UI/Pages/ExtendedSplashScreenPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public sealed partial class ExtendedSplashScreenPage: Page
#region --Constructors--
public ExtendedSplashScreenPage(IActivatedEventArgs args, Frame rootFrame, EventHandler<PushNotificationReceivedEventArgs> appCenterPushCallback)
{
this.ACTIVATION_ARGS = args;
this.ROOT_FRAME = rootFrame;
this.APP_CENTER_PUSH_CALLBACK = appCenterPushCallback;
ACTIVATION_ARGS = args;
ROOT_FRAME = rootFrame;
APP_CENTER_PUSH_CALLBACK = appCenterPushCallback;
InitializeComponent();

SetupSplashScreen();
Expand All @@ -57,7 +57,6 @@ private void SetImageScale()
if (curImageScale != SplashScreenImageScale.HUGE)
{
background_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/Images/SplashScreen/splash_screen_4000.png", UriKind.Absolute));
logo_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/SplashScreen.scale-400.png", UriKind.Absolute));
curImageScale = SplashScreenImageScale.HUGE;
}
}
Expand All @@ -66,7 +65,6 @@ private void SetImageScale()
if (curImageScale != SplashScreenImageScale.LARGE)
{
background_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/Images/SplashScreen/splash_screen_3000.png", UriKind.Absolute));
logo_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/SplashScreen.scale-200.png", UriKind.Absolute));
curImageScale = SplashScreenImageScale.LARGE;
}
}
Expand All @@ -75,7 +73,6 @@ private void SetImageScale()
if (curImageScale != SplashScreenImageScale.MEDIUM)
{
background_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/Images/SplashScreen/splash_screen_2000.png", UriKind.Absolute));
logo_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/SplashScreen.scale-150.png", UriKind.Absolute));
curImageScale = SplashScreenImageScale.MEDIUM;
}
}
Expand All @@ -84,14 +81,12 @@ private void SetImageScale()
if (curImageScale != SplashScreenImageScale.SMALL)
{
background_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/Images/SplashScreen/splash_screen_1000.png", UriKind.Absolute));
logo_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/SplashScreen.scale-125.png", UriKind.Absolute));
curImageScale = SplashScreenImageScale.SMALL;
}
}
else if (curImageScale != SplashScreenImageScale.TINY)
{
background_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/Images/SplashScreen/splash_screen_800.png", UriKind.Absolute));
logo_img.Source = new BitmapImage(new Uri("ms-appx:///Assets/SplashScreen.scale-100.png", UriKind.Absolute));
curImageScale = SplashScreenImageScale.TINY;
}
}
Expand Down

0 comments on commit 1a1e02f

Please sign in to comment.