Custom icons status update

Posted on
Fri May 27, 2016 11:15 pm
WouterK offline
Posts: 167
Joined: Aug 19, 2015

Custom icons status update

Hi,

I am using v1.3.2 of Domopad and it works very good. Recently I added some custom icons to represent some devices; icon.png and icon+on.png
Adding these to a controlpage the status icons change when viewed in a browser (on a mac and also on the android device).
Opening the same controlpage in Domopad these icons do not change when the status is changed.
Do I have to change a setting to make this possible?

Thanks.
Regards,

Wouter

Posted on
Sat May 28, 2016 8:25 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Custom icons status update

Do I have to change a setting to make this possible?

No, 99% of the time this situation is because you have your original image named incorrectly... It should not be named "icon.png" but rather "icon+.png". And this is what should be selected in the Control Page's dialog. The image name ending in a + is a trigger to Domotics Pad that it needs to load state-specific images.

Adam

Posted on
Sun May 29, 2016 12:11 am
WouterK offline
Posts: 167
Joined: Aug 19, 2015

Re: Custom icons status update

Hi,

Thanks for the tip! The icons now also change in Domotics Pad.
Is this specific for Domotics Pad?

Regards,

Wouter

Posted on
Sun May 29, 2016 4:07 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Custom icons status update

WouterK wrote:
Hi,

Thanks for the tip! The icons now also change in Domotics Pad.
Is this specific for Domotics Pad?

Regards,

Wouter

It's not specific to Domotics Pad.

For custom values, there generally needs to be an image+.png file in addition to the others (image+1.png, image+2.png). It seems that the only exception to this rule is binary states (image.png, image+on.png, image+true.png) where the image.png file (the one without the plus sign) is presumed to be off (or false.)

Custom Images on Control Pages

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun May 29, 2016 4:24 am
WouterK offline
Posts: 167
Joined: Aug 19, 2015

Re: Custom icons status update

My first attempts worked by accident :D

Thanks for the explanation. Now that I know how it works I can expand my control pages with changing status icons.

Regards Wouter

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests