AddictedCS / soundfingerprinting.duplicatesdetector

Duplicates detector application
Other
11 stars 4 forks source link

Enhancement: support for high-contrast-mode #2

Open MartinL0815 opened 7 years ago

MartinL0815 commented 7 years ago

Since I'm working using the high-contrast-mode (accessibility helper) with the high-contrast-#1 theme/design, I would like the executable (from CodeProject) to respect the system coloring supporting people with eye disabilities.

Currently the UI looks this way:

Main Window Results Window

My explorer (Windows 7, with enabled high-contrast-mode) looks like this:

Explorer in high-contrast-mode

The high-contrast-mode can be detected by asking the SystemInformation. Or it can be detected by analyzing system colors like this:

    bool bIsBlackHighContrast = 
        ::GetSysColor (COLOR_3DLIGHT) == RGB (255, 255, 255) &&
        ::GetSysColor (COLOR_3DFACE) == RGB (0, 0, 0);

    bool bIsWhiteHighContrast = 
        ::GetSysColor (COLOR_3DDKSHADOW) == RGB (0, 0, 0) &&
        ::GetSysColor (COLOR_3DFACE) == RGB (255, 255, 255);

I would really appreciate to see this application supporting accessibility features, too!

AddictedCS commented 7 years ago

Thanks for the code snippets, will see how this can be injected into existing source code.