NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC GUI's Changing the openGL colors in the Axis GUI

Welcome, Guest
Username: Password: Remember me

TOPIC: Changing the openGL colors in the Axis GUI

Re:how did you change the backround colors 12 Apr 2012 12:44 #19158

  • toplakd
  • toplakd's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
To bad.

Because I think it will be a success, even if it was for sale.

Dejan
The administrator has disabled public write access.

Re:how did you change the backround colors 12 Apr 2012 13:09 #19159

  • loboy
  • loboy's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Thank you received: 1
  • Karma: 5
I really don't know the process of releasing it and I have only tested it on my hardware. Right now I just do not have the time to figure out how to package it correctly for release. I would love to give it back to the community. I also ripped out code I did not need, and wrote some new stuff. I would probably have to fork it.

If you could give me some suggestions as to how to proceed, I will definitely look in to it.
The administrator has disabled public write access.

Re:Changing the openGL colors in the Axis GUI 12 Apr 2012 14:33 #19160

  • JR1050
  • JR1050's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 88
  • Thank you received: 1
  • Karma: 3
Thanks for the response.I would like to change the backround color of the lower box with the g code program in it from white to black and the text to either bright blue or green.I would also like to change the bluish geay back round of the basic gui to blue.

Eventually I would like to put the plot,dro,mdi,manual and tool offsets in their own tab,similar to the way the dro and plot is set up now.It would be similar to the way Fanuc uses soft keys.I have downloaded a couple TKinter tutorials and how to's.The axis file is just plain hard to follow.Thanks for your help.


JR
The administrator has disabled public write access.

Re:how did you change the backround colors 12 Apr 2012 17:30 #19162

  • KPA
  • KPA's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 31
  • Karma: 0
toplakd wrote:
To bad.

Because I think it will be a success, even if it was for sale.

Dejan

I agree, you've done a great job modernizing Axis, sort of breathed some life back into it. Not sure of the submission process, I think you need to ask one of the Board of Director types here, they should be able to answer that question.

Thanks

Jay
The administrator has disabled public write access.

Re:Changing the openGL colors in the Axis GUI 15 Apr 2012 11:17 #19222

  • loboy
  • loboy's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Thank you received: 1
  • Karma: 5
JR,

Yes, I agree that the axis.tcl file is hard to follow. I started out my revamp just like you, with absolutely zero knowledge of TCL. I spent the majority of my time commenting out the code and cleaning it up, making it easier to manipulate.


Most of the elements do not have attributes and use the default values assigned by TCL, and have to be added in order to change their appearance. My example elements may not be named exactly the same, but it should give you an idea.

Here is an example with attributes:
frame .gcodepanel.readout 
	-borderwidth 0 
	-highlightthickness 1 
	-highlightcolor "#000000" 
	-highlightbackground "#000000" 

Using the search function in gedit is very helpful in determining how all the elements are linked together.

Here is an example of a restyled button:
Button .controls.toolbar.estop 
        -activebackground "#ff0000" 
        -background "#ff0000" 
	-helptext [_ "Toggle Emergency Stop [F1]"] 
        -borderwidth 5 
	-font "Helvetica 12" 
	-height 2 
	-width 6 
	-highlightthickness 1 
	-highlightcolor "#000000" 
	-highlightbackground "#000000" 
	-takefocus 0 
	-padx 5 
	-pady 5 

Remember, my element names will not be the same as the original axis.tcl code.

For some reason the forum is not allowing backslashing in the code sections. Each attribute line break must end with a backslash.
Last Edit: 15 Apr 2012 11:39 by loboy.
The administrator has disabled public write access.

Re:Changing the openGL colors in the Axis GUI 15 Apr 2012 11:39 #19223

  • loboy
  • loboy's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Thank you received: 1
  • Karma: 5
Oh, and be sure to backup your original.
The administrator has disabled public write access.
Time to create page: 1.133 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.