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

22 行
1.1 KiB
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 BOOL DYThemeIsLight(void);
FOUNDATION_EXPORT BOOL DYThemeUsesRelief(void);
FOUNDATION_EXPORT BOOL DYThemeWorkspaceContext(NSView *view);
// Opaque relief with a directional reflective rim; native controls retain their actions.
FOUNDATION_EXPORT void DYDrawSoftControl(NSRect rect, CGFloat radius, BOOL recessed, BOOL emphasized, BOOL pressed);
// 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