Page 1 of 1

Can not set icon

Posted: Sunday 15 September 2019 12:27
by RduPre
See image

I have fa-bolt icon to "huidig verbruikk" and "verbruik vandaag", but is shows the sun icon :(
In fact whatever I fill in as Icon, it does not use it and stays a sun

The config.js part is this

Code: Select all

blocks['518_1'] = {} 
blocks['518_1']['title'] = 'Huidig verbruik';
blocks['518_1']['icon'] = 'fas fa-bolt';
blocks['518_1']['width'] = 4;
blocks['518_1']['switch'] = true;
blocks['518_2'] = {} 
blocks['518_2']['title'] = 'Verbruik vandaag';
blocks['518_2']['icon'] = 'fas fa-bolt';
blocks['518_2']['width'] = 4;
blocks['518_2']['switch'] = true;
The custom.css is like this

Code: Select all

}
#newsTicker li {
font-size:20px !important;
}
.col-data span	{ font-size: 30px; margin-left: 25px; font-weight: 600; color: deepskyblue; font-variant: small-caps;}
/*.col-data .title 		{ font-size: 25px; margin-right: 25px; font-weight:220; color: dodgerblue;font-variant: small-caps;}*/

.containsicalendar {
}

.containsicalendar .items {
  font-size: 175%;
}

.publictransport div {
    font-size: 20px; 
}
   
.title { 
    font-size:20px;
    
    }
#newsTicker li {
font-size:20px !important;

Schermafbeelding 2019-09-15 om 12.05.58.png
Schermafbeelding 2019-09-15 om 12.05.58.png (57.83 KiB) Viewed 412 times

Re: Can not set icon

Posted: Sunday 15 September 2019 18:30
by HansieNL
Some icons are hard coded. There's already an issue logged for that: https://github.com/Dashticz/dashticz/issues/26

Re: Can not set icon

Posted: Sunday 15 September 2019 18:35
by RduPre
OK,

But I am pretty sure this was working on earlier releases

Re: Can not set icon

Posted: Sunday 15 September 2019 21:50
by Lokonli
RduPre wrote: Sunday 15 September 2019 18:35 OK,

But I am pretty sure this was working on earlier releases
I've tested setting the icons for three type of devices:
* P1 power meter
* Climate device (temperature, humidity, pressure)
* Energy device (actual, total today)

on the beta branch and the master branch.

This all works.

What is the device type of the device for which you try to modify the icons?
Did you change something in custom.js? If yes, can you post that here as well?
What is the exact Dashticz version you are using?
There might be something wrong in your CONFIG.js. Can you post it here? Then I'll have a look.

Re: Can not set icon

Posted: Sunday 15 September 2019 23:01
by RduPre
Hi,

You put me on the right track :-)

There was some old code in the custom.js what caused this

Thanks...

Re: Can not set icon

Posted: Sunday 15 September 2019 23:16
by Lokonli
Ok, good. Thanks for the update.

Sent from my SM-A320FL using Tapatalk