jarek-foksa / xel

Xel - Widget toolkit for building native-like Electron and Web apps
https://xel-toolkit.org
Other
679 stars 58 forks source link

Fix for relative path icons (Electron specific) #87

Closed thevirajshelke closed 5 years ago

thevirajshelke commented 5 years ago

Xel Toolkit is an awesome UI toolkit for creating the native desktop-like look and feel in electron apps. The only issue that I came across it is while having a different folder structure of electron app. So when your electron app's folder structure is different (i.e. customized) the icons were not loading due to the relative path. Here is a small snippet of code that I have written to overcome this bug.

This bug fix will give electron users an option to use this wonderful toolkit while maintaining their folder structure :)

Few details:- Also works when you build the electron app!

jarek-foksa commented 5 years ago

Please check https://github.com/jarek-foksa/xel/commit/1b679334e20ee5078b8c78ddd7090800480a6d67