Jolla-clock source code

Hello,

I’m trying to develop a native qt app, but struggling to show something on the lock screen with some interactive action. (after sleep as well).

Then I thought jolla-timer app might have a nice example, but I can’t seem to find the repository.

The jolla-timer app is unfortunately closed-source, but the front-end is written in QML so you can read the sources if you have an access to a Sailfish phone.

This remind me we should go ahead and ask Jolla which next app will be open-sourced :face_with_tongue:

10 Likes

What a shame. I’ll keep the post open in case they make it opensource. It seems what I want might be in the backend side. I can’t seem to even find view file for the lock screen in /usr/share/jolla-clock/.

Thanks!

1 Like

What makes you think the clock app has anything to do with showing the time on the lock screen?

Lock screen widget design ?

1 Like

oh, that might be what clock app is using. let me check. Thanks a lot!

/usr/share/lipstick-jolla-home-qt5/lockscreen/Clock.qml

Hmm, to me it looks as if lockscreen is a dedicate app with whatever screens that only Jolla wants.

Or maybe there is some way to show something there.

Check how those “ICE lockscreen apps/patches” do it.

1 Like

You can add stuff, but you’ll find the room is limited, for example, underneath the date, the weather icon and temp is shown.

I deliberately added some random text Clock.qml to demonstrate this, I left the text without a specific font size, if I add a font size, it gets plastered right over the weather icon.

I haven’t tried adding anything else, as we need to also consider the media player controls needing certain space to display and then if landscape is enabled stuff gets shifted about.

2 Likes

Thanks a lot for the images. How clock app works is that it takes over the all lock screen. I was thinking of adding a banner that can be closed so that I don’t have to care about what’s on there too much. It seems simply sailfish doesn’t allow such dynamic things for the users.

I did tell you you were barking up the wrong tree, but you did not listen.

I think the timer/alarm/calendar/whatnot full screen dismiss dialogs are also a separate thing, but I’m not familiar with the details on how those work.

So if that is what you are after here, then all of you might be barking on slightly wrong trees :wink:

6 Likes

I’m guessing it’s the same thing and clock app communicates via RPC or so. It might as well be that the whole things are in the same RPM but not like normal app which only writes to its own directory. But it’s proprietary, so you never know.

Stuff in lockscreen dir are interesting and might be related, but I don’t dare to experiment with it yet, I don’t even know how to flash the device.

Literal Jolla employee :backhand_index_pointing_up:

Actively working to stay uneducated :backhand_index_pointing_up:

Some people don’t want help.

3 Likes