We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2019-10-05 18:37:00 +0200 |
If I do this, the icon will show according to the theme foreground text color.
IconTextSwitch {
text: "Location"
icon.source: "image://theme/icon-m-gps"
description: "Allow applications to use GPS for mobile networks to pin point your location"
}
If I copy the icon file into the app's directory and use the file as icon source, it will render as white.
IconTextSwitch {
text: "Location"
icon.source: "file://path/to/my/app/icon-m-gps.png"
description: "Allow applications to use GPS for mobile networks to pin point your location"
}
2 | No.2 Revision |
If I do this, the icon will show according to the theme foreground text color.
IconTextSwitch {
text: "Location"
icon.source: "image://theme/icon-m-gps"
description: "Allow applications to use GPS for mobile networks to pin point your location"
}
If I copy the icon file into the app's directory and use the file as icon source, it will render as white. Note, the use of icon-m-gps is just to illustrate that even Jolla's own images don't work.
IconTextSwitch {
text: "Location"
icon.source: "file://path/to/my/app/icon-m-gps.png"
description: "Allow applications to use GPS for mobile networks to pin point your location"
}