-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathTRTranquilityController.h
90 lines (65 loc) · 1.95 KB
/
TRTranquilityController.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// TRTranquilityController.h
// Tranquility
//
// Assumed by Lorenzo Swank on 2014 FEB 05 and
// updated for Mac OS 10.9.
//
// Orginally Created by Nicholas Jitkoff on 5/8/07 as Nocturne.
// Licensed under the Apache 2.0 license and distributed as such
// on https://code.google.com/p/blacktree-nocturne
//
#import <Cocoa/Cocoa.h>
#include "CGSPrivate.h"
#import "TRCIFilterWindow.h"
#import "TRLMUMonitor.h"
#import <MASShortcut.h>
@interface TRTranquilityController : NSObject
{
CGGammaValue gOriginalRedTable[ 256 ];
CGGammaValue gOriginalGreenTable[ 256 ];
CGGammaValue gOriginalBlueTable[ 256 ];
NSMutableArray* desktopWindows;
NSMutableArray* overlayWindows;
IBOutlet NSWindow* prefsWindow;
IBOutlet NSMenu* statusMenu;
IBOutlet NSTextField* versionTextField;
BOOL shouldQuit;
BOOL enabled;
NSColor* whiteColor;
NSColor* blackColor;
NSStatusItem* statusItem;
float originalBrightness;
TRLMUMonitor* monitor;
NSWindow* menuWindow;
TRCIFilterWindow* menuHueOverlay;
TRCIFilterWindow* menuInvertOverlay;
NSArray* windows;
BOOL trackingMenu;
BOOL visible;
BOOL shouldHide;
BOOL correctHue;
BOOL dimMenu;
BOOL invertMenuAlways;
}
@property (nonatomic, assign) IBOutlet MASShortcutView* shortcutView; // should be weak, oh well.
@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;
- (TRLMUMonitor*)lightMonitor;
- (void)removeOverlays;
- (void)setupOverlays;
@end
@interface TRTranquilityController (MenuCovers)
- (void)setDimMenu:(BOOL)flag;
@end