The rgba is what you want to play with, those four numbers are the red,green,blue values with the last number being the transparency amount. 0.8 is 80% solid and 20% see through.
You can use online color pickers to help you choose.
I went this way so you can change the shadow colour or any aspect of the shadow on groups of controls. You may want fans to be one colour and lights to be another.
Many Other ways you can play with the shadow are here:
New changes to the widget and the css files just uploaded and did some work to make the widget display better between large screens, tablets and mobile devices. Not perfect yet due to reusing of the basic widgets don’t allow % based resizing and also some don’t allow any resizing via css. Will look at it some more after moving to openhab 3.
finally i’ve tried everything and it’s almost perfect! just 3 questions:
is it possible to make your widget to look like the one on the left?
i mean move the item name (and make it in bold) a little bit high and aligned to left and also add the status of the item below the item name. also if is possible to increase the icon dimensions on the top left.
anyway, you did a fantastic job! next step is to make the widget for thermostats
You can easily do all those thing if you learn CSS, it would take you a few hours at the most. Have a look at the switch-glowing lines in the css files I provided and the absolute positions are what your after. The only things that would need a change to the widget are the icon size and the status, the rest are all possible with css tweaks. You can try the two css files to see how easy it is to create a new look. You can create a third.
@rubenfuser
Widget code is updated so now you can get it 100% how u want it to be with just CSS code.
yes i have almost finished to adapt your widget just one question, ihow can i remove transaprency from active/inactive buttons? i want solid white or solid black when button are ON or OFF…
i have spent almost an hour but i didnt find a way to change font size via css.I am interested to change font size only on your widget leaving everything else as it is.Thank you.
I imported this widget. Wanting to use it to control my wiz WiFi bulbs and smart plug. Made a new item and found it on the network and it says online . Linked the Chanel’s but I’m not getting a response from the light. Wiz app controls it but openHAB doesn’t. Although it shows on and off state
Do you have a suggestion of a good way to learn the CSS that is applicable to its use within habpanel? I’ve got pluralsight subscription access but there are of course a multitude of courses available - I could spend days on all of them
the good news is, CSS is used the same way for all websites and it is not unique for just habpanel. You learn it and it will help you if you ever want to do web design.