buggins / dlangui

Cross Platform GUI for D programming language
Boost Software License 1.0
805 stars 120 forks source link

Icons are broken on linux #648

Closed GrimMaple closed 1 year ago

FreeSlave commented 1 year ago

If you mean that the Icons tab doesn't show icons in example1 - it's probably due to using the .svg-only icon theme. It should show icons if the current icon theme has .png images. It can't be fixed until dlangui gets svg rendering support.

Overall the whole mechanism is probably not used in any dlangui app. The example was part of my plan to let dlangui use icons native for the environment.

GrimMaple commented 1 year ago

If you mean that the Icons tab doesn't show icons in example1 - it's probably due to using the .svg-only icon theme. It should show icons if the current icon theme has .png images. It can't be fixed until dlangui gets svg rendering support.

Overall the whole mechanism is probably not used in any dlangui app. The example was part of my plan to let dlangui use icons native for the environment.

Actually, since I switched to arsd.image in https://github.com/buggins/dlangui/commit/663b7dfd739c4ad84afd6f8b90c9e71237be37e5 , dlangui now supports svg. Or at least it could if a proper loading mechanism is written. Now, I don't know much about handling svg's, so if anyone does know -- please PR it.

GrimMaple commented 1 year ago

Actually, it doesn't look too bad or difficult. Might do it myself

FreeSlave commented 1 year ago

I made PR