|
@@ -121,9 +121,23 @@
|
|
|
|
|
|
self.formTextFiledView.contentField.text = self.buttonWidget.fieldName;
|
|
|
|
|
|
- self.borderColorView.selectedColor = self.buttonWidget.borderColor;
|
|
|
- self.backGroundColorView.selectedColor = self.buttonWidget.backgroundColor;
|
|
|
- self.colorSelectView.selectedColor = self.buttonWidget.fontColor;
|
|
|
+ if(self.buttonWidget.borderColor == nil){
|
|
|
+ self.borderColorView.selectedColor = [UIColor blackColor];
|
|
|
+ self.buttonWidget.borderColor = self.borderColorView.selectedColor;
|
|
|
+ [self refreshUI];
|
|
|
+ }else{
|
|
|
+ self.borderColorView.selectedColor = self.buttonWidget.borderColor;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if(self.buttonWidget.fontColor == nil) {
|
|
|
+ self.colorSelectView.selectedColor = [UIColor blackColor];
|
|
|
+ self.buttonWidget.fontColor = [UIColor blackColor];
|
|
|
+ [self refreshUI];
|
|
|
+ }else{
|
|
|
+ self.colorSelectView.selectedColor = self.buttonWidget.fontColor;
|
|
|
+ }
|
|
|
+
|
|
|
self.hideFormSwitchView.switcher.on = self.buttonWidget.isHidden;
|
|
|
|
|
|
if(self.buttonWidget.state == 1) {
|