- Posts: 4819
- Thank you received: 0
Can I change the colors scheme in the gcode editor?
2 years 11 months ago #285094
by Aciera
Can I change the colors scheme in the gcode editor? was created by Aciera
Is there a way to change the color scheme in the gcode edtior? I can't read the text in the highlighted line:
Attachment not found
Please Log in to join the conversation.
2 years 11 months ago #285419
by Trav328
Replied by Trav328 on topic Can I change the colors scheme in the gcode editor?
I just came here in search of the same answer, we're you able to figure it out ?
Gmoccapy and the editor seem to work great , but that color has to go. The bar or the font.
Gmoccapy and the editor seem to work great , but that color has to go. The bar or the font.
Please Log in to join the conversation.
2 years 11 months ago #285487
by rodw
Replied by rodw on topic Can I change the colors scheme in the gcode editor?
Sometimes colours in an application are set by the desktop theme.
I had a similar issue with sheetcam and changing the desktop theme fixed it (on linux)
Try playing atround with the desytop theme
I had a similar issue with sheetcam and changing the desktop theme fixed it (on linux)
Try playing atround with the desytop theme
Please Log in to join the conversation.
2 years 11 months ago #285531
by Aciera
Replied by Aciera on topic Can I change the colors scheme in the gcode editor?
I'm on a rip installation. I modified the file '<my_linuxcnc_rip_install_folder>/lib/python/gladevcp/hal_sourceview.py':
I added this:
here:
which give me:
I added this:
Code:
manager = GtkSource.StyleSchemeManager().get_default()
scheme = manager.get_scheme("oblivion")
self.buf.set_style_scheme(scheme)
here:
Attachment not found
which give me:
Attachment not found
Please Log in to join the conversation.
2 years 11 months ago #285585
by Aciera
Replied by Aciera on topic Can I change the colors scheme in the gcode editor?
We can also change the highlighting in the gcode preview from this:
to this:
by changing line 78 from:
to:
Attachment not found
to this:
Attachment not found
by changing line 78 from:
Code:
self.add_mark_category('motion', '#c5c5c5')
to:
Code:
self.add_mark_category('motion', 'black')
Please Log in to join the conversation.
2 years 10 months ago #289265
by HansU
Replied by HansU on topic Can I change the colors scheme in the gcode editor?
You can do this without need to change anything in the source code. See
forum.linuxcnc.org/gmoccapy/51124-gmocap...release-2-9-2#289264
Please Log in to join the conversation.
2 years 10 months ago #289271
by HansU
Replied by HansU on topic Can I change the colors scheme in the gcode editor?
I implemented that now as a setting, so will be available soon 
github.com/LinuxCNC/linuxcnc/pull/2811
github.com/LinuxCNC/linuxcnc/pull/2811
Please Log in to join the conversation.
Time to create page: 0.292 seconds
