Change size of notification KaiToast popup
#1
Hopefully quite a simple one, I'm trying to locate this in the code to patch together myself, but pointers/help appreciated.

I think it would be useful to be able to set a size of the notification popup. I am triggering this using the web JSON interface and function 'GUI.ShowNotification'
So would it be possible to add another parameter as size or size-multiplier

What I'm after, is being able to popup the notification popup with my custom image and set the size of the popup as the custom image I use is my webcam for when there is somebody at the door.
In the past I've 'hacked' at the skin to force the size of the popup to be large, but this means all notifications are large, so I think a trigger method somewhere probably in GUIDialogKaiToast.cpp to set a size and it will then take the size defined in the skin and multiply the dimensions by the parameter amount.

Happy to get into the code if somebody gives me the relevant pointers.
Andy - http://twitter.com/andyb2000 http://www.thebmwz3.co.uk/
HTS Tvheadend development (via http://github.com/andyb2000) On Ubuntu with ST STV0299 DVB-S2, Conexant CX24116/CX24118, Philips TDA10046H DVB-T (Freesat and Freeview in the UK)

XBMC via OpenElec on Dell XPS210
Reply
#2
hmm, you probably could write your own python addon which is creating a custom GUI overlay and trigger this addon via JsonRPC. Can't tell you how to do exactly as I'm no python guy, but maybe have a look at http://forum.xbmc.org/showthread.php?tid=182540
Reply
#3
Ah interesting, that python add on looks like it will do exactly what I need with a little alteration.
Thanks for the pointer, either way that's a better solution than altering Xbmc code to enlarge the popup
Andy - http://twitter.com/andyb2000 http://www.thebmwz3.co.uk/
HTS Tvheadend development (via http://github.com/andyb2000) On Ubuntu with ST STV0299 DVB-S2, Conexant CX24116/CX24118, Philips TDA10046H DVB-T (Freesat and Freeview in the UK)

XBMC via OpenElec on Dell XPS210
Reply

Logout Mark Read Team Forum Stats Members Help
Change size of notification KaiToast popup0