fckeuspy-go/vendor/fyne.io/fyne/v2/app/app_desktop_darwin.m

13 lines
384 B
Objective-C

//go:build !ci && !ios && !wasm && !test_web_driver && !mobile
extern void themeChanged();
#import <Foundation/Foundation.h>
void watchTheme() {
[[NSDistributedNotificationCenter defaultCenter] addObserverForName:@"AppleInterfaceThemeChangedNotification" object:nil queue:nil
usingBlock:^(NSNotification *note) {
themeChanged(); // calls back into Go
}];
}