nikeee / HolzShots

A lightweight screenshot utility that gets out of your way.
https://holzshots.net
GNU Affero General Public License v3.0
16 stars 3 forks source link

High-DPI Issues in Flyout Notifies #93

Open nikeee opened 3 years ago

nikeee commented 3 years ago

It looks buggy.

nikeee commented 3 years ago

Maybe we can replace the flyout with Windows' native notifications, just like we've replaced a lot of stuff with the TaskDialog.

This would eliminate the upload progress. Maybe thats a thing of the past anyway (see #94).

nikeee commented 3 years ago

Pointers:

Seems weird that the package has UWP in its name, but seems to work with Winforms, too (and doesn't pull in UWP stuff).

nikeee commented 3 years ago

Progress Bars seem possible: https://docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/toast-progress-bar?tabs=builder-syntax https://docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/adaptive-interactive-toasts?tabs=builder-syntax

nikeee commented 3 years ago

Useful information for the hero image: https://stackoverflow.com/questions/46689877/uwp-toast-notifications-image-from-bitmap

nikeee commented 3 years ago

Most likely, we'd have to use this tem dir for the hero image: https://docs.microsoft.com/en-us/uwp/api/windows.storage.applicationdata.temporaryfolder?view=winrt-22000

Is this available in Win32 apps? If so, it would be nice if we migrate all temp folders to this path (except the settings and plugins).

nikeee commented 3 years ago

Info regarding appdata: https://docs.microsoft.com/en-us/windows/apps/design/app-settings/store-and-retrieve-app-data

nikeee commented 3 years ago

We're shelving the native notifications for now. They solve the DPI problem for us, but they seem pretty weird to use. Some features only seem to be available for appx-packaged applications, which we aren't and don't seem to be in the near future.

thewavelength commented 2 years ago

I'm against using native Windows notifications (or at least make them configurable) for one simple reason: if you turn them off in the system settings you wouldn't get any feedback.

IMO e. g. progress reporting and other flyouts in HS are not "proper" notifications like I as an end-user understand "notifications".

Speaking against what I just wrote: the builtin Windows 11 screenshot tool it uses the native Windows notifications.

nikeee commented 2 years ago

I also don't see this coming in the near future. Maybe some day.