Conversation
Avoid indicator positions shifting when displaying different values.
danirabbit
left a comment
There was a problem hiding this comment.
Instead of doing this we should use tabular numbers. There's a built-in style class for it in Granite https://github.com/elementary/granite/blob/c4f258db9b6028c8b793f01d2f8248800726ce0a/lib/Constants.vala#L269
I'm unable to get this working. Seems to need to set I've done the following in my local changes:
The labels still resize depending on the unit text length like "bytes" or "MB" and the numbers don't seem to appear monospace, what am I missing? Halp! |
|
I wonder if it's just OS9 being OS9 (something missing in the daily build) at the moment? Let me try real quick on my OS8 daily installation. |
Ah nevermind, it needs OS9 wingpanel-9 lib, so my status is still: Halp! |
|
@vjr search for tabular number in the codevase. I think I've used them in the statusbar widget. |
|
You don't need to use Granite 9 (and shouldn't yet!). This feature is available since Granite 7.7.0 |
|
@vjr did you try |
How does it look now? I haven't used granite, just looked at the following:
elementary/panel-datetime#246
elementary/sideload#115
@stsdc I've used both tabulars and I copied from: |
|
hi @vjr, please resolve the conflicts :) |
|
@stsdc you observed the contents (formatted speed string) of the indicator shifting around based on changing values and units, but if you see the icon (up/down arrows and the fixed But yes, the text within the speed indicators still shift around, is there a way for me to provide custom widgets within the wingpanel indicator Thanks! |
hi @stsdc i have tried my best to minimise the indicators shifting about and wasted spacing in 005b984 please take a look and let me know what you think? if i try the tabular number markup or monospace style the size of the text/numbers shrinks and im unable to clean that up. this is the best i can do lol, but let me know if there's a better approach? |


Avoid indicator positions shifting when displaying different values.
Refer:
elementary/sideload#115
elementary/panel-datetime#246