Skip to content

Set Application Icon on windows#2992

Merged
j9ac9k merged 5 commits intopyqtgraph:masterfrom
j9ac9k:application-icon-on-windows
Apr 20, 2024
Merged

Set Application Icon on windows#2992
j9ac9k merged 5 commits intopyqtgraph:masterfrom
j9ac9k:application-icon-on-windows

Conversation

@j9ac9k
Copy link
Copy Markdown
Member

@j9ac9k j9ac9k commented Apr 20, 2024

This PR makes it so the peegee icon is visible on the taskbar on Windows. Furthermore, we set the fusion theme to applications created using mkQApp(), which handled dark mode detection on windows with Qt 6.5+.

What still isn't working is the peegee icon not showing up on gnome/kde desktops.

If using pg.mkQApp(), the theme is now set to 'fusion', and some better
handling of light and dark mode is set.  Some instances of
QApplication.paletteChanged removed now that its deprecated.
@j9ac9k j9ac9k force-pushed the application-icon-on-windows branch from a4cde0d to fe29e2e Compare April 20, 2024 03:12
@j9ac9k j9ac9k force-pushed the application-icon-on-windows branch from fe29e2e to fa95d6d Compare April 20, 2024 03:24
@j9ac9k
Copy link
Copy Markdown
Member Author

j9ac9k commented Apr 20, 2024

actually while this looked good on Windows, just loaded up macOS with pyqt 5.15, and the example app looks like rubbish there, ...needs more investigation before merging.

@j9ac9k j9ac9k force-pushed the application-icon-on-windows branch from fa95d6d to 50f03dd Compare April 20, 2024 03:35
@j9ac9k j9ac9k merged commit 469791c into pyqtgraph:master Apr 20, 2024
@j9ac9k j9ac9k deleted the application-icon-on-windows branch April 20, 2024 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants