Skip to content

Commit 9949496

Browse files
committed
Update LayoutPreferencesManager.cs
1 parent 0b97091 commit 9949496

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Files.App/Helpers/Layout/LayoutPreferencesManager.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ public LayoutPreferencesManager(FolderLayoutModes modeOverride) : this()
220220
/// Always uses the Large icon size (32).
221221
///
222222
/// Tiles View:
223-
/// Always uses 256.
223+
/// Always uses 96, 128, or 256 depending on the layout size.
224224
///
225225
/// Grid View:
226-
/// Always uses 256.
226+
/// Always uses 96, 128, or 256 depending on the layout size.
227227
/// </summary>
228228
public uint GetRoundedIconSize()
229229
{
@@ -235,6 +235,12 @@ public uint GetRoundedIconSize()
235235
=> Constants.ShellIconSizes.Large,
236236
FolderLayoutModes.ColumnView
237237
=> Constants.ShellIconSizes.Large,
238+
_ when LayoutMode == FolderLayoutModes.TilesView && UserSettingsService.LayoutSettingsService.ItemSizeTilesView <= 96 ||
239+
LayoutMode == FolderLayoutModes.GridView && UserSettingsService.LayoutSettingsService.ItemSizeGridView <= 96
240+
=> 96,
241+
_ when LayoutMode == FolderLayoutModes.TilesView && UserSettingsService.LayoutSettingsService.ItemSizeTilesView <= 128 ||
242+
LayoutMode == FolderLayoutModes.GridView && UserSettingsService.LayoutSettingsService.ItemSizeGridView <= 128
243+
=> 128,
238244
_ => 256,
239245
};
240246
}

0 commit comments

Comments
 (0)