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

Clean up unsupported input appearance

Tanner Bennett лет назад: 6
Родитель
Сommit
ab720971de

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

@@ -7,6 +7,7 @@
 //
 
 #import "FLEXArgumentInputNotSupportedView.h"
+#import "FLEXColor.h"
 
 @implementation FLEXArgumentInputNotSupportedView
 
@@ -15,8 +16,8 @@
     self = [super initWithArgumentTypeEncoding:typeEncoding];
     if (self) {
         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;
     }
     return self;