Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-06-08 15:24:42

TCx
Member
Registered: 2019-04-24
Posts: 7

Reduce size of `Draw window frame when hovering a button`

In Panel>Items>`Window Buttons`, I have `Draw window frame when hovering a button` selected.  However, I also reduced the size of buttons and padding in ~/.config/gtk.css, with the css scripts from https://github.com/ManFridayy/NewAdwait … tained.css.

This causes the window border frame to be larger than the actual window, as shown in the image below.  Is there a .css property that I can change to reduce the size of the black window frame?  Or is the black frame calculated before the .css rendering in the XFCE codebase perhaps?

Screenshot-from-2021-06-08-10-47-39.png

Last edited by TCx (2021-06-08 16:19:24)

Offline

#2 2021-06-09 01:10:04

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Reduce size of `Draw window frame when hovering a button`

It looks like the compositor is on. What version of xfwm4 are you running?

Do you get the same problem if you use the default Adwaita theme (or another theme without the tweaks)?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-06-09 02:22:50

TCx
Member
Registered: 2019-04-24
Posts: 7

Re: Reduce size of `Draw window frame when hovering a button`

I am only using the compositor under `Window Manager Tweaks`>`Enable display compositing` (I'm not sure if this compositor engine has a name.).  When I turn the compositor off entirely, this issue disappears and the border frame matches the gtk application border.  Turning any of the compositor features off individually do not solve the issue.

I am using xfwm4 4.16.1-1.

If I switch the theme from Adwaita (the theme in the picture above), but keeps the same gtk-contained.css file in ~/.config/gtk-3.0/, and reference the gtk-contained.css file with `@import url("gtk-contained.css");` in ~/.config/gtk-3.0/gtk.css, I get the same issue with the window frame for gtk applications.  I switched themes to both adapta and matcha to test this out.

If I remove the `@import url("gtk-contained.css");` in an otherwise blank ~/.config/gtk-3.0/gtk.css, the problem disappears.  However, I want to keep the gtk-contained.css file as it reduced the size of gtk applications.  I have stripped out all lines in gtk-contained.css that do not affect padding, height or margin here: https://gist.github.com/TerryChau/fd0f9 … 174529ed20.  This doesn't solve the issue with the window frame.

Last edited by TCx (2021-06-09 02:24:18)

Offline

#4 2021-06-09 11:15:22

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Reduce size of `Draw window frame when hovering a button`

That is odd. When I use the NewAdwaita theme code, I don't get this effect on my computer. Can you try this snippet in ~/.config/gtk-3.0/gtk.css instead (its what I use to reduce the size of the elements:

/* slimmer headerbars */
headerbar entry,    
headerbar spinbutton,    
headerbar button,    
headerbar separator {    
    margin-top: 0px;
    margin-bottom: 0px;    
}    
headerbar {    
    min-height: 0px;
    padding: 0;    
    padding-left: 6px;
    padding-right: 5px;    
    margin: 0px;    
    border: 0px;
} 
.csd .subtitle { font-size: 0; }
.csd .title { font-size: 9pt; }
.csd .titlebar>image { -gtk-icon-transform: scale(0.8); padding-left: 7px; }
.csd entry { font-size: 9pt; min-height: 20px;  }
.csd entry image { padding-top: 1px; padding-bottom: 1px; -gtk-icon-transform: scale(0.8); min-height: 0px; }
.csd .titlebar .titlebutton  {background-color: rgba(255,0,0,0); } 

.csd:backdrop, .titlebar:backdrop { background: #393f3f; }
.csd, .titlebar { background: #323737; }
.csd .titlebutton { -gtk-icon-transform: scale(0.8); }

Some of the colours, etc might be off, but I'm curious to see if you will get the same border with this code.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-06-09 11:50:38

TCx
Member
Registered: 2019-04-24
Posts: 7

Re: Reduce size of `Draw window frame when hovering a button`

Yep.  Same issue.

Screenshot-from-2021-06-09-07-48-35.png

Offline

#6 2021-06-09 23:56:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Reduce size of `Draw window frame when hovering a button`

Maybe create a bug report against xfwm4 and see what the developer says.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2021-06-10 03:17:34

TCx
Member
Registered: 2019-04-24
Posts: 7

Re: Reduce size of `Draw window frame when hovering a button`

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 10 queries executed - Memory usage: 546.38 KiB (Peak: 547.22 KiB) ]