You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (id == "sun") {
*size = requested_size;
returnQIcon(":/icons/sun").pixmap(requested_size);
}
Then access to the Icon will require explicitly stating its URL, for example: icon.source: "image://images/sun"
We should instead make use of QML's Icon Themes. Instead of maintaining all these different entries in order to serve one icon, we could have an index.theme file which lists all entries. Then Icons are available by name, for example: icon.name: "sun"
Useful skills:
Qt5/6, QML
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.
The text was updated successfully, but these errors were encountered:
Currently, with the way our Image Provider is set up, every Icon will need an entry under
1.
Makefile.qt.include
2.
bitcoin_qml.qrc
3.
imageprovider.cpp
Then access to the Icon will require explicitly stating its URL, for example:
icon.source: "image://images/sun"
We should instead make use of QML's Icon Themes. Instead of maintaining all these different entries in order to serve one icon, we could have an
index.theme
file which lists all entries. Then Icons are available by name, for example:icon.name: "sun"
Useful skills:
Qt5/6, QML
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.
The text was updated successfully, but these errors were encountered: