12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #import "CPDFListViewConfig.h"
- @implementation CPDFListViewConfig
- + (instancetype)defaultManager {
- static CPDFListViewConfig *singleton = nil;
- static dispatch_once_t pred;
- dispatch_once(&pred, ^{
- singleton = [[CPDFListViewConfig alloc] init];
- });
- return singleton;
- }
- - (NSNumber *)annotationBorderOffset {
- if(_annotationBorderOffset) {
- return _annotationBorderOffset;
- }
- return @(5);
- }
- - (NSColor *)annotationBorderColor {
- if(_annotationBorderColor) {
- return _annotationBorderColor;
- }
- return [NSColor colorWithRed:82.0/255.0 green:102.0/255.0 blue:204.0/255.0 alpha:1];
- }
- - (NSColor *)dragHoverColor {
- if(_dragHoverColor) {
- return _dragHoverColor;
- }
- return [NSColor colorWithRed:23/255.0 green:112/255.0 blue:244/255.0 alpha:1.0];
- }
- @end
|