You are not logged in.

#1 2024-03-26 20:14:52

jmj
Member
Registered: 2023-12-10
Posts: 5

[SOLVED] Remove large black border from file-roller menu in XFCE

https://postimg.cc/1g87mHj1

I guess it's from gtk4's shadow rendering but how do I get rid of it? I'm using XFCE with compositing off(for gaming reasons).

Last edited by jmj (2024-03-27 15:18:07)

Offline

#2 2024-03-26 22:19:08

seth
Member
Registered: 2012-09-03
Posts: 51,641

Re: [SOLVED] Remove large black border from file-roller menu in XFCE

https://wiki.archlinux.org/title/GTK#Cl … ecorations - you might have to make this gtk-4.0 (also)

Not sure whetehr https://github.com/yshui/picom/issues/5 … -912830561 still applies.

Online

#3 2024-03-26 22:41:35

jmj
Member
Registered: 2023-12-10
Posts: 5

Re: [SOLVED] Remove large black border from file-roller menu in XFCE

Thanks. Actually the post down further got me a bit closer to my objective: https://github.com/yshui/picom/issues/5 … 1191880622

It now looks like this: https://postimg.cc/H8YVF5Xc

If I can figure out the selector for that little up arrow thing I think "background-color: transparent" should fix it.

Offline

#4 2024-03-26 22:54:37

seth
Member
Registered: 2012-09-03
Posts: 51,641

Re: [SOLVED] Remove large black border from file-roller menu in XFCE

https://docs.gtk.org/gtk4/class.Popover.html#css-nodes

popover arrow {
…
}

but idk what colors will control that ("background" is probably worth a shot)

Online

#5 2024-03-26 23:34:11

jmj
Member
Registered: 2023-12-10
Posts: 5

Re: [SOLVED] Remove large black border from file-roller menu in XFCE

I played around in the gtk inspector for a bit and got a little closer: https://postimg.cc/Jyy4Ccpv

I also figured out how to apply my preferred theme (Arc-Dark) so it'll look different than before.

That black background under the arrow is actually from

popover { background: ... }

However it can't do transparency without enabling compositing so I just had to move the popup closer to the top and make the arrow invisible.

Final CSS:

popover contents {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	box-shadow: none;
	margin-top: -12px;
}  

popover arrow {
	background: transparent;
	border-color: transparent;
}

Not completely ideal but it works for now.

Offline

#6 2024-03-27 13:03:52

seth
Member
Registered: 2012-09-03
Posts: 51,641

Re: [SOLVED] Remove large black border from file-roller menu in XFCE

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

You may also want to extend the wiki itr.

Online

Board footer

Powered by FluxBB