-
Notifications
You must be signed in to change notification settings - Fork 402
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
Update tray icons to modern Windows style. #29
Conversation
Thanks for the PR! I assume these are not really suitable for Windows 7 and earlier? If so, we need to either
Based on a quick look at Makefile.am it seems that the icons are embedded into the openvpn-gui.exe binary. So option 2) would be the correct approach. That said, I have no idea how that can be done. |
Actually option 1 is the right one. It's just a matter of loading the correct resources at tray.c. |
I'm not that familiar with ico files and their windows7/vista compatibility, but this may be a good opportunity to bring the notification icons in line with microsoft's recommendations: Quoting from: https://msdn.microsoft.com/en-us/library/ee330740(v=vs.85).aspx We have only 16x16 icons and LoadLocalizedIcon does not check the system metric. Is it possible to extend this PR to do that? |
These work fine on Windows 7 and look somewhat better than the current ones. In the absence of additional resolutions in the .ico, I tested scaling these and look ok at the common 125% and 150% sizes as well. Has anyone tested these on other versions of windows? |
Yeah, it lacks a border unlike the current one. Yet the crisp lines look better, though the lack of border may not work well on light colored backgrounds. |
Yeah, it's definitely not ideal. My original 10-style icons also don't look so great in the status window. I've just finished some icons that better match the Windows 8 style. I've committed these new icons here. |
Updated with 32x32 icons for the Windows 8-style icons. |
Great. Should we keep the current icons on Windows XP? In case we don't, there's no need for additional code and this PR is ready to be merged, in my opinion. @aixxe needs to merge the "icons-win8" branch with his "master", so they can take part on this PR. Otherwise a new PR should be opened. |
The version in master doesn't support Windows XP anymore, so if it works on vista+ we are good. That said, just wondering why wouldn't these work on XP -- these are just 24 bit images with 8-bit alpha, aren't they? |
I think it's just a matter of style matching. No big deal. |
@aixxe : If you have the master files used for generating the 16x16 and 32x32 tray icons, could you please generate 20x20 and 24x24 sizes as well? That would help us support multiple dpi settings better: letting Windows scale the icons to match the dpi does not lead to good results. This was discussed in this Trac ticket Also if you could add the high resolution master (or a vector format file if available) to the repo, anyone could generate additional sizes on the fly in future, should the need arise. |
@selvanair: I've committed the updated icons to my fork here. Unfortunately I don't have a vector version as each icon was edited by hand. |
エイミー: Thanks. I will test these out. |
Quick change to the graphics to look a bit better on Windows 8 and Windows 10.