You are not logged in.
Pages: 1
Is it possible to add some spacing at the edges of the Xfce panel without adding a separator? A separator feels like too much spacing but without the separator the first and last elements of the panel are too close to the screen edge and it doesn't feel right
Last edited by espas (2022-07-28 18:55:37)
Offline
Yes, it is. Can you provide a screenshot of your panel? You can use xfce4-screenshooter.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Yes, it is. Can you provide a screenshot of your panel? You can use xfce4-screenshooter.
I want to know if there is a way to add some margin to the edges without adding a separator (like it has now).
Offline
Yes, there is. It looks like you have tasklist on the left and clock on the right. Add the following to your ~/.config/gtk-3.0/gtk.css (create if doesn't exist):
#tasklist-2 > .horizontal {
padding-left: INSERT_INTEGERpx;
}
#clock-button {
margin-right: INSERT_INTEGERpx;
}
The digit in the end of tasklist- can be found by hovering over its entry in Panel Preferences… → Items tab:
Restart the panel:
xfce4-panel -r
As long as you don't add new or remove existing items, you're safe.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Didn't work. I have 2 monitors and 2 panels and I need to do the same on the other one for the whisker-menu and clock. When I change the theme to Flat-Remix the Whisker Menu doesn't stay right on the edge of the screen, there is some padding between the menu and the edge, is there a way to change this in the theme settings?
Honestly, the tasklist thing doesn't annoy me. I just want to add some padding to whisker menu and both clocks.
Last edited by espas (2022-07-28 13:50:55)
Offline
Didn't work.
What do you mean by that exactly? Did you remove both separators? Did you try setting a higher value to see if affects anything? What's the content of gtk.css and what is your current GTK theme?
I have 2 monitors and 2 panels and I need to do the same on the other one for the whisker-menu and clock.
This information certainly would have helped from the beginning. How does the second panel look? Is it horizontal, vertical, a deskbar?
When I change the theme to Flat-Remix the Whisker Menu doesn't stay right on the edge of the screen, there is some padding between the menu and the edge, is there a way to change this in the theme settings?
There isn't. Only through GTK CSS.
Honestly, the tasklist thing doesn't annoy me. I just want to add some padding to whisker menu and both clocks.
I don't see any Whisker Menu in your screenshot, unless I'm blind or you deliberately cut it out.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Sorry, I just sent the second monitor panel. I thought the solution would be a simple thing that would fix it, didn't think it would be related to the elements in the panel.
I did remove both separators.
This is how both panels look like. Inside the red circles are the elements I need to fix (Whisker Menu and both clocks).
Btw, sending both panels make it very hard to see.
Last edited by espas (2022-07-28 15:51:39)
Offline
What version of Xfce are you running?
xfce4-about -V
I thought the solution would be a simple thing that would fix it, didn't think it would be related to the elements in the panel.
The simple solution is too use separators, or unlock the panels.
This is how both panels look like. Inside the red circles are the elements I need to fix (Whisker Menu and both clocks).
This is on Debian 11 (though it should get picked up on anything, as long as Xfce >= 4.14):
Btw, sending both panels make it very hard to see.
Right. You can select an area to screenshot and prevent unrelated stuff from showing up.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
What version of Xfce are you running?
xfce4-about -V
xfce4-about 4.16.1 (Xfce 4.16)
I must be doing something wrong because this isn't working
Do you know why this has no effect?
Offline
Are you restarting the panels afterwards?
The existing rules aren't that relevant, but it wouldn't hurt to comment them out and test again. Also try the name of their parents instead, i.e.
/* comment out everything above and just leave these two
*/
#whiskermenu-15 button { background-color: red; margin-left: 10px; }
#clock-12 button { background-color: red; margin-right: 10px; }
Again, replace these numbers with whatever appears as their internal names in your item list (even easier with GTK Inspector).
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
#whiskermenu-28 button { margin-left: 10px; }
is working for me, but the clock one isn't.
#clock-3 button { margin-right 10px; }
is not working. The internal names are right.
Offline
Did the background color change at least? You have two clocks, you need to use different selectors for each. How about:
#clock-3 button { padding-right: 10px; }
or
#clock-3 button { margin-left: -10px; }
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Did the background color change at least?
The background changes but neither the margin-right, padding-right or margin-left using negative numbers is working.
Offline
At least now we know that selectors "are working" and not "not working". At this point, I'd suggest creating a new user and trying out your panel layout there. Maybe even try moving the clock to another slot, away from the rightmost position and see if the right margin appears. Could be related to System Load Monitor (doubt). Or a simple typo in the selector (wouldn't hurt to double-check).
As a last resort, try:
#clock-3 button { border-right: 10px solid alpha(white, 0.0); }
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
As a last resort, try:
#clock-3 button { border-right: 10px solid alpha(white, 0.0); }
This command works. I don't understand what it is doing though.
Offline
Anyways, the issue is solved.
Thank you very much, KBar.
Offline
I don't understand what it is doing though.
It draws a transparent (value of alpha channel of any color set to 0 produces full transparency) border to the right of the selected element.
Thank you very much, KBar.
You're most welcome.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Pages: 1
[ Generated in 0.026 seconds, 10 queries executed - Memory usage: 607.13 KiB (Peak: 623.97 KiB) ]