-
Notifications
You must be signed in to change notification settings - Fork 222
/
Copy pathMenuMetersMenuExtraBase.h
45 lines (40 loc) · 1.29 KB
/
MenuMetersMenuExtraBase.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
//
// NSMenuExtraBase.h
// MenuMeters
//
// Created by Yuji on 2015/08/01.
//
//
#import <Foundation/Foundation.h>
#import "LocalizedStrings.h"
@class MenuMeterDefaults;
@interface MenuMetersMenuExtraBase : NSObject <NSMenuDelegate>
{
NSStatusItem* statusItem;
NSTimer* updateTimer;
CGFloat menuWidth;
}
-(NSColor*)colorByAdjustingForLightDark:(NSColor*)c;
- (NSImage*)image;
- (NSMenu*)menu;
-(void)setupColor:(NSNotification*)notification;
- (void)configDisplay:(NSString*)bundleID fromPrefs:(MenuMeterDefaults*)ourPrefs withTimerInterval:(NSTimeInterval)interval;
- (void)configFromPrefs:(NSNotification*)notification;
- (void)timerFired:(id)timer;
- (void)openMenuMetersPref:(id)sender;
- (void)openActivityMonitor:(id)sender;
- (void)addStandardMenuEntriesTo:(NSMenu*)extraMenu;
- (void)setupAppearance;
- (BOOL)isDark;
- (BOOL)isInstalledButHiddenBySystem;
- (CGFloat)height;
- (CGFloat)imageHeight;
- (BOOL)renderImage;
-(NSColor*)menuBarTextColor;
-(instancetype)initWithBundleID:(NSString*)bundleID;
@property(nonatomic, readonly) BOOL isMenuVisible;
@property(nonatomic, retain) NSString*bundleID;
@end
#define NSMenuExtra MenuMetersMenuExtraBase
#define kOpenMenuMetersPref @"Open MenuMeters preferences"
#define kOpenActivityMonitorTitle @"Open Activity Monitor"