Page 1 of 1

Rox-Filer Current File Bounding Box Change (solved)

Posted: Wed Aug 31, 2022 8:28 pm
by sfein1000

I searched around (both this site and general Google) and I'm not seeing a solution to my problem. I'm hoping someone with some good Rox-Filer knowledge might be able to help me.

I want to change the bounding box that shows the current file. It is a dotted/dashed box and I have trouble picking it out on one of my computers. Everything I found online discussed changing colors (and even then, was not specific to the current file box). I want something to make the box easier to see. Either by making it solid or increasing the number of pixels to make it fatter or both.

Is there a way to do this?

Thanks


Re: Rox-Filer Current File Bounding Box Change

Posted: Thu Sep 01, 2022 9:15 am
by HerrBert

@sfein1000
Q: Is this what you call a bounding box?

rox-focus.jpg
rox-focus.jpg (9.52 KiB) Viewed 850 times

If yes: It is a gtk-theme setting.

The attached archive contains this additional theme.
Unpack it to /root, than open the file /root/.gtkrc-2.0 in a text editor and add the line

Code: Select all

include "/root/.local/themes/rox/gtk-2.0/gtkrc"

You can change the color to your liking by editing the included svg file in a text editor, too.

[EDIT]
You have to reload your gtk theme or restart X after applying.

This may also apply to some other applications.
Also it does not apply to the list view in rox filer :?:


Re: Rox-Filer Current File Bounding Box Change [Solved]

Posted: Thu Sep 01, 2022 2:00 pm
by sfein1000

Thank you for this. That is the bounding box and I was drawing a blank on calling it the focus rectangle which would have been a lot less confusing, so thanks for naming your tar file to remind me :D

Though this solves my issue, I think you actually led me to a better solution which is list view. That gives a better focus coloring and would be an even better solution as I would not need the new theme.

Thanks for the info.


Re: Rox-Filer Current File Bounding Box Change

Posted: Wed Sep 07, 2022 4:31 am
by MochiMoppel
HerrBert wrote: Thu Sep 01, 2022 9:15 am

This may also apply to some other applications.
Also it does not apply to the list view in rox filer :?:

It's just a matter of choosing the right widget_class to make it work also in list view.
I haven't found the right one yet, but instead I made it applicable for all widgets because the problem of poor visibility exists for other elements too. I had particular problems to determine if a button has focus or not. Therefore I changed
widget_class "*ViewCollection*" style "rox" to widget_class "*" style "rox" and also changed the SVG to a red border without filling color: <rect height="10" width="10" fill="none" stroke="#f00" stroke-width="3"/>
So far I like the result very much. And yes, it applies to other applications, and that is good! Thanks for the hint :thumbup2:

gtk_focus.png
gtk_focus.png (66.02 KiB) Viewed 757 times