Active Topics

 


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#1
Decided to create one super-thread for all the questions about Sailfish OS coding.

You can post random questions about coding here and help others to code.

Sailfish OS only.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 29 Users Say Thank You to coderus For This Useful Post:
catbus's Avatar
Posts: 887 | Thanked: 2,444 times | Joined on Jun 2011
#2
Hep

Well... I can start with newbie question...:

There is very good software for N9 and now it's source is available github under GPL3... So it is possible port to Sailfish OS... Is there any easy tools for doing that?

Yes. I have installed SDK for N9 before and one time to Sailfish too... But don't have any clue how different UI-things are, what to change etc...

Link to that software -> https://github.com/baleboy/timesheet

Thanks.

I use this everyday and one reason why still use N9 and not Sailfish -phone.

--
__________________
N9 - My Precious...

"Gods have mercy. Cats don't..." <- Kaotik@iotech
 

The Following 3 Users Say Thank You to catbus For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#3
Originally Posted by catbus View Post
Hep

Well... I can start with newbie question...:

There is very good software for N9 and now it's source is available github under GPL3... So it is possible port to Sailfish OS... Is there any easy tools for doing that?

Yes. I have installed SDK for N9 before and one time to Sailfish too... But don't have any clue how different UI-things are, what to change etc...

Link to that software -> https://github.com/baleboy/timesheet

Thanks.

I use this everyday and one reason why still use N9 and not Sailfish -phone.

--
No easy port qt4 -> qt5, but absolutely doable
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 7 Users Say Thank You to coderus For This Useful Post:
catbus's Avatar
Posts: 887 | Thanked: 2,444 times | Joined on Jun 2011
#4
Originally Posted by coderus View Post
No easy port qt4 -> qt5, but absolutely doable
Thanks...

Can you give me little more guidance or is it better use Google? Or just forget and wait if someone else will do it?
__________________
N9 - My Precious...

"Gods have mercy. Cats don't..." <- Kaotik@iotech
 

The Following 3 Users Say Thank You to catbus For This Useful Post:
Posts: 479 | Thanked: 1,284 times | Joined on Jan 2012 @ Enschede, The Netherlands
#5
Originally Posted by catbus View Post
Thanks...

Can you give me little more guidance or is it better use Google? Or just forget and wait if someone else will do it?
The UI-stuff, that is the QtQuick QML code, is conceptually nearly identical on Harmattan and SailfishOS, but will probably require a bit more rework, as the components on SFOS have different names, properties, features, etc. Still, most components probably have equivalents, so that is doable as well.

And of course it's not better to use Google. Try duckduckgo :P
 

The Following 4 Users Say Thank You to Fuzzillogic For This Useful Post:
Posts: 57 | Thanked: 96 times | Joined on Jul 2012
#6
1. do you have example of simple way to get current GPS location.
2. is it possible from native apps to call android share menu? if yes, how?
thank you
 

The Following 3 Users Say Thank You to Zero Six For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#7
Originally Posted by Zero Six View Post
1. do you have example of simple way to get current GPS location.
2. is it possible from native apps to call android share menu? if yes, how?
thank you
1. https://sailfishdev.tumblr.com/post/...with-one-click
2. https://openrepos.net/content/coderu...dalvik-control
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 5 Users Say Thank You to coderus For This Useful Post:
Posts: 202 | Thanked: 385 times | Joined on Jul 2018
#8
Thanks for this thread - my questions are continual ...
One thing I'm wondering about atm is the newer ApplicationWallpaper.qml. I previously could edit this file pretty easily to customize the bg of apps by just changing "...(0, 0, 0, .65)" line to whatever rgb and opacity values I want. Now, (starting with 3.0, I think), the opacity value still applies as expected, but the color values don't. It seems like it's only black, no matter what rgb values you enter. I figured it has something to do with the other info in the file, (like "effect: "glass" overlayColor: Theme.colorScheme === Theme.DarkOnLight", etc), but I have tweaked with no results. I also get the sense that the ApplicationWindow file plays a role, but it's a bigger file, and can't tell what most of it is referring to...
 

The Following 3 Users Say Thank You to levone1 For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#9
Originally Posted by levone1 View Post
Thanks for this thread - my questions are continual ...
One thing I'm wondering about atm is the newer ApplicationWallpaper.qml. I previously could edit this file pretty easily to customize the bg of apps by just changing "...(0, 0, 0, .65)" line to whatever rgb and opacity values I want. Now, (starting with 3.0, I think), the opacity value still applies as expected, but the color values don't. It seems like it's only black, no matter what rgb values you enter. I figured it has something to do with the other info in the file, (like "effect: "glass" overlayColor: Theme.colorScheme === Theme.DarkOnLight", etc), but I have tweaked with no results. I also get the sense that the ApplicationWindow file plays a role, but it's a bigger file, and can't tell what most of it is referring to...
please explain what is ApplicationWallpaper.qml and where it located? and example of your previous mods
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Posts: 202 | Thanked: 385 times | Joined on Jul 2018
#10
/usr/share/lipstick-jolla-home-qt/compositor/ApplicationWallpaper.qml;
previous mod shown in screenshot, from this thread - https://together.jolla.com/question/...odding-system/

I think I remember ApplicationWindow qml is in /usr/lib/qt5/qml/Sailfish/Silica/private
Attached Images
 
 

The Following 3 Users Say Thank You to levone1 For This Useful Post:
Reply


 
Forum Jump


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