I don't know the Silica APIs well, but I think you may want to use the Theme.pixelRatio here, to have a device-independant width for you image.
More here: https://sailfishos.org/develop/docs/silica/sailfish-application-scalability.html/ On Mon, Oct 16, 2017 at 12:05 PM, Chris Walker < cdw_noki...@the-walker-household.co.uk> wrote: > On Sun, 15 Oct 2017 14:11:47 +0200 > Christophe Chapuis <chris.chap...@gmail.com> wrote: > > > You have "width: beerglass.width * 2" which is a width in pixel. But > > Xperia has probably higher DPI, so the width isn't sufficient now. > > You'll have to specify more precisely which width you want here, or > > just let QML Label do the job for you. > > OK. Thanks for that. > > I'll have to take a look at the coding on the cover page too then as > that icon is quite small. Or is the preferred method to have a scalable > SVG file there? I notice that in a new project there is this line :- > SAILFISHAPP_ICONS = 86x86 108x108 128x128 256x256 > > Is the project expecting an icon for each of those sizes or if I > produce an icon for 86x86 and 256x256, will the intermediary sizes be > auto generated when the app runs, assuming that a device needs those > intermediary sizes? > > -- > __ __| |_ __ __ .--------------------------------------------------. > / _/ _` \ V V / | mailto:cdw_noki...@the-walker-household.co.uk | > \__\__,_|\_/\_/ |__________________________________________________| > _______________________________________________ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to devel-unsubscribe@lists. > sailfishos.org >
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org