Change color of SpeedControl widget using css

More
1 year 9 months ago #317869 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:

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.

More
1 year 9 months ago #318757 by HansU
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:

Code:
self.widgets.spc_spindle.set_property("color", Gdk.RGBA(0, 0, 255, 0))

Please Log in to join the conversation.

More
1 year 9 months ago #318779 by Wischi
With the user command file it works perfect. Thank you!

Please Log in to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum