-
Notifications
You must be signed in to change notification settings - Fork 604
Conversation
abose
commented
Feb 10, 2015
- Adding HiDPI assets[Minimize, maximize, close, restore button] for windows at 1.25, 1.5,2 and 2.5x scale factors.
- Changing Application manifest to enable HiDPI support.
- Loading title bar icons based on current system scale factor.
Adding HiDPI assets[Minimize, maximize, close, restore button] for windows at 1.25, 1.5,2 and 2.5x scale factors.
1. Changing Application manifest to enable HiDPI support. 2. Loading titlebar icons based on current system scale factor.
|
@JeffryBooher @redmunds Could you please take a look at this PR. |
appshell/cef_dark_window.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this out and put in global scope of this file.
|
Also please change the indentation from tabs to spaces. |
1. replaced tabs with spaces 2. fixed issues with 1.25x scaled assets 3. slight refactor
appshell/resource.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the naming convention 125X, 150X, and 250X versus 1X and 2X confusing. Maybe 1_25X, 1_50X, and 2_50X ?
|
Instead of having a different resource for each scale factor, couldn't we just get a really big scale of the image (say 200%) and scale it down with GDI+ to the size we need? I guess we would need to see how good the scaling algorithm is but if the OS adds the ability to scale to more sizes then this will become difficult to manage. It's actually already a little difficult to manage on the resource side as @redmunds points out. |
|
I tried scaling 2.5x images , but the downscaled images looked very bad in when scaled then down to 1.2x(the close button reduced to around 5 dots!). Also scaled up images looked pixelated. We just have 4 icons in the title bar to HiDpi-fi and i presume all the rest are svg in cef. With these being the only icons, i think we can keep these icons in these scale factors in the microsoft way untill they come up with some vector solution. |
1. Changing resource names