mre / timelapse

🎬 Native macOS app for recording timelapse videos of your desktop.
https://endler.dev/2020/timelapse/
Apache License 2.0
214 stars 18 forks source link

White macOS icon #27

Closed mre closed 4 years ago

mre commented 5 years ago

Feature Request Type

Description

Maybe there is a way to detect if a user is on a dark theme on macOS and use a white icon accordingly?

cmangla commented 4 years ago

As a temporary fix, you could remove the alpha pixels from the icons and replace them with white. This way they'll be visible in a black background.

cmangla commented 4 years ago

As a temporary fix, you could remove the alpha pixels from the icons and replace them with white. This way they'll be visible in a black background.

See https://stackoverflow.com/questions/28937084/imagemagick-remove-alpha-component-replace-all-intermediate-alpha-pixel-with-s

mre commented 4 years ago

This is now done in master. Turns out there is a simple way to check:

def dark_mode():
    return NSUserDefaults.standardUserDefaults().stringForKey_('AppleInterfaceStyle') == "Dark"

Thanks for the support @cmangla. 😊