|
@@ -1775,22 +1775,22 @@
|
|
|
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
|
|
|
switch (_annotationType) {
|
|
|
case CAnnotationTypeTextField:
|
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationTextWidgetBackgroundColorKey] ? : NSColor.grayColor;
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationTextWidgetBackgroundColorKey] ? : NSColor.clearColor;
|
|
|
break;
|
|
|
case CAnnotationTypeRadioButton:
|
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationRadioButtonWidgetBackgroundColorKey];
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationRadioButtonWidgetBackgroundColorKey] ? : NSColor.clearColor;;
|
|
|
break;
|
|
|
case CAnnotationTypeCheckBox:
|
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationCheckBoxWidgetBackgroundColorKey];
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationCheckBoxWidgetBackgroundColorKey] ? : NSColor.clearColor;;
|
|
|
break;
|
|
|
case CAnnotationTypeComboBox:
|
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey] ? : NSColor.grayColor;
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey] ? : NSColor.clearColor;
|
|
|
break;
|
|
|
case CAnnotationTypeListMenu:
|
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationChoiceListWidgetBackgroundColorKey] ? : NSColor.grayColor;
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationChoiceListWidgetBackgroundColorKey] ? : NSColor.clearColor;
|
|
|
break;
|
|
|
case CAnnotationTypeActionButton:
|
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey];
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey] ? : NSColor.clearColor;;
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -1800,7 +1800,7 @@
|
|
|
CGFloat red,green,blue,alpha;
|
|
|
[[backgroundColor colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&red green:&green blue:&blue alpha:&alpha];
|
|
|
if ((fabs(alpha - 0) < 0.001)) {
|
|
|
- backgroundColor = nil;
|
|
|
+ backgroundColor = [NSColor clearColor];
|
|
|
}
|
|
|
}
|
|
|
return backgroundColor;
|