We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-10-05 18:37:00 +0200

IconTextSwitch icon color wrong for non-theme provided images

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"
 }

IconTextSwitch icon color wrong for non-theme provided images

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"
 }