Просмотр исходного кода

Clean up unsupported input appearance

Tanner Bennett лет назад: 6
Родитель
Сommit
ab720971de
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      Classes/Editing/ArgumentInputViews/FLEXArgumentInputNotSupportedView.m

+ 3 - 2
Classes/Editing/ArgumentInputViews/FLEXArgumentInputNotSupportedView.m

@@ -7,6 +7,7 @@
 //
 //
 
 
 #import "FLEXArgumentInputNotSupportedView.h"
 #import "FLEXArgumentInputNotSupportedView.h"
+#import "FLEXColor.h"
 
 
 @implementation FLEXArgumentInputNotSupportedView
 @implementation FLEXArgumentInputNotSupportedView
 
 
@@ -15,8 +16,8 @@
     self = [super initWithArgumentTypeEncoding:typeEncoding];
     self = [super initWithArgumentTypeEncoding:typeEncoding];
     if (self) {
     if (self) {
         self.inputTextView.userInteractionEnabled = NO;
         self.inputTextView.userInteractionEnabled = NO;
-        self.inputTextView.backgroundColor = [UIColor colorWithWhite:0.8 alpha:1.0];
-        self.inputTextView.text = @"nil";
+        self.inputTextView.backgroundColor = [FLEXColor secondaryGroupedBackgroundColorWithAlpha:0.5];
+        self.inputPlaceholderText = @"nil  (type not supported)";
         self.targetSize = FLEXArgumentInputViewSizeSmall;
         self.targetSize = FLEXArgumentInputViewSizeSmall;
     }
     }
     return self;
     return self;