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

Work around too much stretching of close button icon on Qt 5.12.8 #2674

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

10110111
Copy link
Contributor

In Qt 5.12 after #2660 the close button's icon appears to be overly stretched, like in the screenshot below. This happens in both scaled and unscaled UI.

This patch works around this by requesting a downsampled 16×16 pixmap from the original icon and rendering from it—only on Qt<5.13. This works fine for unscaled UI, but still looks ugly for scaled one:

close-bad-remains

I think this might be acceptable if we assume that Qt 5.12 is only going to be used on low-end systems which will not have high-DPI monitors anyway.

@github-actions
Copy link

Great PR! Please pay attention to the following items before merging:

Files matching src/**/*.cpp:

  • Are possibly unused includes removed?

This is an automatically generated QA checklist based on modified files

@alex-w alex-w added this to the 1.0 milestone Sep 20, 2022
@gzotti
Copy link
Member

gzotti commented Sep 20, 2022

Qt5.12.8 is the version used for our Windows releases. Alexander said the ANGLE does not work properly with later versions. Most users will hopefully be able to step to Qt6-based builds, so a tiny bit of blur should be acceptable.

@alex-w
Copy link
Member

alex-w commented Sep 20, 2022

Qt5.12.8 is the version used for our Windows releases. Alexander said the ANGLE does not work properly with later versions. Most users will hopefully be able to step to Qt6-based builds, so a tiny bit of blur should be acceptable.

AppImage for linux is based on Qt 5.12.8 too

@alex-w alex-w merged commit 765a1c3 into Stellarium:master Sep 20, 2022
@10110111
Copy link
Contributor Author

AppImage for linux is based on Qt 5.12.8 too

Is there a good reason for this?

@alex-w
Copy link
Member

alex-w commented Sep 20, 2022

AppImage for linux is based on Qt 5.12.8 too

Is there a good reason for this?

Ubuntu 20.04 have Qt 5.12.8 in standard repos

@10110111
Copy link
Contributor Author

Ubuntu 20.04 have Qt 5.12.8 in standard repos

Isn't the point of AppImage to be independent from the repos and self-contained?

@alex-w
Copy link
Member

alex-w commented Sep 20, 2022

Ubuntu 20.04 have Qt 5.12.8 in standard repos

Isn't the point of AppImage to be independent from the repos and self-contained?

Yes, but it's depend on libc, so, if AppImage built on Ubuntu 22.04 then if cannot be run on Ubuntu 20.04 for example. Ubuntu 18.04 is good choice, but, cmake and Qt are too old and we cannot use it...

P.S. Of course I can try get the AppImage on Ubuntu 18.04 to run the package on RHEL/CentOS

@10110111
Copy link
Contributor Author

On Ubuntu 20.04 you can use Qt 5.15 from ppa:beineri/opt-qt-5.15.4-focal. I've been using this series of Qt5 PPAs for years.

@alex-w
Copy link
Member

alex-w commented Sep 20, 2022

On Ubuntu 20.04 you can use Qt 5.15 from ppa:beineri/opt-qt-5.15.4-focal. I've been using this series of Qt5 PPAs for years.

Is there fixed a huge RAM usage for lconvert/lupdate tools?

@gzotti
Copy link
Member

gzotti commented Sep 20, 2022

It became much better in 5.15.2, but still uses a lot. I have no access to later versions.

@alex-w alex-w added the state: published The fix has been published for testing in weekly binary package label Sep 22, 2022
@github-actions
Copy link

Hello @10110111!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w removed the state: published The fix has been published for testing in weekly binary package label Oct 1, 2022
@github-actions
Copy link

github-actions bot commented Oct 1, 2022

Hello @10110111!

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

@10110111 10110111 deleted the fix-qt512-close-button branch October 1, 2022 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants