Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Styles for `sway/window` do not work

Open crabvk opened this issue 2 years ago • 4 comments

waybar: 10.0 sway: 1.9 wlroots: 17.1

I think the issue started with release of waybar version 10.0. As wiki shows I use the style

label#window {
    margin-left: 16px;
    color: #818384;
}

It worked with previous version, but now it doesn't.

crabvk avatar Mar 23 '24 22:03 crabvk

Same issue for me but for #workspaces button.persistent

y0nei avatar Mar 23 '24 23:03 y0nei

I've just noticed that the following styles work

#window {
    margin-left: 16px;
}

#window > * {
    color: #818384;
}

So, maybe it's the wiki that needs to be updated.

crabvk avatar Mar 23 '24 23:03 crabvk

The OP issue was caused by 16aced7f9ffcac1200473192712575afaa4e6513. This added more flexibility by moving the classes from the label to the enclosing box, but it's a breaking change.

I've edited the debug output in https://github.com/Alexays/Waybar/wiki/Styling to reflect that. I didn't see any other references to label. I've also edited https://github.com/Alexays/Waybar/wiki/Module:-Sway to reflect the changed style hierarchy. @crabvk do you see any other places that are incorrect?

@y0nei the problem you are reporting must have a different cause.

RobertMueller2 avatar Mar 26 '24 07:03 RobertMueller2

Nope, don't see any other issues.

crabvk avatar Mar 26 '24 08:03 crabvk

@crabvk since #3086 was closed as well, and you didn't see any other issues, can you close this one, please? Thanks :)

RobertMueller2 avatar Jun 30 '24 20:06 RobertMueller2