Detect notification area background color? - c#

I have to say I am a bit shocked the answer to this problem isn't easier to find. I have an application that creates a notification tray icon. When I am running my app on Windows 10 the notification area background color is black. So I am using a white version of my logo for contrast. Running the same program on Windows 7 the taskbar background is dark, but the notification popup has a white background. Thus using my white icon doesn't work?
My first thought was to determine if I am on Windows 10 and if I wasn't to use a blue version of my icons. Sounds simple enough until you try to detect the OS version. For some reason Microsoft has decided that the OSVersion information will just return the Windows 8 version number from now on (if you are on Windows 10)?!?! Seriously? The suggestions to detect Windows 10 are to look at registry keys, or make unsafe calls to kernel level api's?
Other application developers have had to run into this issue. What is the solution? How do you managed your notification tray icons when they have to work when on a white background and black? I would prefer not to make the blue images background white, since the box around the icon won't look very nice.

Related

How to transparent the main window in WinUI-3

Do not judge strictly. I just started learning WinUI. Using WPF I could make the main window transparent right in the XAML markup. Is it possible to make the main window transparent using Reunion? I need this to make the program window of my shape.The window object has so few properties. I only found how to change the TitleBar.
And more:
Can I use reunion to make rounded corners on windows 10 as on windows 11?
Does Mica material work on windows 10?
Transparent windows are not yet supported but it's tracked as a feature request on GitHub.
Can I use reunion to make rounded corners on windows 10 as on windows 11?
No, at least not using the AppWindow layer that is used to produce the rounded corners in Windows 11.
Does Mica material work on windows 10?
No, Mica is exclusive to Windows 11. At least for now.

Allow for acrylic to be not turned off when focus is lost from app?

Acrylic is by far the best thing in fluent design system, it just makes the app looks so good. And I am totally fine with optimization of it; turning of the transparency when battery is in saving mode.
But I don't want it to be turned off when the user looses the focus over the app. Is there any workarounds for it?
When the user looses the focus over the app, acrylic is turned off and fallback color is used!
Unfortunately acrylic background effect is currently limited to run only when the application window is active, as stated in the documentation
In addition, only background acrylic will replace its transparency and texture with a solid color
When an app window on desktop deactivates
When the UWP app is running on phone, Xbox, HoloLens or tablet mode

How to create Icons for a Desktop Application in Windows 10

I have an application which has been used in Win7. I am now moving to Win10. It is a standard application and not a universal one.
My application icon look ugly in the Windows 10 app menu and in the start menu (mainly because it is not a flat icon with transparent background). Can someone point me to a guide on what kind of icons .ico/.png files I am suppose to make for my application in a Windows 10 environment.
I imagine I could make a flat white icon with a transparent background but what happens when themes change or the file is viewed in a white background?

Draw on desktop wallpaper

Any way to draw on the wallpaper in windows 7 with aero enabled? I saw the post for doing it in xp/7 without aero but I'd rather keep it enabled if possible. I also tried the windows 8 approach but that doesn't seem to work in 7 and I can't figure out the correct messages to send.
EDIT:
How to effectively draw on desktop in C#? only works when aero is disabled. When it's enabled the icons and wallpaper are merged so it's impossible to just draw on the wallpaper. The personalization window seems to do it when fading between wallpapers but I've been unable to figure out what to send so far. Replicating the messages Spy++ logs just seems to freeze the wallpaper so it's unable to be changed until explorer is restarted.

Design Window Phone app screen size

I'm developing app for Windows Phone. I have a Lumia 1320 and I noticed that apps on my device are wrongly seen so as many apps on the Store (like WhatsApp!)
ScreenHeight is wrong because, when task manager is open, I see a black border (especially if there is an ApplicationBar) on bottom and font size is bigger then the settled size on settings.
There is a plug-in or something in SDK for developing apps for 6" screen or there is something I miss?
Thank you all!
You can change the resolution of the device that the UI designer uses by using the side bar (on the left usually).
Here's a screenshot for you. When use correctly you can get a feel for what you app will look like on different phones.

Categories

Resources