Przeglądaj źródła

图片选择主题颜色修改

桂欢 1 rok temu
rodzic
commit
f0bdd5e6e3

+ 0 - 20
SLAiELTS/SLAiELTS/ViewControllers/MessageVC/Views/SLMikeInputView.m

@@ -66,26 +66,6 @@
         
         dispatch_async(dispatch_get_main_queue(), ^{
             weakSelf.mikeTipImageView.image = [UIImage imageNamed:[NSString stringWithFormat:@"音波_000%02ld.png",v]];
-            CGFloat sinF = 10.0;
-            double sinX = 200.0;
-            double timeStamp = [[NSDate date] timeIntervalSince1970];
-            double fSin = sinF *(4/(pow(sinX,4)+4))*sin(3.14*sinX-3.14*timeStamp);
-            NSLog(@"----%f",fSin);
-            for (NSUInteger i = 0; i < self.sinXViews.count; i++) {
-                    if (i > 5 && i < 32+6) {
-                        UIView *sinView = (UIView *)weakSelf.sinXViews[i];
-                        CGRect frame = sinView.frame;
-                        double _viewHeight = fSin;
-                        double viewHeight = _viewHeight;//根据需求格式化_viewHeight获得
-                        frame.size.height = viewHeight;
-                        if (viewHeight == 0) {
-                            return;
-                        }
-                        frame.origin.y = (self.frame.size.height-viewHeight)/2;
-                        [sinView setFrame:frame];
-                    }
-                }
-    //        return fabs(fSin);
         });
         
     };

+ 3 - 3
SLAiELTS/SLAiELTS/ViewControllers/MessageVC/Views/SLMikeInputView.xib

@@ -38,12 +38,12 @@
                 <imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon_mike_cancel_nor" translatesAutoresizingMaskIntoConstraints="NO" id="OVz-mu-onH">
                     <rect key="frame" x="165" y="666.66666666666663" width="60.333333333333343" height="60.333333333333371"/>
                 </imageView>
-                <imageView hidden="YES" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="音波_00001.png" translatesAutoresizingMaskIntoConstraints="NO" id="ezu-uj-IG6">
-                    <rect key="frame" x="120" y="417" width="150" height="94.333333333333314"/>
+                <imageView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="音波_00001.png" translatesAutoresizingMaskIntoConstraints="NO" id="ezu-uj-IG6">
+                    <rect key="frame" x="145" y="432.66666666666669" width="100" height="63"/>
                     <color key="backgroundColor" red="0.086274509799999996" green="0.46666666670000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
                     <constraints>
                         <constraint firstAttribute="width" secondItem="ezu-uj-IG6" secondAttribute="height" multiplier="180:113" id="Et0-LI-oAt"/>
-                        <constraint firstAttribute="width" constant="150" id="SMi-Mc-Vuu"/>
+                        <constraint firstAttribute="width" constant="100" id="SMi-Mc-Vuu"/>
                     </constraints>
                 </imageView>
             </subviews>

+ 8 - 1
SLAiELTS/SLAiELTS/ViewControllers/Moments/ZLPhotoBrowserTool/ZLPhotoBrowerView.m

@@ -106,11 +106,18 @@ typedef void(^Result)(NSData *fileData, NSString *fileName);
     photoAS.configuration.allowSelectVideo = self.imageOrVideo;
     photoAS.configuration.allowSelectImage = !self.imageOrVideo;//默认imageOrVideo为NO
     photoAS.configuration.allowSelectOriginal = NO;
+    photoAS.configuration.bottomBtnsNormalBgColor = SLBlueColor;
+    photoAS.configuration.bottomBtnsNormalTitleColor = [UIColor whiteColor];
+    photoAS.configuration.bottomBtnsDisableBgColor = SLBlueColor;
+    photoAS.configuration.bottomBtnsDisableTitleColor = [UIColor whiteColor];
+//    photoAS.configuration.previewTextColor = SLBlueColor;
+    photoAS.configuration.bottomViewBgColor = SLBgColor;
+    photoAS.configuration.indexLabelBgColor = SLBlueColor;
     photoAS.configuration.allowEditImage = NO;
     photoAS.configuration.allowTakePhotoInLibrary = NO;
     photoAS.configuration.allowRecordVideo = self.imageOrVideo;
     photoAS.configuration.exportVideoType = ZLExportVideoTypeMp4;
-    photoAS.configuration.navTitleColor = SLColor(@"1677FF");
+    photoAS.configuration.navTitleColor = SLBlueColor;
     
     photoAS.configuration.saveNewImageAfterEdit = NO;
     photoAS.sender = [UIViewController getCurrentShowVC];

+ 2 - 2
SLAiELTS/SLAiELTS/ViewControllers/MyVC/Views/Cells/SLMeHeaderCollectionViewCell.m

@@ -36,7 +36,7 @@ static const NSInteger btnTag = 888888;
 
 - (void)headViewClick
 {
-   
+    [self setBtnClick:nil];
 }
 
 - (void)btnClick:(UIButton *)btn
@@ -145,7 +145,7 @@ static const NSInteger btnTag = 888888;
     }else {
         self.nameLabel.text = @"尊敬的客户,您好!";
         self.loginTimeLabel.text = @"未登录";
-        self.headView .image = ImageName(@"icon_ellipse");
+        self.headView.image = ImageName(@"icon_ellipse");
     }
 }