// // CPDFListViewConfig.m // ComPDFKit // // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved. // // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. // This notice may not be removed from this file. // #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