@@ -137,30 +137,15 @@ private static async Task UpdateTabInfoAsync(TabBarItem tabItem, object navigati
137
137
iconSource . ImageSource = new BitmapImage ( new Uri ( Constants . FluentIconsPaths . HomeIcon ) ) ;
138
138
}
139
139
else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . DesktopPath , StringComparison . OrdinalIgnoreCase ) )
140
- {
141
140
tabLocationHeader = "Desktop" . GetLocalizedResource ( ) ;
142
- }
143
141
else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . DownloadsPath , StringComparison . OrdinalIgnoreCase ) )
144
- {
145
142
tabLocationHeader = "Downloads" . GetLocalizedResource ( ) ;
146
- }
147
143
else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . RecycleBinPath , StringComparison . OrdinalIgnoreCase ) )
148
- {
149
144
tabLocationHeader = "RecycleBin" . GetLocalizedResource ( ) ;
150
-
151
- // Use 48 for higher resolution, the other items look fine with 16.
152
- var iconData = await FileThumbnailHelper . LoadIconFromPathAsync ( currentPath , 48u , Windows . Storage . FileProperties . ThumbnailMode . ListView , Windows . Storage . FileProperties . ThumbnailOptions . UseCurrentScale , true ) ;
153
- if ( iconData is not null )
154
- iconSource . ImageSource = await iconData . ToBitmapAsync ( ) ;
155
- }
156
145
else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . MyComputerPath , StringComparison . OrdinalIgnoreCase ) )
157
- {
158
146
tabLocationHeader = "ThisPC" . GetLocalizedResource ( ) ;
159
- }
160
147
else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . NetworkFolderPath , StringComparison . OrdinalIgnoreCase ) )
161
- {
162
148
tabLocationHeader = "SidebarNetworkDrives" . GetLocalizedResource ( ) ;
163
- }
164
149
else if ( App . LibraryManager . TryGetLibrary ( currentPath , out LibraryLocationItem library ) )
165
150
{
166
151
var libName = System . IO . Path . GetFileNameWithoutExtension ( library . Path ) . GetLocalizedResource ( ) ;
@@ -203,7 +188,7 @@ private static async Task UpdateTabInfoAsync(TabBarItem tabItem, object navigati
203
188
204
189
if ( iconSource . ImageSource is null )
205
190
{
206
- var iconData = await FileThumbnailHelper . LoadIconFromPathAsync ( currentPath , 16u , Windows . Storage . FileProperties . ThumbnailMode . ListView , Windows . Storage . FileProperties . ThumbnailOptions . UseCurrentScale , true ) ;
191
+ var iconData = await FileThumbnailHelper . LoadIconWithoutOverlayAsync ( currentPath , 28u , true , false , true ) ;
207
192
if ( iconData is not null )
208
193
iconSource . ImageSource = await iconData . ToBitmapAsync ( ) ;
209
194
}
0 commit comments