LBCrion/sfwbar

How can I reduce my bottom BAR height

Closed this issue · 11 comments

the default bar height is too high for me. I can't find any way to do this in the Man manual. Is there no way to change the bar's height?

good for me, Looking forward to this being implemented.

in my oppion,it is best to have a fixed height setting, just like the width. so that if there is a problem with any widget, button, grid, etc., you can clearly see where the problem is, in this way it is easy to configure the sfwbar for non-professional users.
Of course, this is the view from the user's point , and from the view of developer's point , there is maybe more trouble than a non-fixed width

This topic is a bit complex. Gtk accepts min-width and min-height css properties, but the widget may grow larger than these dimensions if it needs more space. sfwbar introduces -GtkWidget-max-width and -GtkWidget-max-height properties that limit the max size, but these are non-standard and won't survive the eventual migration to gtk4.

So, it won't be easy to say from just reading the stylesheet what size each widget will have. Images are particularly thorny. I used to have them scaled to MIN(min-width, min-height) size. In an attempt to make the bar more scalable, I tried to make them more responsive (i.e. make them honor vexpand/hexpand properties and scale accordingly), but looks like this broke your layout!

Do you think it would be better to revert this and go back to sizing images to min-width/min-height?

I would prefer to be able to specify a size directly, with no maximum and no minimum. but that's just what suits my personal preference. maybe most other people would prefer min or max.
limited to my level of CSS, I prefer to respond directly to the tweaks I've made in the config file. that's why i prefer to be able to specify a size directly,with no maximum and no minimum.
It doesn't matter if it destroys my layout, I can readjust it, I just don't know how to do it now, it seems to be unresponsive to my adjustments.

readjust it done. thanks

-GtkWidget-vexpand and -GtkWidget-hexpand, they are not friendly to new. The actual effect is not easy to be control
-GtkWidget-valign: center; It is much simpler

Is there a way to set up "-GtkWidget-valign: center " to global except for "progressbar#memory progress" & "progressbar#memory trough" & "progressbar#memory" ?

sfwbar introduces -GtkWidget-max-width and -GtkWidget-max-height properties that limit the max size, but these are non-standard and won't survive the eventual migration to gtk4.
Do you think it would be better to revert this and go back to sizing images to min-width/min-height?

now "-GtkWidget-max-width:" and "-GtkWidget-max-height“ have a problem wiht high cpu usage (git rev:4dffd40)
so I think it's probably better to return to using mini, anyway, it's going to prot to GTK4 soon, and MAX is gone, so there's no need to waste time on MAX, it's more valuable to spend time on GTK4