GaZaTu / x11-emoji-picker

Linux XServer emoji picker
MIT License
203 stars 7 forks source link

Default window width causes incorrect wrapping #27

Closed eclairevoyant closed 1 year ago

eclairevoyant commented 2 years ago

Was there a specific reason why w = 374 was chosen for the main window? It seems to render incorrectly on my machine. I'm not using KDE, just using a WM (qtile) under X. The width seems just slightly small enough to cause incorrect wrapping.

Example of out-of-the-box config (QWidget width = 354): default_settings

With the following custom QSS:

QWidget {
  width: 358
}

with_qss_change

I tried all possible combinations of useSystemEmojiFont and useSystemEmojiFontWidthHeuristics to no benefit, only the QSS seemed to help.

GaZaTu commented 2 years ago

mhhh idk it seemed to fit nicely on different systems but i guess you can never be sure. Its weird tho because the emojis should have fixed size. Would you be fine with a simple config entry like windowWidth to configure it yourself? I don't really know how to fix it in a proper way 😆

eclairevoyant commented 2 years ago

I'm fine with using the qss on my own systems, I'm just thinking of other users who might run into this in the future. I'll probably play around with the qt inspector later to see why it's wrapping on my system, and if the value can be calculated from some system parameters.

GaZaTu commented 1 year ago

this is completely fixed now