New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add colorized file type icons #1769
Conversation
@adrium well done! Let's wait for community feedback |
Thanks for the feedback - glad you like it! I actually got some ideas for slight improvements such as less opacity for hidden files. I will update the code within the next couple of days... |
Is there a way to set this one as a theme? Currently we have "light","dark", maybe we can add this one as a new theme. So users can make their own choice. |
The intention is to set the icons and their colors as defaults - like operating systems that provide a default icon theme. |
I updated some details:
|
Updated with minor last changes:
|
The behavior i expect of files that are not supported by the system is them to be displayed as a blank file icon. FileBrowser has preview only for text, pdf, image, audio and video files, i think that adding specific colors and icons for other file types can lead to confusion. We could try implementing this gradually and checking the user feedback. |
Hi Ramires, thanks for your feedback. I generally like your suggestion of having icons for types that are "supported by the system". Let's take a closer look:
There is already much potential for confusion. On the other hand, if File Browser (as per readme a "file managing interface") gives a visual hint of what the file is supposed to be, it helps to manage files - just think of the Downloads folder. It is up to the user to install programs that can handle the files on a desktop. If File Browser is even able to provide a preview - perfect! If it can not, a nice prompt to download the file is displayed - no confusion there. This why I think icons and colors should be provided independent of preview, by default and without gradual changes. |
I welcome this and think it is a good idea. I've gotten a lot of feedback for the CSS I published in #1256. There are definetly a lot of people out there that want to distinguish files more easily using colorized icons . |
I stumbled upon issue #1698. The listing view has made it difficult for me too finding files that are not images, and it inspired me to implement this.
The general approach is to fully define icon rendering in CSS.
Icons are based on the type and file suffix, colors are based on simple definitions, and the palette is from KDE. I tried to include the most relevant types considering modern operating systems, formats, and languages. In the end though, it is subjective what should be considered relevant...
Also related #1256 and #1668.
The colors can be disabled by adding the following css:
Example: