frang75 / nappgui_src

SDK for building cross-platform desktop apps in ANSI-C
https://www.nappgui.com
MIT License
498 stars 51 forks source link

Status of HiDPI / Dark theme support? #40

Open ChipZhang opened 1 year ago

ChipZhang commented 1 year ago

Does this library support dark theme or HiDPI? The Linux version is based on GTK+, the support for dark theme and HiDPI should come out of the box. The Windows version is based on Win32 API, and we know Win32 API does not support those features "out of the box". Does this library have already do any special work (or hook or hack) to support those features on Windows? If not so, are there any plan on it?

tnodir commented 1 year ago

"Support Dark and Light themes in Win32 apps"

frang75 commented 1 year ago

Hi @chipzhang and @tnodir, thanks for the feedback!

It would be nice to complete the current NAppGUI support for Dark Mode by implementing the Win32 side. https://nappgui.com/en/demo/products.html#h4.5

But unfortunately, I don't think it can fit into the development plan for this year. The planned new features are:

I am leaving this suggestion open for future implementation.

eriklins commented 11 months ago

Hey, wanted to raise an issue regarding NAppGUI on Hi-DPI displays and then found this issue - even though mainly related to Dark Mode so far... I took the below screenshot on a high resolution laptop with display scaling set to 150% and all controls/elements by NAppGUI are a bit blurry. Not sure how difficult to fix this would be, but since there will be more and more high-dpi screens/display being around in future, might be worth it.

2023-11-22 15_34_15-Products
petabyt commented 3 months ago

On a 4k monitor, Windows 11, blurry upscaled text. image +1 I tried some iup examples and it scaled fine... I don't know if they have code that handles it or if there's something you have to put in the resource files to get it to work.