xfce4-panel update broke border radius

Welcome to the forum! :vulcan_salute:

Please take a look at the links below. :point_down:


How to Request Support

Tips and Tricks

Resources

1 Like

Is it possible to give the XFCE taskbars/panels rounded corners? / Themes & Screenshots / Xfce Forums

You can use a tweak like this in ~/.config/gtk-3.0/gtk.css:

.xfce4-panel {
   border-bottom-left-radius: 10px;
   border-bottom-right-radius: 10px;
   border-top-left-radius: 10px;
   border-top-right-radius: 10px;
}

…adjust the values to suit and restart the panel for it to take effect:

xfce4-panel -r

Note: adding transparent separators to the front and back end of the panel help to prevent widget overlap.

If you have panels with different orientations (horizontal/vertical/deskbar), you can use the “.horizontal” or “.vertical” or
.deskbar" style class to target them:

.xfce4-panel.horizontal {background-color: red}
.xfce4-panel.vertical {background-color: green}
.xfce4-panel.deskbar {background-color: blue}

Round corners (#597) · Issues · Xfce / xfce4-panel · GitLab

I don’t think it’s worth adding an option either, but !125 (merged) will allow theming per panel, so let’s consider it a fix for this issue.
Round corners (#597) · Issues · Xfce / xfce4-panel · GitLab

CSS can control the 4 radius individualy, so we need 4 properties. We need to store them, and compare them to their CSS values. Then we need to solve the question : Which style provider should be chosen. Is it either prefer CSS, which messes up the setting, becouse they won’t take effect, or we prefer the settings, which messes the theme. That takes more processing power and memory. And contrary to what you believe that themes only change panel color and transperency, no, themes describe how widgets appear, their offset of 1 another , borders, padding. I believe that advanced styling should remain in CSS, So I won’t be implementing that, If someone else wants to i don’t mind.

1 Like