Skip to content

Commit

Permalink
Feature: Added icl files to the customize icon picker
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Jan 28, 2025
1 parent 33ca84f commit 1c6ff05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/Files.App/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -3875,6 +3875,10 @@
<value>ICO File</value>
<comment>This is the friendly name for ICO files.</comment>
</data>
<data name="IclFileCapitalized" xml:space="preserve">
<value>ICL File</value>
<comment>This is the friendly name for ICL files.</comment>
</data>
<data name="ZipFileCapitalized" xml:space="preserve">
<value>Zip File</value>
<comment>This is the friendly name for ZIP files.</comment>
Expand Down
7 changes: 4 additions & 3 deletions src/Files.App/ViewModels/Properties/CustomizationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ private void ExecuteOpenFilePickerCommand()

string[] extensions =
[
"ApplicationExtension".GetLocalizedResource(), "*.dll",
"Application".GetLocalizedResource(), "*.exe",
"IcoFileCapitalized".GetLocalizedResource(), "*.ico",
Strings.ApplicationExtension.GetLocalizedResource(), "*.dll",
Strings.Application.GetLocalizedResource(), "*.exe",
Strings.IcoFileCapitalized.GetLocalizedResource(), "*.ico",
Strings.IclFileCapitalized.GetLocalizedResource(), "*.icl ",
];

var result = CommonDialogService.Open_FileOpenDialog(hWnd, false, extensions, Environment.SpecialFolder.MyComputer, out var filePath);
Expand Down

0 comments on commit 1c6ff05

Please sign in to comment.