2023-02-11 20:49:42 +00:00
|
|
|
// This file Copyright © 2009-2023 Transmission authors and contributors.
|
2022-01-20 18:27:56 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2009-08-29 20:28:52 +00:00
|
|
|
|
|
|
|
#import "NSApplicationAdditions.h"
|
|
|
|
|
|
|
|
@implementation NSApplication (NSApplicationAdditions)
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (BOOL)isDarkMode
|
2018-12-21 21:39:47 +00:00
|
|
|
{
|
2023-04-14 20:02:52 +00:00
|
|
|
return [self.effectiveAppearance.name isEqualToString:NSAppearanceNameDarkAqua];
|
2018-12-21 21:39:47 +00:00
|
|
|
}
|
|
|
|
|
2009-08-29 20:28:52 +00:00
|
|
|
@end
|