![]() |
Re: Help me to code for Sailfish OS
Unfortunately, I couldn't manage to bind the C++ and QML properly. In the end, I did all the RegExp work in php, and made it available at a web server. So then I could just work with QML-only code. I'm happy I got something working, and submitted it to Harbour just before Christmas.
Thanks for the help! |
Re: Help me to code for Sailfish OS
I am struggling with some icons, shown in the PhotoDelegate. Do you have experience with the behaviour of icons in light Ambiences vs. dark Ambiences?
Thanks, Rob Below: the problem. Bottom layer is a rectangle. With a light Ambience, the rectangle must be darker to show a nice photo. Works properly. Code:
Rectangle {Then in the upper right corner I show the logo of the broadcasting company as an IconButton. For dark Ambiences, it works fine. But for light Ambiences, something strange happens. Basically, I want to show the same logo. But a svg file with a white image, 0.40 opacity, will be shown as very dark grey, so like the inverse of the normal svg. Code:
IconButton {As a workaround I could work with rectangle, mousearea and image, I guess... |
Re: Help me to code for Sailfish OS
Nowadays Icon* stuff in sfos using HighlightImage magic underneath to properly adjust monochrome icons for dark/light ambiences. Try using just monochrome white image and check if it magically convert to black in light ambience?
|
Re: Help me to code for Sailfish OS
hello guys, maybe stupid question, maybe I did not judt find it.. is there proper reaction/signal on change of the OS's ambience?
|
Re: Help me to code for Sailfish OS
Might be somewhere in Theme...
Theme.colorScheme == 0 stands for a dark Ambience. |
Re: Help me to code for Sailfish OS
Quote:
Code:
Theme.LightOnDarkBut if initial question was about actual ambience change, there is an example in sailfish code: https://github.com/CODeRUS/better-sa...indow.qml#L225 |
Re: Help me to code for Sailfish OS
coderus: yes exactly, I have found that colorScheme is defined, only the reaction to that I had not found. Thanks a lot, I will look at it :)
EDIT: Thanks a lot, works :) Code:
import Sailfish.Silica.private 1.0 |
Re: Help me to code for Sailfish OS
Quote:
|
Re: Help me to code for Sailfish OS
Quote:
EDIT: works! Code:
property real themeType: Theme.colorScheme |
Re: Help me to code for Sailfish OS
Quote:
|
| All times are GMT. The time now is 05:54. |
vBulletin® Version 3.8.8