We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Random UI .qml patches info request

asked 2017-09-22 16:23:14 +0200

remote gravatar image

updated 2017-09-22 16:23:50 +0200

Hi, I'm preparing myself to switch to Xperia X and have several questions on what files I should patch to get some things more convenient. Could you help?

  1. change date format in sms list and in sms thread (I want to have full dates a-la 22.09.2017, not Yesterday, or Friday)
  2. how can I hook incoming phone number name look-up? Suppose I have a .txt file with many local phone numbers of organizations. If the incoming number is not within Contacts list I want it to parse that .txt
  3. how can I add a 'delete' cross on incoming sms on events screen? Nowadays banks often send 'login' sms when I log into online banking. I would like to hit 'delete' when I receive them without going into sms app

Thanks!

edit retag flag offensive close delete

Comments

1

I've tried editing the files responsible for date/time formatting in both SMS and Email, as they use the same mechanism, which is one of Jolla's inventions and as such, there is little to no documentation on the subject. I've tried to replace it with a different technique which works for current time and date but yields odd results in SMS or Email UI - suffice to say, I came up with nothing!. A response from coderus to another dev: https://lists.sailfishos.org/pipermail/devel/2014-February/003528.html

No idea at all on your 2nd point, it's not something I've looked at before, sorry.

For point 3, take a look at a patch from Ingvix, found on Openrepos. It allows either dismissal of the notification or to delete the notification without entering the application.

https://openrepos.net/content/ingvix/patch-improved-notification-preview

Spam Hunter ( 2017-09-23 15:12:58 +0200 )edit
1

With any notification in events screen, just press and hold the screen inside/outside of any notification and a delete button appears on the left

Spam Hunter ( 2017-09-23 17:26:16 +0200 )edit

sorry, yes, you are correct, it doesn't, my mistake!

Spam Hunter ( 2017-09-23 18:16:26 +0200 )edit

1 Answer

Sort by » oldest newest most voted
6

answered 2017-09-23 11:36:39 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2017-09-23 11:36:39 +0200

Usually when I came across similar problems I start with finding the UI strings in pootle: https://translate.sailfishos.org/

Once you found the proper string you will find the qml file name at the left. Afterwards I make a find . -name <whaterver.qml> on your device in the /usr/share folder. Then I usually init a git repo in that folder and add the file to git. This will make creating the patch easier for you.</whaterver.qml>

After you are done with patching you should consider to upload them to the patchmanager: https://coderus.openrepos.net/pm2/

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2017-09-22 16:23:14 +0200

Seen: 383 times

Last updated: Sep 23 '17