Change color of SpeedControl widget using css
- Wischi
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 3
02 Jan 2025 12:29 - 02 Jan 2025 21:18 #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:
speedcontrol {
color: #9498A0;
}
Also i tried spc_rapid and spc_feed instead of speedcontrol. No effect. How to call it correctly? Thanks
Last edit: 02 Jan 2025 21:18 by Wischi.
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 651
- Thank you received: 189
12 Jan 2025 11:32 - 12 Jan 2025 11:32 #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:
self.widgets.spc_spindle.set_property("color", Gdk.RGBA(0, 0, 255, 0))
Last edit: 12 Jan 2025 11:32 by HansU.
The following user(s) said Thank You: Wischi
Please Log in or Create an account to join the conversation.
- Wischi
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 3
12 Jan 2025 14:35 #318779
by Wischi
Replied by Wischi on topic Change color of SpeedControl widget using css
With the user command file it works perfect. Thank you!
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.052 seconds