mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
Add method that tells the app/backend that we are using a dark mode theme
This commit is contained in:
parent
a8018d6c8e
commit
c4e5d6b223
2 changed files with 14 additions and 0 deletions
|
@ -783,6 +783,15 @@ APPKIT_EXPORT_CLASS
|
|||
*/
|
||||
- (NSString*) license;
|
||||
|
||||
/**
|
||||
* Returns YES if in dark mode, and NO, if not. The reasoning behind this
|
||||
* is that some applications may display on the screen in dark mode, but
|
||||
* print with the colors reversed. This method allows GUI and the backend
|
||||
* to understand when we are using a dark theme and render accordingly when
|
||||
* printing. The default is NO, as the default theme is not a dark theme.
|
||||
*/
|
||||
- (BOOL) isDarkMode;
|
||||
|
||||
@end
|
||||
|
||||
/**
|
||||
|
|
|
@ -1339,6 +1339,11 @@ typedef struct {
|
|||
return [[self infoDictionary] objectForKey: @"GSThemeLicense"];
|
||||
}
|
||||
|
||||
- (BOOL) isDarkMode
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation GSTheme (Private)
|
||||
|
|
Loading…
Reference in a new issue