axis dark mode

More
4 years 7 months ago #237706 by chris@cnc
axis dark mode was created by chris@cnc
Of base this topic
forum.linuxcnc.org/22-pyvcp/42616-added-...ity-to-pyvcp-widgets
I modify my axis config in dark mode. If anyone wants too, here is the config.
Save this config in folder /usr/share/axis/tcl/
rename file axis.tcl -> axis.tcl.bak and rename new config to axis.tcl
for future color change, rename variable "grey20" to your choice.
Color list 
www.tcl.tk/man/tcl/TkCmd/colors.html
should work for 2.8 and 2.9 Version

Please Log in to join the conversation.

More
4 years 7 months ago #237731 by Aaroncnc
Replied by Aaroncnc on topic axis dark mode
I'm glad someone liked my changes.
Kinda wish a darker theme option was defualt option or a much easier way to swap to it.

Please Log in to join the conversation.

More
4 years 7 months ago #237771 by cakeslob
Replied by cakeslob on topic axis dark mode

Aaroncnc wrote: or a much easier way to swap to it.

usercommand version, got most of it
Code:
[DISPLAY] USER_COMMAND_FILE = usercommand_dark.py

Please Log in to join the conversation.

More
4 years 7 months ago #237831 by chris@cnc
Replied by chris@cnc on topic axis dark mode
Yes, this looks good. Its possible to set the background for "DRO" screen in userfile too? I am not able to do it.
In axis.tcl file line 1307 and 1308.
 

Attachment not found

 

Attachment not found



 

Please Log in to join the conversation.

More
4 years 7 months ago #237832 by robertspark
Replied by robertspark on topic axis dark mode
I made some bigger icons for my 24" 1920 X 1080 touchscreen called them the same names as PNG files scaled from svgs as a quick fix.

dro colour / color here
linuxcnc.org/docs/html/gui/axis.html#_change_the_dro_color

Please Log in to join the conversation.

More
4 years 7 months ago #237837 by cakeslob
Replied by cakeslob on topic axis dark mode
no problem. since everything is now broken out in this usercommand file, it should be a lot easier to configure other parts of axis as you wish. like making the buttons different sizes or changing their function, and with some computer hacking and inspiration from plasmac axis you could probably change them all with variables or use the colour selector widget

Please Log in to join the conversation.

More
4 years 7 months ago #237840 by robertspark
Replied by robertspark on topic axis dark mode
axis has begun growing on me of late for its clean simplicity for mill, router and lathe.

Please Log in to join the conversation.

More
4 years 7 months ago #237841 by cakeslob
Replied by cakeslob on topic axis dark mode
if you wanna mess around with the usercommand file (i recommend it over using axis.py or axis.tcl if you can avoid it) , here is some sample code I use for my touch screen endeavors, but my screen is much smaller at 800x480, but the ideas are the same, bigger scrolls, sliders and buttons

Code:
########### BUTTONS ########### #estop button W(".toolbar.machine_estop","configure" ,"-text","ESTOP" ,"-activebackground","red" ,"-background","red" ,"-helptext","Toggle Emergency Stop [F1]" ,"-font","mono 10 " ,"-compound","top" ,"-width","26" ,"-relief","flat" );

Code:
############################### ##### configure sliders ####### ############################## W('.pane.top.feedoverride.foscale','configure','-resolution','10','-length','170','-width','20') W('.pane.top.spinoverride.foscale','configure','-resolution','10','-length','170','-width','20','-sliderrelief','flat','-troughcolor','lightgray','-background','darkblue','-foreground','lightgray') W('.pane.top.rapidoverride.foscale','configure','-resolution','10','-length','170','-width','20') W('.pane.top.jogspeed.s','configure','-length','170','-width','20','-sliderrelief','flat','-troughcolor','lightgray','-background','darkblue','-foreground','lightgray')
Code:
########################## ######### config scroll bars ######### ################################ W('.pane.bottom.t.sb','configure','-relief','flat','-troughcolor','grey30','-background','grey90','-width','20','-elementborderwidth','1')
Code:
########### configure tabs ################# W('.pane.top.right','configure','-arcradius','8','-font','mono 12') W('.pane.top.tabs','configure','-arcradius','8','-font','mono 12')

Please Log in to join the conversation.

More
4 years 7 months ago #237843 by robertspark
Replied by robertspark on topic axis dark mode
thanks I'll give them a go.

the spindle CW and CCW / M3/M4 buttons were the first I changed to something touchable

Please Log in to join the conversation.

More
4 years 7 months ago #237844 by chris@cnc
Replied by chris@cnc on topic axis dark mode
Yes, my tired eyes like that. Thanks very much

Please Log in to join the conversation.

Time to create page: 4.433 seconds
Powered by Kunena Forum