Widget Background Color

  • Project_Hopeless
  • Project_Hopeless's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
04 Oct 2020 14:44 - 04 Oct 2020 14:45 #184820 by Project_Hopeless
Widget Background Color was created by Project_Hopeless
So I'm adding buttons and subroutines to my Axis panel to control auto touch-off and some other stuff. I came across this old post which encouraged me to spruce my panel up a bit.

Fancy Buttons and Labels

My panel is like so.



My question is is there a way to change the background color of an LED widget?

<vbox>
    <hbox>
      <led>
        <halpin>"probe-in"</halpin>
        <size>25</size>
        <on_color>"green"</on_color>
        <off_color>"red"</off_color>
      </led>
      <label>
		<font>("Helvetica",20)</font>
        <justify>"left"</justify>
        <text>"Probe"</text>
		<width>10</width>
        <fg>"#ffffff"</fg>
        <bg>"#000000"</bg>
      </label>
    </hbox>
    <label>
	    <font>("Helvetica",12)</font>
	    <width>10</width>
        <text>"Closed (red)"</text>
        <fg>"#ffffff"</fg>
        <bg>"#000000"</bg>
    </label>
    <label>
      	<font>("Helvetica",12)</font>
		<width>10</width>
        <text>"Contact/Open (green)"</text>
        <fg>"#ffffff"</fg>
        <bg>"#000000"</bg>
    </label>
  </vbox>
<!--  Auto touch-off button  -->
	<button>
		<font>("Helvetica",12)</font>
		<width>20</width>
		<halpin>"z-touch"</halpin>
		<text>"Auto Z Touch-Off"</text>
	</button>
Attachments:
Last edit: 04 Oct 2020 14:45 by Project_Hopeless. Reason: more text

Please Log in or Create an account to join the conversation.

  • Project_Hopeless
  • Project_Hopeless's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
10 Oct 2020 14:37 - 10 Oct 2020 14:37 #185605 by Project_Hopeless
Replied by Project_Hopeless on topic Widget Background Color
.. or is there a way to change the background color of the "vbox" that contains all my buttons and LED?
Last edit: 10 Oct 2020 14:37 by Project_Hopeless.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
10 Oct 2020 15:34 #185612 by tommylight
Replied by tommylight on topic Widget Background Color
Not that i know of, but i know very little about it. I can make VCP panels for pretty much everything i need, but never bothered with colours, maybe it is time to do something about it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum