|
@@ -1760,7 +1760,7 @@
|
|
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
|
|
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
|
|
switch (_annotationType) {
|
|
switch (_annotationType) {
|
|
case CAnnotationTypeTextField:
|
|
case CAnnotationTypeTextField:
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationTextWidgetBackgroundColorKey];
|
|
|
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationTextWidgetBackgroundColorKey] ? : NSColor.grayColor;
|
|
break;
|
|
break;
|
|
case CAnnotationTypeRadioButton:
|
|
case CAnnotationTypeRadioButton:
|
|
backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationRadioButtonWidgetBackgroundColorKey];
|
|
backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationRadioButtonWidgetBackgroundColorKey];
|
|
@@ -1769,10 +1769,10 @@
|
|
backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationCheckBoxWidgetBackgroundColorKey];
|
|
backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationCheckBoxWidgetBackgroundColorKey];
|
|
break;
|
|
break;
|
|
case CAnnotationTypeComboBox:
|
|
case CAnnotationTypeComboBox:
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey];
|
|
|
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey] ? : NSColor.grayColor;
|
|
break;
|
|
break;
|
|
case CAnnotationTypeListMenu:
|
|
case CAnnotationTypeListMenu:
|
|
- backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationChoiceListWidgetBackgroundColorKey];
|
|
|
|
|
|
+ backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationChoiceListWidgetBackgroundColorKey] ? : NSColor.grayColor;
|
|
break;
|
|
break;
|
|
case CAnnotationTypeActionButton:
|
|
case CAnnotationTypeActionButton:
|
|
backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey];
|
|
backgroundColor = [userDefaults PDFListViewColorForKey:CAnnotationActionButtonWidgetBackgroundColorKey];
|