pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: difficulty adjusting vertical and horizontal panel sizes in gtk3 programs



Hi!

El 29/3/25 a las 6:44, PHO escribió:
On 3/29/25 05:57, Ramiro Aceves wrote:

Try creating a file ~/.config/gtk-3.0/gtk.css with:

   separator {
       min-width: 6px;
       min-height: 6px;
   }

But some applications seem to use custom widgets and ignore this. For Thunderbird you need to create a file ~/.thunderbird/{your-profile}/ chrome/userChrome.css with:

   hr[is="pane-splitter"][resize-direction="horizontal"] {
       width: 6px !important;
       cursor: crosshair !important;
   }
   hr[is="pane-splitter"][resize-direction="vertical"] {
       height: 6px !important;
       cursor: crosshair !important;
   }


Hello PHO,

Thanks so much for the tips and suggestions. I have tried both and I have not seen any change in thunderbird behaviour. I think I have done it well following your advice.

Oh I forgot that Mozilla disabled userChrome.css by default. Try this:

- Open "Settings" in the "Edit" menu.
- Choose the "General" tab.
- Scroll the window to the bottom. There is a button "Config Editor". Click it. - Type "legacyUser" to the search field. A configuration item "toolkit.legacyUserProfileCustomizations.stylesheets" will show up. It's set to "false" by default, so change it to "true".

Now you can customize the UI with userChrome.css.

Thanks so much PHO:

I'm amazed at the invaluable help I'm receiving from all of you. Thank you so much. This completely solves the problem. I can see now a "crosshair" when trying to resize panels or columns. It makes it easy now, at least for Thunderbird.!

The nasty think is that it only solves the problem for Thunderbird, but other gtk programs still suffer it, like GNURADIO.


Googling around I found this:

https://www.reddit.com/r/GTK/comments/1ir4kjc/gtk_3_and_4_pane_separators_and_handles_have/

And he says:

"I also accidentally discovered that this happens because of a bug: it is perhaps related to the redglass cursor theme I use and using large (40 pixel) cursors: if I switch the cursor theme for example to Breeze the handle/grip to resize panes (two-headed arrow) does appear.

Curiously if I switch back to redglass the handle continues to appear but with the Breeze shape (in XFCE), the other cursors go back to having the redglass shape. I have checked and redglass does have the two-headed arrow icon for the resize-pane handle/grip."

But If think it further, how can one apply a "theme" if for example, you do not use XFCE4 desktop and use something more basic like CTWM?

Anyway, do not expend more time with this, it is not really really important. Things are too complicated.
Many thanks.

Ramiro.

Regards


Home | Main Index | Thread Index | Old Index