Hello friends, I create a switch from a template widget by myseft but to be honest I am not fancy with the original pale blue color icons at all. Here is the code:
<div
ng-style="{
'background-color': itemValue('Light_GF_Living_Ceiling')=='ON' ? '#26FF33' : '#FE2E64'
}"
class="template-container"
style="top:0;bottom:0;left:0;right:0;position:absolute;border-radius: 10px;width:220px; height: 220px">
<div class="template-contents">
<div style="
margin-top: 0px;
margin-left: 0px;
border-radius: 10px;
border: 1px;
border-style: solid;
font-weigth: bold;
border-color: rgb(100,100,100) ;
width:220px; height: 220px;
">
<div class="row" style="height: 30px" ></div>
<div class="row">
<div ng-init='model={"name": "Light", "item": "Light_GF_Living_Ceiling", "hidelabel": true, "hideonoff": true, "iconset": "freepik-household","icon": "light-bulb-3","icon_size": "120" }'>
<widget-switch ng-model="model" />
</div>
</div>
<div class="row" style="
font-size: 2em;
font-family: Comic Sans MS, cursive, sans-serif;
text-align: center;
font-weigth: bold;
margin-top: 30px;
margin-left: 0px;
margin-right: 0px
">Light {{itemValue('Light_GF_Living_Ceiling')}}
</div>
</div>
</div>
</div>
Can anybody show me how to change the iconâs color? I suppose I need to add a parameter inside this line:
<div ng-init='model={"name": "Light", "item": "Light_GF_Living_Ceiling", "hidelabel": true, "hideonoff": true, "iconset": "freepik-household","icon": "light-bulb-3","icon_size": "120" }'>
But I donât know it. Can anybody can give me a hand? Thanks