Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-07-23 23:41:28

TiZ
Member
Registered: 2009-03-05
Posts: 14

Can I get rid of the border on xfce4-panel 4.16?

Hi there. Ended up migrated to Xfce 4.16 because I installed Arch trying to track down an Xorg crash. The one pixel border that used to be optional and only came with setting the style to "none (system theme)" now seems to be mandatory on all styles. The inspector doesn't show anything I can mess with CSS-wise, but it does let me set a "borders" property on the main window. When I set it to 0, my panel tales up exactly 26 pixels as I intended, and it looks like it did in 4.14. Is there a way I can automate setting this property, or a better way I can get rid of the border?

Offline

#2 2021-07-24 00:20:30

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

Re: Can I get rid of the border on xfce4-panel 4.16?

You can add the css to ~/.config/gtk-3.0/gtk.css - that will override the theme's settings.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-07-24 02:47:44

TiZ
Member
Registered: 2009-03-05
Posts: 14

Re: Can I get rid of the border on xfce4-panel 4.16?

I'm not sure that I have accurately communicated the problem I'm having. I know how to handle GTK CSS, trust me.

The problem is that I am pretty sure this one setting can't be changed via CSS. I've poked relentlessly with the inspector and googled all around, and found nothing. All I have found is this property here:

qgUavEY.png

I would like to change it without having to recompile xfce4-panel.

Last edited by TiZ (2021-07-24 02:48:10)

Offline

#4 2021-07-25 12:49:12

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

Re: Can I get rid of the border on xfce4-panel 4.16?

I've been investigating this and I can't seem to find any way to change this setting using CSS or xfconf. I notice you've created a bug report - perhaps one of the developers will comment.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-07-26 01:05:23

TiZ
Member
Registered: 2009-03-05
Posts: 14

Re: Can I get rid of the border on xfce4-panel 4.16?

I actually ended up removing the section of code that decides what border mode to use and recompiling. I think that's a good place to implement an xfconf preference, might be a fun project to work on for a first pull request. smile

Offline

#6 2025-03-20 16:13:59

luigifab
Member
Registered: 2025-03-20
Posts: 2
LinuxFirefox 136.0

Re: Can I get rid of the border on xfce4-panel 4.16?

I'm not sure if it's same, but... are you speaking about the gray border-bottom of the top panel on the following screenshot?
Because I'm also searching a way to hide it.

panel.png

It's working with the following css code, but only with GtkInspector:

.xfce4-panel {
	border-bottom: 0;
}

Added later 1 h 09 min 46 s:
I found something interesting, because I have also a problem with Thunar...
With Thunar, I would like to add a border, but the application use custom CSS, see: https://github.com/xfce-mirror/thunar/b … ion.c#L700

gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (css_provider),
   GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);

To allow theme override application css, maybe it's better to use another priority?

STYLE_PROVIDER_PRIORITY_APPLICATION
A priority that can be used when adding a GtkStyleProvider
 for application-specific style information.

STYLE_PROVIDER_PRIORITY_FALLBACK
The priority used for default style information that is used in the absence of themes.

STYLE_PROVIDER_PRIORITY_SETTINGS
The priority used for style information provided via GtkSettings.

STYLE_PROVIDER_PRIORITY_THEME
The priority used for style information provided by themes.

STYLE_PROVIDER_PRIORITY_USER
The priority used for the style information from XDG_CONFIG_HOME/gtk-3.0/gtk.css.

Added later 2 h 33 min 06 s:
There is also a margin-bottom under the applications button:

appmenu.png

Last edited by luigifab (2025-03-20 18:21:56)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 541.57 KiB (Peak: 542.85 KiB) ]