-
Notifications
You must be signed in to change notification settings - Fork 212
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
Make metapath DPI Awareness #46
Comments
Not a win32 developer, but can it be fixed by one line build configuration? |
metapath currently use <gdiScaling>true</gdiScaling> https://docs.microsoft.com/en-us/windows/win32/sbscs/application-manifests#gdiscaling Any way, Notepad2 and metapath don't have high-DPI image resources (except for metapath's toolbar, see issue #89). |
A rough workflow (no time limit) to implement this and fix blur toolbar and file list on 4K monitor:
|
@Matteo-Nigro you can make other sized toolbar bitmap in recent days, I'm planing to port DPI awareness code after Spring Festival (in February), thanks. |
Ok, would we practically have to use the svg to create the various pngs in the right size? Would the dimensions be the same as we used for Notepad2? |
Yes just use exiting svg in |
Perhaps some of the icons could be taken from among the new ones in Notepad, just to give linearity in the style of the rest the existing ones might be fine already... |
Yeah, give two app same icon style is good, metapath's current icon were built from Visual Studio 2017 Image Library in issue #89. |
@Matteo-Nigro I'm sorry, just realized that Hi-DPI toolbar image is not required for porting DPI awareness code (that's how Notepad2 was developed in the past with the only 16px image), they are only needed for testing on 4K monitor after @WanderMax is back from Spring Festival (in February), so you can relax and make these images in recent weeks (or just in February as here still have enough time for v4.23.03). Following are some incomplete suggestions if you are going to make same styled icon as Noteapd2 and use existing Notepad2's svg:
|
OK I'll start preparing the work and let you know when I'm ready. 😉 |
Hi @zufuliu , I was checking that among the icons in the various folders of both notepad2 and metapath there seem to be some that are not used... While I'm sorting out the files, should I delete them? |
Please list used files you found, so we can discuss them. |
For metapath are used all except these that do not appear in the toolbar:
In Notepad2 I found these icons perhaps superfluous:
|
In the meantime I redid all the icons even the ones maybe not needed.... Some being identical to those in Notepad2 I reused them keeping the filename used in Notepad2 so as not to have 2 files the same but named differently just to adhere to the metapath description. I have already exported the pngs in the various sizes as well, so I could potentially be ready for the next step.. |
all
I will add a commit to delete Bootstrap's |
|
Hi @zufuliu , do you think I can reuse the back and forward icons of metapath also for Notepad2 or vice versa? On the other hand it is still 2 arrows only represented in a different style. This would allow us to delete 2 more files. |
Resue is good, but please post a screenshot here to see result on Scheme Settings dialog. current Prev.bmp and Next.bmp are very small (they have color depth 4) and scale well on large scaling settings (you can change your monitor's scaling settings and compare the scaled result). |
Certainly before any changes are made, I will update you with a comment here. I am sure I can achieve a good result while keeping the weight the same. As soon as I have a moment today I'll do the tests and post the screenshots. |
Hi @zufuliu, I will probably upload the screenshots today...I got ahead of myself with other things as well. Only question, in the |
I had saved the bmp at 4bit as you had done to limit the weight.. I'll try other colour depths. |
@Matteo-Nigro seems it's my fail, it's bit depth 4 and 16 color bitmap. save "Prev2_16x.png" and "Next2_16x.png" with MS Paint as 16 color bitmap should produce same bitmap as |
Thanks @zufuliu! As promised here's the screenshot of the new metapath toolbar and how the buttons I mentioned before look like using the icons already present. If you like them I will continue with the work and give you the PR. P.S. I would say that the python script should be ok too I had to modify it for the new paths and icon names. |
@Matteo-Nigro Looks OK to me 👍 |
Yes some of the icons have been only slightly tweaked and they look pretty much like the originals.... If we want to totally get rid of the licenses I can try to change them a little bit to get away from the originals... What icons do you suggest to vary? |
If redesign takes time, then we can just keep them (as it's free), current Prev.bmp and Next.bmp scales well than the thin arrows in your screenshot.
|
It wouldn't take too much time so much small changes can significantly change the icon making it for all intents and purposes different... For For the Other than that since you were thinking of changing the folder tree regarding images, could you already do that in the branch develop? Otherwise if I do the PR there is a risk that there are redundancies or duplicate images (given the different paths) |
Well @zufuliu, I remain possibly available if there is anything to be fixed....:muscle: |
@Matteo-Nigro Thank you, I'd say metapath's toolbar image resources is done. probable you can work on issue #585 (e.g. replace Run.ico with a small one made from 32x32\Launch.png, following is a 4KiB Run.ico!). |
Loading toolbar image for current DPI and auto scale toolbar image implemented by c7b580f. It's still unknown whether file list icon blur is fixed or not (Notepad2's "Recent File", "Select Scheme" and "Customize Scheme" dialogs may have same problem on 4K monitor). @Matteo-Nigro, @WanderMax, @elfsimulate please help test latest metapath built from develop branch when you have time, thanks. |
Hi @WanderMax, is latest version (e.g. at https://github.com/zufuliu/notepad2/actions/runs/4043139548) of metapath works on your 4K monitor? |
@WanderMax thank you 👍, old style icon on dialog is tracked in issue #585. @elfsimulate can you take time to test latest metapath (e.g. from https://github.com/zufuliu/notepad2/actions/runs/4043139548) on two monitors (check whether toolbar is disappeared on moving between them)? |
develop branch is merged into main, further development will be on main branch. |
No description provided.
The text was updated successfully, but these errors were encountered: