Kl4rry / simp

🖼️ Simp is a fast and simple GPU-accelerated image manipulation program.
Apache License 2.0
304 stars 13 forks source link

Usability: Hide invalid file types in file picker #20

Closed DannyJJK closed 1 year ago

DannyJJK commented 1 year ago

It would be nice for the file picker to only allow selecting image files that are supportred by Simp.

I mainly work in webdev so I know In HTML you can create a file picker that is limited to certain files like this: <input type="file" accept="image/*">

On Windows, this hides non-image files. On macOS, this grays them out and doesn't allow them to be selected. And I imagine Linux distros do one of those two things.

I imagine there should be an option to provide this when creating the file picker, but if not then maybe this is a feature suggestion for the GUI framework.

Kl4rry commented 1 year ago

It is very easy to add filters to the file picker. The only issue is that it is not possible to hide the options so it looks quite ridiculous on windows. bild

Kl4rry commented 1 year ago

But that is a separate problem.