retext-project / retext

ReText: Simple but powerful editor for Markdown and reStructuredText
GNU General Public License v2.0
1.88k stars 196 forks source link

HiDPI problems under Linux #466

Open KAMiKAZOW opened 5 years ago

KAMiKAZOW commented 5 years ago

All icons are blurry under Linux with a HiDPI screen.

I tried fixing the problem myself by applying the common Qt one-line trick from C++ to Python but that didn't help much: https://github.com/KAMiKAZOW/retext/commit/929a5f39068e9c78f81f9c45ec95ee1709dceb3e

Screenshot_20190629_143502

The upper screenshot it the status quo (see esp. the undo/redo buttons), the lower one with my crappy attempt at a fix (the close tab button is sharper but cut off).

mitya57 commented 5 years ago

Can you try if it is better when you set QT_AUTO_SCREEN_SCALE_FACTOR=0 environment variable?

KAMiKAZOW commented 5 years ago

No difference

KAMiKAZOW commented 4 years ago

cc @guoyunhe

KAMiKAZOW commented 4 years ago

496 is the same as my https://github.com/KAMiKAZOW/retext/commit/929a5f39068e9c78f81f9c45ec95ee1709dceb3e

Unless other things changed in the meantime, the result should render the same as shown in my screenshot.

mitya57 commented 4 years ago

Ok, reopening then. Any suggestions for a better fix are welcome.