You are not logged in.
Pages: 1
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
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
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:
I would like to change it without having to recompile xfce4-panel.
Last edited by TiZ (2021-07-24 02:48:10)
Offline
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
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.
Offline
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.
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:
Last edited by luigifab (2025-03-20 18:21:56)
Offline
Pages: 1
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 541.57 KiB (Peak: 542.85 KiB) ]