Skip to content
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

Status bar items doesn't fit #953

Closed
spvkgn opened this issue Jun 13, 2017 · 7 comments
Closed

Status bar items doesn't fit #953

spvkgn opened this issue Jun 13, 2017 · 7 comments

Comments

@spvkgn
Copy link

spvkgn commented Jun 13, 2017

There are odd spaces between:

transgui-statusbar

@PeterDaveHello
Copy link
Member

@spvkgn what's the version and platform you are using please?

@spvkgn
Copy link
Author

spvkgn commented Jul 5, 2017

@PeterDaveHello I'm using 5.7.0 on Ubuntu 17.04

@PeterDaveHello
Copy link
Member

@spvkgn what's your desktop environment please?

@spvkgn
Copy link
Author

spvkgn commented Jul 5, 2017

@PeterDaveHello MATE 1.18

@leonsoft-kras
Copy link
Contributor

I watched recently, for the statusbar, the author assigned a fixed size. Automatic selection of the width of the elements is not provided. So everything is not so simple.

antekgla added a commit that referenced this issue Nov 8, 2017
Now in transgui.ini there a section [StatusBarPanels] to change the width of statusbar panels.
@antekgla
Copy link
Contributor

antekgla commented Nov 8, 2017

I address this problem with this commit b6b9f7b

I set the width of the panels of the statusbar to adapt to English labels (+ data).

The problem is what sometimes with the translations this labels are wider what english ones and the panel's width is wrong.

I study the possibility to adapt automatically the label's widths to the label+data, but like the data is dynamic and constantly refreshing that would result in a statusbar constantly changing the panel widths what is not good. And frankly also require a lot of more of programming work 😆
Also the languages are so many what it is not possible to give to the panel a width what adapts to all of them.

So my solution is to give to the user the possibility to change the panels width the value their want.
For that now TransGUI create a new section in transgui.ini named [StatusBarPanels] with values from 0 to 7 what the user can change to anything fits his language. 0 is the left most panel and 7 is the right most panel.

[StatusBarPanels]
0=327
1=152
2=152
3=130
4=130
5=130
6=130
7=130

So if your panel is too short to display the full label+data then increase his value and see what happens. Of course you have to change transgui.ini when TransGUI is not running.

@antekgla
Copy link
Contributor

antekgla commented Nov 22, 2017

I update this fix 2e7c2d5
Now the statusbar panels widths are tied to the screen resolution what seems the logic thing to do.
If you change your screen resolution the panels widths are reset to the default.
So if you customize your statusbar panels widths and for some reason you have to change your screen resolution and later come back, please copy the [statusbarpanels] section of your transgui.ini because would be erased and re-created.

Edit: this check is only made it when you execute TransGUI, So if you change your screen resolution and revert while TransGUI is running, the panels would be remain the same widths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants