@@ -137,30 +137,15 @@ private static async Task UpdateTabInfoAsync(TabBarItem tabItem, object navigati
137137 iconSource . ImageSource = new BitmapImage ( new Uri ( Constants . FluentIconsPaths . HomeIcon ) ) ;
138138 }
139139 else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . DesktopPath , StringComparison . OrdinalIgnoreCase ) )
140- {
141140 tabLocationHeader = "Desktop" . GetLocalizedResource ( ) ;
142- }
143141 else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . DownloadsPath , StringComparison . OrdinalIgnoreCase ) )
144- {
145142 tabLocationHeader = "Downloads" . GetLocalizedResource ( ) ;
146- }
147143 else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . RecycleBinPath , StringComparison . OrdinalIgnoreCase ) )
148- {
149144 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- }
156145 else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . MyComputerPath , StringComparison . OrdinalIgnoreCase ) )
157- {
158146 tabLocationHeader = "ThisPC" . GetLocalizedResource ( ) ;
159- }
160147 else if ( currentPath . Equals ( Constants . UserEnvironmentPaths . NetworkFolderPath , StringComparison . OrdinalIgnoreCase ) )
161- {
162148 tabLocationHeader = "SidebarNetworkDrives" . GetLocalizedResource ( ) ;
163- }
164149 else if ( App . LibraryManager . TryGetLibrary ( currentPath , out LibraryLocationItem library ) )
165150 {
166151 var libName = System . IO . Path . GetFileNameWithoutExtension ( library . Path ) . GetLocalizedResource ( ) ;
@@ -203,7 +188,7 @@ private static async Task UpdateTabInfoAsync(TabBarItem tabItem, object navigati
203188
204189 if ( iconSource . ImageSource is null )
205190 {
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 ) ;
207192 if ( iconData is not null )
208193 iconSource . ImageSource = await iconData . ToBitmapAsync ( ) ;
209194 }
0 commit comments