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

Text instead of flags #13

Open
nazar-pc opened this issue Jan 21, 2018 · 6 comments
Open

Text instead of flags #13

nazar-pc opened this issue Jan 21, 2018 · 6 comments

Comments

@nazar-pc
Copy link
Contributor

Would it be difficult to add an option to show text like US instead of flags?
It would fit monochrome themes much better.

@zen-tools
Copy link
Owner

Hi!

I had the similar discussion in the ticket #3.

In general, it's not so hard to draw text on the fly. But there are some expected issues:

  • Hard to guess the proper front/background colors by default.
  • Absent specific font on some systems.
  • The fonts smoothing.

Instead of that, I propose to use a shell script to generate images with text labels and keep gxkb as simple as possible.

@nazar-pc
Copy link
Contributor Author

I've tried to use GIMP for creating images, but text was blurry and very far from what proper text looks like. Will try gen-labels now.

@zen-tools
Copy link
Owner

zen-tools commented Jan 22, 2018

By the way, gxkb uses images with 24x24 pixels size. If your panel uses less value for systray icons size, you can get blurry text due to the image resize.

@nazar-pc
Copy link
Contributor Author

Yes, my panel is 24px and icons are 22px. I've tried making 22px images, but it doesn't work.
Tried gen-labels with my own font (customized it a bit) too, still blurry either way.

Ideally background, font and color should be configurable and directly rendered as text.

@zen-tools
Copy link
Owner

zen-tools commented Jan 22, 2018

It doesn't work because gxkb had hardcoded values for icon size :).

So, there are two options:

  • Change panel size to 26px and icons to 24px.
    or
  • Try to build gxkb from master branch. I think the commit 710b95c should help.

If you are using Ubuntu-like distributive, you can install the latest version of gxkb from ppa.

@nazar-pc
Copy link
Contributor Author

Master branch is much better, 22x22px icon is rendered as intended, thanks for that!
I can't reach the same rendering quality as with text using neither gen-labels nor GIMP, but it works reasonably well as a workaround.

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

No branches or pull requests

2 participants