Regarding the feature-request "colored file labels". For sure possible, looks nice.
However alot of work required to add such a thing. So due to a lack of manpower not in sight for the near future. Please open a separate bug for it !
... if you want to speed up the process ... patches are always welcome !
reopened, since there seems to be some demand. Even if there is no manpower to implement such a feature curently, duplicates can be closed against this bug
@Kirill Afonin
Your bug was about the "color of a folder", not about emblems.
Emblems work fine for me .. they dont work for you ? If so, please open a separate bug for it.
I was wondering about the implementation for this.
While looking at the gtk docs I found -
GtkTreeView has method get_column
GtkTreeViewColumn has method add_attribute (which has a cell renderer as an argument)
GtkCellRenderer has property cell-background-rgba
But if we are to do this then won't this take effect for all the cells within that column ? How can we get access to the individual cell renderers of each row in the column ?
How can we get access to the individual cell renderers of each row in the column ?
I suppose you will need to (re)build the TreeView, using a different cell renderer-attribute for the cells in question. At least on a quick search I did not find a way to extract the currently used cell renderer .. though I could be wrong.
I would also like to suggest a different view of this problem.
We could create a certain number of selected colors as the label colors (say 10). The user will select one of these colors to label a folder/(file too?). A new column (label column) is created which will house the corresponding label. This new column can be sorted (this will bring together same colored folders/(files too?) ).
I think this sortable color column would be a good feature (?).
We could create a certain number of selected colors as the label colors (say 10)
Would be fine for me .. though I suppose most simple will be to just use a color picker, like you did in your MR.
(file too?)
Yes, it should be possible to as well color files, not only folders.
I think this sortable color column would be a good feature (?).
Indeed, that sounds like a good idea ! Would be less intrusive as coloring the whole row and for sure it makes sense to sort by color, once you colored many files.