Patch: Xperia clock

Rating: 
5
Your rating: None Average: 5 (4 votes)

README FIRST

  • Sailfish OS 2.1.3 please use 0.7.
  • Sailfish OS 2.1.2 please use 0.6.

It enables an Xperia-like clock in the lockscreen. It works with LPM too. Tested on the Jolla C and the Jolla Tablet.

Note: to apply the weather widget, apply your favorite Xperia clock first.

Sources: https://github.com/fravaccaro/sailfishos-patch-xperia-clock

Code for the weather patch based on this.

=============

If you like my work, please consider to donate via Flattr or PayPal.

Screenshots: 
Application versions: 
Changelog: 

- Compatible with Sailfish OS 2.1.3.

Comments

alina's picture

Thanks for the update, but as you may note the clock top margin in 2.1.3 is more than that in previous versions, so the big clock will be so close to media player widget – albeit if you have the operator name on the bottom which pushes the media player widget upwards.

On my trials, adding "Theme.paddingLarge * 2" to the "timeText.bottomMargin" will take the clock back to the same position as in previous versions.

3vixan's picture

Great lockscreen! It would be great a setting of the font color, 'cause with bright ambience cannot see clearly the weather

alina's picture

Wow! Beautiful patch!

Some suggestions and feedbacks:

1. It would be great if we have all patches under one but some settings to play with, without needing to restart home screen.

2. The weather color is white also on LPM. To my opinion, it can be totally removed to keep LPM neater.

3. AM/PM will be more beautiful and more helpful on the bottom right side of the minutes (Screenshot).

4. Why uppercase for date? I prefer it in lowercase, however there can be an option (following #1).

gedeon's picture

And 1 more thing what I noticed when I use bright ambiences I can not see properly the time and the weather as well, so maybe you can find the source in the Ultimate Statusbar patch. So it would be very usefull if we could manage a gradient background under the clock and the banners somehow nice presenting like from light gradient from the borders to growing gradient further the centre point of the object... I hope you understand what I mean, and thanks anyway everything so far, I am not to here to stress jou, just I tey to give some usefull developing...

 

Have a nice weekend ;)

fravaccaro's picture

It's an old problem in Sailfish OS :/ No problem, I'm a newbie, I'm willing to get feedback :)

giskard's picture

How can I move the operator name to the bottom, like in your screenshots?

fravaccaro's picture

I did nothing, it's a Sailfish OS thing :)

Markkyboy's picture

"it's a Sailfish OS thing..".....I've not seen this, ever. A file must have been altered, either manually or by an app. It's interesting to see a part of statusarea showing at the bottom of the screen, when normally, statusarea is of a 'row' construction type.

Ancelad's picture

It's really OS-feature. Bottom position is shown if you have multisim-support (Jolla C or Intex) and top one if you have one sim (Jolla 1 etc) because you don't have enough space to show two operators name in the top of the screen without statusarea-indicators overlapping.

giskard's picture

Thanks! :)

Markkyboy's picture

That makes sense now you say it, I didn't consider other devices with multi-sim. I assumed that frav is using Jolla1.

fravaccaro's picture

Nope, Jolla C :) I forgot Jolla 1 still places the operator name on the status bar :)

giskard's picture

Then your Sailfish behaves differently from my :D

gedeon's picture

Heh, I thought the different hours and minutes colour was on purpose in Sneak Peak :) , I liked it. Is there maybe any chance in the future you add an option to select the hours colour and separately the minutes colour in normal lock screen and maybe different colours in Sneak Peak as well?
 Also size selects and distances would be nice :) . Sorry for the many suggestions I am just thinking loudly sometimes...

fravaccaro's picture

Yes, there's a chance but not soon :) I need to learn some new stuff first and in the coming weeks I'll be busy trying to finally deliver the UI for my Theme pack support (which is, well, 1 and half year late)

gedeon's picture

Nice job!

 

Could you add maybe the same meecast feature like in the analoge clock patch, please?

 

Thanks!

fravaccaro's picture

I'm afraid it's not possible. I'm considering the 'worse' scenario, with big fonts+music controls+call, there wouldn't be enough room for the weather banner and it would overlap some lockscreen items, ending up in a mess. Of course different designs are possible, like the weather 'icons' alongside the date or as a background for the clock, but so far those tricks are beyond my skills. :/

gedeon's picture

And if someone doesn't use music control, like me, or doesn't use big fonts, etc.? I used the analog clock so far, where is the weather banner is eligible option like the 5days forecast as well, little bit overhang the five days maybe but I still like it because it practical. So if you could just add it like an option what we are able to select from a menu, same like in the analog clock it would be perfect because everyone  could use peraonally what he want to see on lock screen, in principle the source code is available from that patch or not?

fravaccaro's picture

I don't use big fonts neither, but I'm supposed to make sure it looks good in every possible condition :) I'm not sure I'll be able to implement it, I may try.

 

EDIT: done. It's not the most elegant implementation, as it comes with two patches (one features the extendible widget), but it gets the job done and it works with both Jolla Weather and Meecast.

gedeon's picture

To be honest I was wrong I am using large fonts, not huge just large... But now I tried it with large but I tried with normal as well, the issue is the same in both cases. The weather widget is working properly but the clock didn't change at all, it stayed the original clock with the original date what is in the same row like the weather widget. I use jolla c.

fravaccaro's picture

You should apply the Xperia clock first and after the weather patch.

gedeon's picture

Yes, you are right, there was something problem with them, but after a reboot I could choose the clock first and than the widget as well, forst it hasn't worked, but now it is perfect!

 

Very good job, there is also no issue with bigger fonts! Thanks!

Markkyboy's picture

haha, nice one!, I came up with this idea some 6 months ago, played around with it for a while, but felt that little to no one would be interested, so I didn't upload it. 
Now i'm going to download your version and see how you achieved hours/mins on 2 lines.
Regards,

fravaccaro's picture

Damn, you would have saved me some work :D

I've uploaded the sources :)

Markkyboy's picture

hehehe....it was inevitable, especially with the announcement from Sony.
I used 2 instances of ClockItem, though I prefer the way you have done it. But I didn't use Timer for keeping the time updated, I used 'updatesEnabled: timeText.time' instead, keeping the code a little shorter and no java script required on mine either, except for what is used within blocks of qml. :)

fravaccaro's picture

You're right, I read about the updatesEnabled here http://stackoverflow.com/questions/22230244/display-time-automatically-u... but I was busy with making the 12h clock work, so I didn't dig up :( I'm considering to implement it, the less code, the better :)

RouvMU's picture

Nice idea :)

fravaccaro's picture

thanks :)