maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Help me to code for Sailfish OS (https://talk.maemo.org/showthread.php?t=100817)

coderus 2019-08-20 16:28

Help me to code for Sailfish OS
 
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.

catbus 2019-08-21 17:32

Re: Help me to code for Sailfish OS
 
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.

--

coderus 2019-08-21 18:08

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by catbus (Post 1559397)
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

catbus 2019-08-21 19:31

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1559398)
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?

Fuzzillogic 2019-08-21 22:22

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by catbus (Post 1559402)
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

Zero Six 2019-08-22 02:47

Re: Help me to code for Sailfish OS
 
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

coderus 2019-08-22 09:24

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by Zero Six (Post 1559405)
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

levone1 2019-08-26 11:54

Re: Help me to code for Sailfish OS
 
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...

coderus 2019-08-26 18:18

Re: Help me to code for Sailfish OS
 
Quote:

Originally Posted by levone1 (Post 1559507)
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

levone1 2019-08-26 19:57

Re: Help me to code for Sailfish OS
 
1 Attachment(s)
/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


All times are GMT. The time now is 18:23.

vBulletin® Version 3.8.8