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-04-26 23:48

Animated homescreen themes
 
Update: Re: I'm not entirely happy with patching 'compositor.qml'.......

So, I've worked out how to get away from patching, thanks to a hint from Schturman! :)

I'm thinking now it should be a switch in Settings, perhaps on the Ambience menu? or an entry of it's own, or perhaps in Display Settings?, any input or ideas appreciated!

Just in case any are wondering about animated ambience, there are a few caveats with my findings/creation so far, the main one being, I still haven't worked out a way to make ambience from a gif in Gallery - it just doesn't work, yet.

So, it's back to end users relying on creations from those who can make ambience (RPM) containing suitable gifs, in which case, I have no problem taking requests and I would also continually point others to Schturman's guide on Ambience & RPM, so they can create their own and more.

more to come, for those interested! ;)

Any input is appreciated

Regards,
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The two examples created are uploaded to Openrepos,
animated-matrix-code-theme & animated-cannabis-leaf-theme

I'm totally open to suggestions as to how to make this application better and more user friendly, just like changing current ambience.

Markkyboy 2016-05-01 18:13

Re: Animated homescreen themes
 
Okay, perhaps that idea was not so good, sooooo, instead, I've moved the 'operation' to the lockscreen to see how that works out - and it works quite as expected.

My problem currently is; I'm inserting the full path to the ambience images directory (usr/share/ambience/ambience-blah/images/my.gif) - which is too specific and will only work for the one ambience - how can I shorten that path/URL so ANY ambience that contains a GIF can read via the path/url.........make sense?

I've tried many variations, similar to this kind (which of course points to 'themes') "image://themes/icon-m-blah.png" which is kind of what I need, but I haven't 'stumbled across' of found what I'm looking for via other forums........."ambience://current/wallpaper/''" - something like that maybe?....

Any ideas guys?

Schturman 2016-05-02 06:41

Re: Animated homescreen themes
 
if you use script, to detect what cuttent ambience folder you can use this command as USER:
Code:

dconf read /desktop/jolla/theme/active_ambience|cut -d '/' -f5

Markkyboy 2016-05-02 11:05

Re: Animated homescreen themes
 
Quote:

Originally Posted by Schturman (Post 1504778)
if you use script, to detect what cuttent ambience folder you can use this command as USER:
Code:

dconf read /desktop/jolla/theme/active_ambience|cut -d '/' -f5

Thanks Schturman, it looks like I may have to go down that route by using a script with dconf.

I did try inserting similar code (as above) into LockScreen.qml, but of course, it won't read anything unless the url is absolute, it seems. I could be wrong.

Thanks for replying! :)

Schturman 2016-05-02 11:29

Re: Animated homescreen themes
 
Try like this:
Code:

/usr/share/ambience/$(dconf read /desktop/jolla/theme/active_ambience|cut -d '/' -f5)/images/my.gif
Probably also will not work...

Ancelad 2016-05-02 11:32

Re: Animated homescreen themes
 
Shell command from qml? Ermm.

coderus 2016-05-02 11:43

Re: Animated homescreen themes
 
trial and error programming, lol
you still have chances to start learning qml and stuff.

stickymick 2016-05-02 15:52

Re: Animated homescreen themes
 
I'd love to see this implemented on the Jolla.
I enjoyed showing peeps the N900 running a video as a homescreen backdrop.

Schturman 2016-05-02 16:45

Re: Animated homescreen themes
 
Markkyboy, just use command in the script... ;)
You also can run your script from qml... Cteate setting with button to run your script that will do correct changes to qml...
It's a little bit complicated, but possible...

Ancelad 2016-05-02 17:13

Re: Animated homescreen themes
 
ambience.wallpaperUrl

No?

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