FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
1k stars 18 forks source link

[FR] Dynamically switch borders colors based on System's current colorscheme #46

Closed Write closed 8 months ago

Write commented 8 months ago

I would love to be able to define in the config file a color for both light and dark mode, and that it would switch automatically based on that whenever system color scheme switch.

Example

active_color_light
active_color_dark
inactive_color_light
inactive_color_dark

Thanks !

FelixKratz commented 8 months ago

This should be delegated to some kind of script. Because the border color can be changed on the fly you only need a script that reacts to the theme change, e.g. by using hammerspoon or sketchybar to listen to the AppleInterfaceThemeChangedNotification sent to the NSDistributedNotificationCenter.