- Posts: 44
- Thank you received: 0
Change color of SpeedControl widget using css
1 year 9 months ago #317869
by Wischi
Change color of SpeedControl widget using css was created by Wischi
Hello,
i am trying to change the color of the SpeedControl widget using css. It is used as the slider for feed/spindle override, the default color is orange. But I can't find out how to call it in css. I have the .css file set in the config ini and it is working if I change for example the color of labels or buttons.
This is what i tried:
Also i tried spc_rapid and spc_feed instead of speedcontrol. No effect. How to call it correctly? Thanks
i am trying to change the color of the SpeedControl widget using css. It is used as the slider for feed/spindle override, the default color is orange. But I can't find out how to call it in css. I have the .css file set in the config ini and it is working if I change for example the color of labels or buttons.
This is what i tried:
Code:
speedcontrol {
color: #9498A0;
}
Also i tried spc_rapid and spc_feed instead of speedcontrol. No effect. How to call it correctly? Thanks
Please Log in to join the conversation.
1 year 9 months ago #318757
by HansU
Replied by HansU on topic Change color of SpeedControl widget using css
As far as I know the SpeedControl cannot be styled by CSS.
You have to change either the glade file or do that in a user command file ( linuxcnc.org/docs/stable/html/gui/gmocca...l#_user_command_file )
with that content for example:
You have to change either the glade file or do that in a user command file ( linuxcnc.org/docs/stable/html/gui/gmocca...l#_user_command_file )
with that content for example:
Code:
self.widgets.spc_spindle.set_property("color", Gdk.RGBA(0, 0, 255, 0))
Please Log in to join the conversation.
Time to create page: 0.080 seconds
