File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ public partial class App : Application
76
76
public static SecondaryTileHelper SecondaryTileHelper { get ; private set ; } = new SecondaryTileHelper ( ) ;
77
77
78
78
public static string AppVersion = $ "{ Package . Current . Id . Version . Major } .{ Package . Current . Id . Version . Minor } .{ Package . Current . Id . Version . Build } .{ Package . Current . Id . Version . Revision } ";
79
-
79
+ public static string LogoPath ;
80
+
80
81
public IServiceProvider Services { get ; private set ; }
81
82
82
83
/// <summary>
@@ -93,6 +94,8 @@ public App()
93
94
InitializeComponent ( ) ;
94
95
Services = ConfigureServices ( ) ;
95
96
Ioc . Default . ConfigureServices ( Services ) ;
97
+ LogoPath = Package . Current . DisplayName == "Files - Dev" ? Constants . AssetPaths . DevLogo
98
+ : ( Package . Current . DisplayName == "Files - Preview" ? Constants . AssetPaths . PreviewLogo : Constants . AssetPaths . StableLogo ) ;
96
99
}
97
100
98
101
private IServiceProvider ConfigureServices ( )
Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ public static class WslIconsPaths
76
76
77
77
public static class AssetPaths
78
78
{
79
- public const string Logo = "Assets/AppTiles/Dev/Logo.ico" ;
79
+ public const string DevLogo = "Assets/AppTiles/Dev/Logo.ico" ;
80
+ public const string PreviewLogo = "Assets/AppTiles/Preview/Logo.ico" ;
81
+ public const string StableLogo = "Assets/AppTiles/Release/Logo.ico" ;
80
82
}
81
83
82
84
public static class UI
Original file line number Diff line number Diff line change @@ -123,6 +123,6 @@ void Navigate(Frame frame)
123
123
}
124
124
125
125
private static string GetFilesLogoPath ( )
126
- => Path . Combine ( Package . Current . InstalledLocation . Path , Constants . AssetPaths . Logo ) ;
126
+ => Path . Combine ( Package . Current . InstalledLocation . Path , App . LogoPath ) ;
127
127
}
128
128
}
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ private void EnsureEarlyWindow()
46
46
// Set title
47
47
AppWindow . Title = "Files" ;
48
48
49
- // Set icon
50
- AppWindow . SetIcon ( Path . Combine ( Package . Current . InstalledLocation . Path , Constants . AssetPaths . Logo ) ) ;
49
+ // Set logo
50
+ AppWindow . SetIcon ( Path . Combine ( Package . Current . InstalledLocation . Path , App . LogoPath ) ) ;
51
51
52
52
// Extend title bar
53
53
AppWindow . TitleBar . ExtendsContentIntoTitleBar = true ;
You can’t perform that action at this time.
0 commit comments