-
-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support CSS text-align #366
Comments
Atm text-align is not supported on gtk label, we need to wait a gtk update |
Seems like gtk does that with something other than CSS: https://developer.gnome.org/gtk3/stable/GtkLabel.html#gtk-label-set-justify So maybe adding |
But for your case, why not simply move module to the left/right block? |
The module is in the left block. But the actual text of the window title is centered and I wanted to make it left aligned. It's not too bad this way either, just a tweak to see if it felt better. |
Can you share me a screenshot? |
Fixed with 3c9b533 |
Thanks. Just tested it. Now it's left aligned when put in |
Would using GtkJustification to get I'd be happy to start a PR implementing this if it would be accepted. |
@MyNameIsCosmo You can implement a justification for Label modules. it'll be a great improvement :) |
So is there anything like this implemented? On a vertical bar, this would be very handy, as thing will look very messy if everything is left aligned. |
same problem as @flipflop133, need to be able to center the text in the network module (specifically the signal strength, but ideally the whole module so it also applies to the Ethernet versions of this) Any updates on how to do this? |
Hello, is there any workaround for this I can use? |
Same alignment issue as others when using a vertical bar. On a separate but related topic; is there somewhere I can find which css attributes do/not work? As far as I can see there is no mention of this in the styling wiki, so have lost days trying to get css working as expected (web dev by trade, but novice with linux). |
afaik, waybar is using gtk 3 css, so you can look here. |
For things like sway/window it would be nice to have CSS support for
text-align
to be able to adjust how the text is displayed in the bar.The text was updated successfully, but these errors were encountered: