Can I change the colors scheme in the gcode editor?

More
11 Nov 2023 10:27 #285094 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:

 
Attachments:

Please Log in or Create an account to join the conversation.

More
14 Nov 2023 20:40 #285419 by Trav328
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.

Please Log in or Create an account to join the conversation.

More
15 Nov 2023 11:21 #285487 by rodw
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

Please Log in or Create an account to join the conversation.

More
15 Nov 2023 18:02 #285531 by Aciera
I'm on a rip installation. I modified the file '<my_linuxcnc_rip_install_folder>/lib/python/gladevcp/hal_sourceview.py':

I added this:
        manager = GtkSource.StyleSchemeManager().get_default()
        scheme = manager.get_scheme("oblivion")
        self.buf.set_style_scheme(scheme)

here:
 

which give me:

 
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 07:33 #285585 by Aciera
We can also change the highlighting in the gcode preview from this:
 
 
to this:
 

by changing line 78 from:
        self.add_mark_category('motion', '#c5c5c5')

to:
        self.add_mark_category('motion', 'black')
Attachments:
The following user(s) said Thank You: tommylight, Trav328

Please Log in or Create an account to join the conversation.

More
28 Dec 2023 16:53 #289265 by HansU
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 or Create an account to join the conversation.

More
28 Dec 2023 18:51 #289271 by HansU
I implemented that now as a setting, so will be available soon ;-)

github.com/LinuxCNC/linuxcnc/pull/2811
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.181 seconds
Powered by Kunena Forum