application keep light theme on mojave dark mode

NinineaNininea USUniversity ✭✭✭

Hello, how can I keep application ui as it was before "mojave" dark mode? As I found I have to set theme from appdelegate, but in xamarin I'm not able to do this, because 'ThemeManager' is not visible in app :

[Export("applicationWillFinishLaunching:")] public void WillFinishLaunching(NSNotification notification) { //ThemeManager.lightTheme.apply() }

Is there any way to disable 'dark mode' for whole application in xamarin.mac?

thanks

Answers

  • NinineaNininea USUniversity ✭✭✭

    here is solution:

    [Export("applicationWillFinishLaunching:")]
    public void WillFinishLaunching(NSNotification notification)
    {
    NSApplication.SharedApplication.SetAppearance(NSAppearance.GetAppearance(NSAppearance.NameAqua));
    }

Sign In or Register to comment.