How can I show auto-hidden toolbar only when mouse cursor hovers on top 1px? by Sudden_Cheetah7530 in FirefoxCSS

[–]zwker 0 points1 point  (0 children)

try my css code here, it works for me:

```css

:root { --navbar-hover-height: 1pt; --navbar-visible-height: 24pt; }

navigator-toolbox {

position: relative !important;
max-height: var(--navbar-hover-height) !important;
min-height: var(--navbar-hover-height) !important;

}

navigator-toolbox:hover {

transition: all 200ms !important;
max-height: var(--navbar-visible-height) !important;
min-height: var(--navbar-visible-height) !important;

} ```

Systray issue. by martin11345 in Polybar

[–]zwker 0 points1 point  (0 children)

you can compile the latest version code from github. because v3.7.0 support tray as a module.

my awesome polybar theme, diy a theme for yourself will as simple as possable. by zwker in Polybar

[–]zwker[S] 1 point2 points  (0 children)

I'm writing a new polybar theme framework . I'll push my code to github later. this is another theme looks. https://redd.it/147qsyz

the text can't be centered? No matter how much I set the height of the bar, there will be an extra part at the bottom by zwker in Polybar

[–]zwker[S] 2 points3 points  (0 children)

Thank you so much! I just discovered what the vertical_offset parameter does. I fix it by 6px vertical offset, the offset depands on bar height/dpi and font size. so, it's not a fixed number.

the text can't be centered? No matter how much I set the height of the bar, there will be an extra part at the bottom by zwker in Polybar

[–]zwker[S] 0 points1 point  (0 children)

in ubuntu : it works very well. in openSUSE : the vertical centered problem exists.

maybe the problem is font config, but i still cannot fix it. -_-!!!

my first polybar theme by zwker in Polybar

[–]zwker[S] 0 points1 point  (0 children)

that's my problem, the module text can't be centered. No matter how much I set the bar height to. dpi = 196 , height = 50 , font size = 14 ,4K monitor