sfwbar
sfwbar copied to clipboard
border for menus?
Is there a way to add a border for menus? Do you have a full list of the css properties that sfwbar responds to? The only examples of css properties for menus in the configs are #menu_item, alone and with image and label.
BTW: the alsa_widget is doing great, and my sfwbar cpu usage is down. I added long intervals to a few other things, such as the clock (updates once per minute now). However, I did see another crash, but didn't have my systemd core file collector daemon running at the time. It had something to do with MapAppId, which I was trying to use to get a thunderbird icon working. I fixed that instead by adding symlink to the right icon in my ~/.icons folder.
The closest I can get with #menu_item below is to add a border to each item, but what I'd like is a border around the full menu and not each item.
#menu_item {
border-radius: 3px;
border-color: @theme_fg_color;
border-style: solid;
border-width: 1px;
}
This is closer to what I want:
#menu_item {
border-left: 1px solid @theme_fg_color;
border-right: 1px solid @theme_fg_color;
}
Most of the theming in sfwbar is done via standard gtk3 CSS selectors (https://docs.gtk.org/gtk3/css-overview.html). For menues, you can use a menu
selector. I.e. if you want to set a border around menues, you can use
menu {
border: 1px solid @theme_fg_color;
}
Where sfwbar specific elements, we assign styles to widgets, these are accessible via #style. I.e. sfwbar menu items are grids, each containing an image and a label. These grids have a style menu_item, so you can theme it by name. For your own widgets, you can of course assign styles in the layout using style = <name>
Styles automatically assigned by sfwbar are listed in the man page (the very end of the page). But it looks like I missed menu_item in there. Will add it now.
Thanks!