Closed kStor2poche closed 6 months ago
for anyone wondering, I just found out that you can adjust icon size of the systray widget using the corresponding parameter as described here, though I still think an option to have a max-height/width yuck setting could be a good idea to avoid some convolution in the scss files. (Though I guess that may also be a gtk issue with the way they don't want you to control all the sizing aspects from scss ?)
Yeah, it's a gtk issue, eww can't really do much from its side, for some widgets you get more flexibility but not generally for most widgets
ok, thanks for confirming that ! I'll just close the issue, then.
Description of the requested feature
Hi, just so you know, I'm currently using the eww-tray-wayland-git AUR package (which uses this fork) though I think that's more of a general eww issue.
Or maybe that's just a skill issue from me, which I'd be glad to hear.
While I can restrict height of some boxes using padding in scss, I can't seem to do that with a box containing the systray widget and cannot endorse a maximum width or height using the yuck config file nor the scss, whether it is on the box widget or the systray widget directly.
Trying to add padding simply results in padding being added and the window being resized despite having a defined size using the geometry property.
Proposed configuration syntax
Maybe have that be the default behavior of width and height or add a max-width and max-height parameter like that :
Additional context
Here's the normal look of my bar :
and here with 10em padding top and bottom on the box containing the systray widget :
you can also notice that the method that consists in adding padding to the cpu, ram and bat circles works well when the systray's margin isn't bigger
Here's my yuck and scss, if that ever helps
;; powermenu (include './powermenu.yuck')
;; statusbar (include './statusbar.yuck')
@import './colors.scss'; @import './powermenu.scss'; @import './statusbar.scss';
tooltip { background: $color-bg; color: $color-fg; font-family: "SpaceMono Nerd Font Mono"; border-radius: 0; }