-
Notifications
You must be signed in to change notification settings - Fork 0
/
QSNocturneController.h
68 lines (50 loc) · 1.38 KB
/
QSNocturneController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* QSNocturneController */
#import <Cocoa/Cocoa.h>
#include "CGSPrivate.h"
#import "QSCIFilterWindow.h"
#import "QSLMUMonitor.h"
@interface QSNocturneController : NSObject
{
CGGammaValue gOriginalRedTable[ 256 ];
CGGammaValue gOriginalGreenTable[ 256 ];
CGGammaValue gOriginalBlueTable[ 256 ];
NSMutableArray *desktopWindows;
NSMutableArray *overlayWindows;
IBOutlet NSWindow *prefsWindow;
IBOutlet NSMenu *statusMenu;
BOOL shouldQuit;
BOOL enabled;
NSColor *whiteColor;
NSColor *blackColor;
NSStatusItem *statusItem;
float originalBrightness;
QSLMUMonitor *monitor;
NSWindow *menuWindow;
QSCIFilterWindow *menuHueOverlay;
QSCIFilterWindow *menuInvertOverlay;
NSArray *windows;
BOOL trackingMenu;
BOOL visible;
BOOL shouldHide;
BOOL correctHue;
BOOL dimMenu;
BOOL invertMenuAlways;
}
@property(nonatomic, assign) BOOL dimMenu;
@property(nonatomic, assign) BOOL invertMenuAlways;
- (IBAction)toggle:(id)sender;
- (void)setDesktopHidden:(BOOL)hidden;
- (IBAction)showPreferences:(id)sender;
- (BOOL)enabled;
- (void)setEnabled:(BOOL)value;
- (NSColor *)whiteColor;
- (void)setWhiteColor:(NSColor *)value;
- (NSColor *)blackColor;
- (void)setBlackColor:(NSColor *)value;
- (void)updateGamma;
- (float)getDisplayBrightness;
- (IBAction)revertGamma:(id)sender;
- (QSLMUMonitor *)lightMonitor;
- (void)removeOverlays;
- (void)setupOverlays;
@end