Ask / Submit
2

[SDK][SFOS3] Theme.style returns undefined [answered]

asked 2018-11-19 22:51:27 +0300

updated 2018-11-21 11:15:41 +0300

jiit gravatar image

So I've just installed the new SFOS3 SDK, now in the theme documentation there is a new value Theme.style

"style : bool Defined by the currently active Sailfish ambience. In the light style mode the platform text and icons are painted in dark color on light background compared to the dark style with normal light content on top of the dark background."

Now when I try this it just returns undefined every single time, regardless of dark or light ambience, it's been run on the SFOS 3 emulator and SFOS3 API's.

Anyone else ran into this issue?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Allstar12345
close date 2018-11-21 22:40:34.576216

Comments

1

Using Theme.colorScheme. Theme.colorScheme has value of 0 for dark ambience and has value of 1 for light ambience.

zuyev ( 2018-11-20 23:35:27 +0300 )edit

Funnily enough I spoke to a dev earlier today who had a similar suggestion, it's a working fix until someone at Jolla can look into this.

Thank you though :)

Allstar12345 ( 2018-11-21 00:05:27 +0300 )edit

1 Answer

Sort by » oldest newest most voted
7

answered 2018-11-21 14:25:21 +0300

Jare gravatar image

Hi,

Unfortunately there was an issue with the Sailfish OS SDK update repository, which caused the Sailfish Documentation package to remain on an old version. This was fixed yesterday and the new Sailfish Documentation package is now available in the repository. So, please open the SDKMaintenanceTool and check for the updated Sailfish Documentation package.

The Theme.style property has been deprecated and the correct one to use now is the Theme.colorScheme property.

Sorry for the inconvenience, Jolla SDK Team

edit flag offensive delete publish link more

Comments

Ah, that explains it thank you.

Allstar12345 ( 2018-11-21 22:40:48 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2018-11-19 22:51:27 +0300

Seen: 210 times

Last updated: Nov 21 '18