changing color from cursor in g-code editor

More
19 Apr 2024 18:35 #298654 by CADdy
Hi all,
Qt-Dragon_hd: Is it possible to change the color of the cursor in g-code editor? It's color is black and the background of the line is dark gray. I have already searched in the style sheet editor (F12), but have not found anything.
 

Peter
 
Attachments:

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

More
19 Apr 2024 22:33 #298680 by cmorley
It is possible but is not so easy.
I will try to post a solution tomorrow and make it easier in the future.
Are you using linuxcnc 2.9?

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

More
20 Apr 2024 06:09 #298699 by CADdy
Hi Chris,
thanks a lot for your reply. That would be great if you would do that!
I'm using LinuxCNC 2.9.2 installed with the iso from linuxcnc.org/downloads/

Peter

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

More
20 Apr 2024 13:20 #298726 by cmorley
Try this.
Save the file here on your system:  YOURCONFIGFOLDER/qtvcp/screens/qtdragon_hd/qtdragon_hd_handler.py
Then the cursor should change color.

If there is an error you can delete the file and Qtdragon will start normally.
Attachments:
The following user(s) said Thank You: CADdy

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

More
20 Apr 2024 21:41 #298750 by CADdy
Hi Chris,
it's running! The cursor is now white :-) 

The text in your extension can also be found in the terminal :  
 

Thank you very much. You have helped me a lot!
Peter
 
Attachments:

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

More
20 Apr 2024 22:17 #298752 by CADdy
One more question: The existing file is 71 kb in size (I renamed it), the new file from you is much smaller. Does the missing content not matter?

Peter

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

More
21 Apr 2024 04:32 #298755 by cmorley
When you say existing file...did you have other customizations or did you copy the default handler file at some time?

This works by loading these changes over the existing default handler file.

Chris

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

More
21 Apr 2024 09:48 #298766 by CADdy
Hi Chris,

yes, i've copied the original file file to YOURCONFIGFOLDER/qtvcp/screens/qtdragon_hd/ some time ago. Qtdragon now fetches the original qtdragon_hd_handler.py from the folder /usr/share/qtvcp/screens/qtdragon_hd/ and extends it with the changes from your extension. Are my considerations correct?

Peter

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

More
21 Apr 2024 09:52 #298767 by cmorley
Yes that's correct.
The following user(s) said Thank You: CADdy

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

Moderators: cmorley
Time to create page: 0.314 seconds
Powered by Kunena Forum