文件
dayu-color/大鱼调色/Plugin/DYTheme.h
T

18 行
857 B
Objective-C

#import <AppKit/AppKit.h>
FOUNDATION_EXPORT NSString *const DYThemeDidChange;
FOUNDATION_EXPORT NSArray<NSString *> *DYThemeNames(void);
FOUNDATION_EXPORT NSInteger DYThemeIndex(void);
FOUNDATION_EXPORT void DYSetThemeIndex(NSInteger index);
FOUNDATION_EXPORT NSDictionary<NSString *, NSColor *> *DYThemePalette(void);
FOUNDATION_EXPORT NSColor *DYThemeColor(NSString *role);
FOUNDATION_EXPORT NSColor *DYThemeSwatch(NSInteger index);
// Shared AppKit controls keep native actions, focus, and accessibility.
FOUNDATION_EXPORT NSShadow *DYThemeTextShadow(void);
FOUNDATION_EXPORT NSDictionary *DYThemeTextAttributes(NSFont *font, NSColor *color);
FOUNDATION_EXPORT void DYDrawThemeSurface(NSBezierPath *path, BOOL card);
@interface DYThemeLabel : NSTextField @end
@interface DYThemeButton : NSButton @end
@interface DYThemePopUpButton : NSPopUpButton @end