How to change the appearance of volume & brightness overlay in dark mode?

Solution 1:

I tried to use bundle id com.apple.OSDUIHelper to exclude OSD from the aqua-appearance fixup, but with no luck – like it ignores per-app defaults.

However I've got what I wanted with following steps:

  1. killall -9 OSDUIHelper; defaults write -g NSRequiresAquaSystemAppearance -bool NO
  2. Perform some action to show OSD, so it will started in normal configuration
  3. defaults write -g NSRequiresAquaSystemAppearance -bool YES

After that OSD becomes normal until reboot.

I didn't find any way to trigger OSD from a shell script to automate these steps, so I made the app: https://github.com/dstd/osdui-aqua-fix/releases/tag/v1