maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Animated homescreen themes (https://talk.maemo.org/showthread.php?t=96683)

Markkyboy 2016-05-03 14:10

Re: Animated homescreen themes
 
Quote:

Originally Posted by Ancelad (Post 1504845)
ambience.wallpaperUrl

No?

No, @Ancelad... but thank you. I had already tried that and similar variations to no avail, so it looks like a script is required, as pointed out by Schturman.

Regards,

coderus 2016-05-03 15:02

Re: Animated homescreen themes
 
a script for what?
Code:

Theme.backgroundImage.substring(0, Theme.backgroundImage.lastIndexOf("/") + 1) + "animated.gif"
qml one-liner

Markkyboy 2016-05-03 16:03

Re: Animated homescreen themes
 
Quote:

Originally Posted by coderus (Post 1504938)
a script for what?
Code:

Theme.backgroundImage.substring(0, Theme.backgroundImage.lastIndexOf("/") + 1) + "animated.gif"
qml one-liner

Thanks coderus, but I have found the solution. Ancelad was closer than I realised.

I've solved it with QML, no need for sh. scripts or the like.

Thanks again guys, Schturman, Ancelad, Coderus........

coderus 2016-05-03 16:06

Re: Animated homescreen themes
 
so what is your final solution?

Markkyboy 2016-05-03 16:28

Re: Animated homescreen themes
 
Quote:

Originally Posted by coderus (Post 1504946)
so what is your final solution?

Well, I won't call it a final solution, but it gets me further ahead in my quest to have animated lockscreen or animated general ambience - which would be the most suitable offering?

I realise animated GIFs can be quite expensive on system resources, perhaps I should poll and see who thinks the best place to have any animation on our devices.

The 'solution', was so close to what I had already tried. Then Ancelad posted his idea and he wasn't far away, neither of us were. The line I needed was simply this;

Code:

source: Ambience.homeWallpaper
I can now switch between ambiences and any containing a GIF, will animate immediately! :)

FIXED: can now switch between animated and standard ambience.
--------------------------------------------------------------------------------------------------------
Doesn't play well with user created Ambience - as they reside in a different file destination, so of course they don't animate (yet) but it also seems to 'knock out' the animation function when reselecting an animated ambience after a non-animated one - much to work out!! :D

more to come!

Markkyboy 2016-05-25 16:55

Re: Animated homescreen themes
 
Quote:

Originally Posted by coderus (Post 1504803)
trial and error programming, lol
you still have chances to start learning qml and stuff.

EDIT - SDK now opens, but takes 7 minutes to do so, everytime!! ?.oh well.......it runs!, that's the main thing!

Yes, you are correct, time is all I have! :)

One major hurdle though and I cannot seem to solve it. Neither SailfishSDK or Qtcreator will run on my PC. It all installs no problem, but upon starting one or the other, nothing shows on the screen, but, if I look in Task Manager, the program is running!, this is weird as I have had SF-SDK running before but didn't understand it, plus I was fighting for HDD space, so it got removed.

I feel I'm ready to start learning by using SDK of one sort or another, but typically, I have the hurdle of getting the fkin program to run in the first place!

I'm running Windows 7 64bit Ultimate. Has anyone else experienced similar problems with SDK's..? (I know, this isn't the right place to be asking but is relevant to my creations!).


All times are GMT. The time now is 14:22.

vBulletin® Version 3.8.8