-->
Page 1 of 1

Canging meter's "analog" color

PostPosted: Sun Jul 23, 2017 4:15 pm
by Edi
I changed a meter-element into a round LED.
I also changed the background-color to fulfill my need.
- Many thanks to Electroguard, for some wonderfull CSS-examples! :D

But I have no clue, how to change the color and shape of the green "analog"-content?

here's my code:
Code: Select allLED1Scss = "background:red; width:20px; height:20px; border-radius:10px"
meter LED1S, 0, 2
cssid htmlid(), LED1Scss


You can see the result for three of these "LEDs" in the picture.
For the second "LED" the analog variable has the value "1".

In need to change that green color and I need to make the shape roud, like the border.
How to do that?

Re: Canging meter's "analog" color

PostPosted: Sun Jul 23, 2017 5:43 pm
by Electroguard
No, there seems to be a problem with the meter components green foreground 'gradient' that prevents changing styles to another colour or rounded corners... else it would have been handy to use as a slide switch or round LED.
No problem changing background style, but never managed to change foreground style.

Re: Canging meter's "analog" color

PostPosted: Mon Jul 24, 2017 11:33 am
by Edi
Thanks for your reply Electroguard!

@Michael M.: Could you please make it possible, to get more control over the meter's appearence?
This element could be so wonderful flexible and universal, if there where more might over it's design!