Widget Background Color
- Project_Hopeless
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 200
- Thank you received: 10
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?
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
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 200
- Thank you received: 10
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
-
- Away
- Moderator
-
Less
More
- Posts: 20498
- Thank you received: 6976
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