youpie / Iconic

An application made for GNOME written in Rust to easilly add images on top of folders
GNU General Public License v3.0
29 stars 5 forks source link

Add colors to the dropdown #26

Open vanillajonathan opened 3 days ago

vanillajonathan commented 3 days ago

In the preferences there is a dropdown for "Manually select folder color" which contains colors as text. Maybe it would be possible to also next to the color name also show the color?

It would look like this: 🔵 Blue 🟢 Green 🟡 Yellow 🟠 Orange 🔴 Red 🟣 Purple

youpie commented 3 days ago

that is a really good idea that I wanted to implement. however... I couldn't figure out how to do that 😅.

One place I saw this being used was in the gtk inspector, but I couldn't find where the dropdown was made, and I don't have much knowledge about C

vanillajonathan commented 3 days ago

I don't know, but a quick glance at the GTK documentation and I found the set_list_factory method on the Gtk.DropDown widget which might be something that could be used?

youpie commented 2 days ago

Feel free to create a pull request if you want to implement it 😄