Access system icons with NodeJS

I am developing an HTML5 app with node-webkit .

I want my application to keep track of the icon theme of the host computer that launches it (mostly Linux hosts).

Frames such as GTK+

or QT

will successfully find a matching standard stock icon (such as NEW_FILE) based on the user's theme.

GTK skin themes are installed in $ HOME / .icons or / usr / share / icons , and the icon theme shares a common directory structure.

But is there any rule or algorithm for getting the exact icon?

How can I find the icon ( NEW_FILE , SAVE_FILE or whatever) in the user's theme?

I completely lost it.

+3


source to share


1 answer


Can you look in the GTK + or QT source code and see how they define the correct icons?



0


source







All Articles