Re: [SailfishDevel] How to show toast notification?

2020-03-03 Thread Dylan Van Assche via Devel
I use the `transient` option to briefly show a notification.
It's the same type of notification you get when you plug in your phone in a 
charger for example.

https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/qml-nemo-notifications-notification.html/#isTransient-prop

Kind regards,
Dylan Van Assche


Sent with ProtonMail Secure Email.

‐‐‐ Original Message ‐‐‐
On Monday, March 2, 2020 1:05 PM,  wrote:

> In amazfish, I animate in a rectangle. Its all wrapped up in a function which 
> hides at using a timer. It all exists in the main application qml file with a 
> z value to ensure its above all pages. Unfortunatley, i dont think there is a 
> standardised way of doing this.
>
> Adam
>
> On Monday, 2 March 2020, Tamas Miklos wrote:
>
> > Hi,
> > I'd like to show a quick notification to the user of my SFOS app after 
> > selecting a certain PullDownMenu item. The notification doesn't need to be 
> > modal or have any buttons or require any user interaction. Much like how 
> > the Toast notification works in Android apps. The closest I got to 
> > something like that is showing a DockedPanel and then hiding it after 2 
> > seconds. But, it would be great to achieve that without DockedPanel.
> > Thanks,
> > Tamas
> >
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or
>
> --
>
> Sent from my Sailfish device
>
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to show toast notification?

2020-03-03 Thread Tamas Miklos
Hi Guys,

Thank you for your help and pointers.  My confusion was due to the fact that I 
couldn't place the DockedPanel into the right place after getting lost in the 
QML's I've got in my app :)

AFAIK infoBanner is not supported by SFOS, but I've managed to come up with a 
similar solution using a DockedPanel put inside my ApplicationWindow.  The only 
problem is that when it slides above the main window content, the opacity makes 
the alert text (Label) get mixed up with the text under it.  I suppose I either 
need to put something under the Label in my DockedPanel, or adjust the opacity 
of the DockedPanel to a higher value.

Regards,
Tamas

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to show toast notification?

2020-03-03 Thread szopin
Whoops, seen it in quickddit and assumed it was silica, but it is actually 
custom made:
https://github.com/accumulator/Quickddit/blob/master/sailfish/qml/InfoBanner.qml
If your app is gpl you can just borrow it I guess, seems to work well enough.

Regards,
szopin

On Tuesday, 3 March 2020, Tamas Miklos wrote:
> Hi Guys,
> 
> Thank you for your help and pointers.  My confusion was due to the fact that 
> I couldn't place the DockedPanel into the right place after getting lost in 
> the QML's I've got in my app :)
> 
> AFAIK infoBanner is not supported by SFOS, but I've managed to come up with a 
> similar solution using a DockedPanel put inside my ApplicationWindow.  The 
> only problem is that when it slides above the main window content, the 
> opacity makes the alert text (Label) get mixed up with the text under it.  I 
> suppose I either need to put something under the Label in my DockedPanel, or 
> adjust the opacity of the DockedPanel to a higher value.
> 
> Regards,
> Tamas
> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.or

-- 
Sent from my Jolla
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] How to show toast notification?

2020-03-03 Thread Bjoern Bidar
Hey,

I don't think toast notifications really fit into sailfish os.
A good replacement is a in app notification like when you can't send a message 
in the 
messages app or in storeman for bookmark.
Here is the qml source how storeman does this:
https://github.com/mentaljam/harbour-storeman/blob/
d9f44a6faf87ea648da82c76eff7bac1354668ad/qml/harbour-storeman.qml#L271[1] 

Greetings,

Björn



[1] https://github.com/mentaljam/harbour-storeman/blob/
d9f44a6faf87ea648da82c76eff7bac1354668ad/qml/harbour-storeman.qml#L271


signature.asc
Description: This is a digitally signed message part.
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org