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 2018-11-15 10:35:48 +0200

Changes in colors codes (v3.0.0.8) - need some help

Hi to all.
I noticed about some changes in the colors on v3.0.0.8. And I can't fix some of my apps/patches, maybe here someone can help to fix it.
P.S. Already asked Andrey (Coderus), he can't help for now (lack of time).

  1. Look at this two pictures, one before and one after update. After update the image with buttons always white and text under slider also can't change itself.
    Colors error

Here is a code that slider use to change colors, but probably I need to change it somehow for v3.0.0.8, because it not do what it should to do.

color: customCameraOverlay.defaultbasel == 1 ? Color.toHighlight(Color.fromHsva(customCameraOverlay.baselcolor/100, 1.0, 0.5, 1.0)) : Qt.darker(Color.toHighlight(Color.fromHsva(customCameraOverlay.baselcolor/100, 1.0, 0.5, 1.0)))

And here the full code from this patch: https://pastebin.com/Uk4rbix7 (maybe some other lines should be changed instead this one).
Same color problems I have in two other apps like FastDial_icon and Fastmail_icon.

  1. The second question is why my icons not inverted like original when I choose the white themes ?
    My icons placed in the same location like original icons, and it also .png files.
    White icons

Will be nice if someone know how to fix it. Thanks.

Changes in colors codes (v3.0.0.8) - need some helphelp (partially solved)

Hi to all.
I noticed about some changes in the colors on v3.0.0.8. And I can't fix some of my apps/patches, maybe here someone can help to fix it.
P.S. Already asked Andrey (Coderus), he can't help for now (lack of time).

  1. Look at this two pictures, one before and one after update. After update the image with buttons always white and text under slider also can't change itself.
    Colors error

Here is a code that slider use to change colors, but probably I need to change it somehow for v3.0.0.8, because it not do what it should to do.

color: customCameraOverlay.defaultbasel == 1 ? Color.toHighlight(Color.fromHsva(customCameraOverlay.baselcolor/100, 1.0, 0.5, 1.0)) : Qt.darker(Color.toHighlight(Color.fromHsva(customCameraOverlay.baselcolor/100, 1.0, 0.5, 1.0)))

And here the full code from this patch: https://pastebin.com/Uk4rbix7 (maybe some other lines should be changed instead this one).
Same color problems I have in two other apps like FastDial_icon and Fastmail_icon.

  1. The second question is why my icons not inverted like original when I choose the white themes ?
    My icons placed in the same location like original icons, and it also .png files.
    White icons

Will be nice if someone know how to fix it. Thanks.


UPDATE (17.11.2018):
The first question is solved (big thanks to @Ancelad) and I updated my package.
And yes, we have some changes in the slider code for example:

color: customCameraOverlay.defaultbasel == 1 ? Theme.highlightFromColor(Color.fromHsva(customCameraOverlay.baselcolor/100, 1.0, 0.5, 1.0), colorScheme) : Qt.darker(Theme.highlightFromColor(Color.fromHsva(customCameraOverlay.baselcolor/100, 1.0, 0.5, 1.0), colorScheme))

The second question is still not answered...