How to remove widget borders in x window program using x resources?

I would like to change the ugly default gv GUI search. I used editres to get the x gv resource tree and tried to remove the button borders using the following settings:

GV.control.MButton.borderWidth: 0 GV.control.MButton.borderColor: white 

None of them work. Later I realized that the corresponding resource could be:

 GV.control.MButton.unsetFrameStyle: sunken/raised/ledged 

3 options, sunken, raised, made, change the frame style. But I can not find an option that makes the frame a simple line or just disappears.

Gv seems to be based on Xaw3d (I'm not sure). I do not know if these resources are provided by Xlib, Xt, Xaw or just gv itself. They are unlikely to be specific to gv. If provided by Xlib, Xt, or Xaw, I could change the appearance of similar window programs in the same way as soon as I found the necessary resources and options for installation.

So my question is how to find the correct x resources and options for removing widget x borders?

PS: editres provides only a list of resources, but not a list of options. appres and listres show a very short list of resource settings if I use them for gv.

+4
source share
2 answers

The following settings remove the 3D effect

 GV.control.MButton.bottomShadowContrast: 0 GV.control.MButton.topShadowContrast: 0 

The following setting changes the width of the shadow

 GV.control.MButton.shadowWidth: 1 

1 is the smallest value that is required. 0 does not work. Now only a thin line remains. Not exactly what I want, but better than nothing.

I figured this out by accidentally changing resources inside editres. It would be nice if someone could provide links to relevant documents.

+2
source

The Wikipedia article on Xt provides some useful context. You are looking for information on customizing the Xaw widget, although there may be a specific configuration in Xt.

+2
source

Source: https://habr.com/ru/post/1444495/


All Articles