[Qt] fix small buttons/missing icons in the toolbar (Doppelgänger) (#3413)

* Qt: use lambda for colorizedIcon in main_window and game_list_frame

* Qt: enable AA_UseHighDpiPixmaps for better looking icons

* Qt: use iconSize instead of sizehint for linux, add some comments
This commit is contained in:
Megamouse 2017-09-10 19:46:39 +02:00 committed by Ivan
parent 4b9fa8ec6d
commit f0358f85fc
4 changed files with 53 additions and 25 deletions

View file

@ -23,7 +23,12 @@ int main(int argc, char** argv)
logs::set_init();
#ifdef _WIN32
// use this instead of SetProcessDPIAware if Qt ever fully supports this on windows
// at the moment it can't display QCombobox frames for example
// I think there was an issue with gsframe if I recall correctly, so look out for that
//QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
SetProcessDPIAware();
WSADATA wsa_data;
WSAStartup(MAKEWORD(2, 2), &wsa_data);
timeBeginPeriod(1);
@ -37,6 +42,8 @@ int main(int argc, char** argv)
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
#endif
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
rpcs3_app app(argc, argv);
// Command line args