Browse Source

暗黑模式

huangyp 6 years ago
parent
commit
32de53e988

+ 6 - 1
shiku_im/shiku_im/addressBook(通讯录)/JOLanguageVC.m

@@ -33,6 +33,10 @@
     self.tableView=[[UITableView alloc]initWithFrame:CGRectMake(0,0,self_width,self_height) style:UITableViewStylePlain];
     self.tableView.delegate=self;
     self.tableView.dataSource=self;
+    self.tableView.backgroundColor = BGKJ_COLOR;
+    UIView *view = [UIView new];
+    view.backgroundColor = BGKJ_COLOR;
+    self.tableView.tableFooterView = view;
     [self.view addSubview:self.tableView];
     
     [UIView setExtraCellLineHidden:self.tableView];
@@ -160,13 +164,14 @@
     if (cell==nil)
     {
         cell =[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];
-        
+        cell.contentView.backgroundColor = BGKJ_COLOR;
     }
     
     UILabel * label = [[UILabel alloc]init];
     label.frame = CGRectMake(10,5,200,30);
     label.text = languageArray[indexPath.row];
     label.font = FONT_SIZE(15);
+    label.textColor = [UIColor blackColor];
     [cell.contentView addSubview:label];
     
     

+ 1 - 0
shiku_im/shiku_im/control/DXAlertView.m

@@ -86,6 +86,7 @@
         
         //初始化选择器
         self.pickerView=[[UIPickerView alloc]initWithFrame:CGRectMake(0, 35, 245, 180)];
+        self.pickerView.backgroundColor = BGKJ_COLOR;
         [self addSubview: self.pickerView];
         
 //        self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 90, kAlertWidth, kTitleHeight)];

+ 7 - 0
shiku_im/shiku_im/controller/myOA/JOOutWorkPlanVC.m

@@ -3460,6 +3460,13 @@
         return @"4G";
         
     }
+    
+    if (iOS13) {
+        
+        return @"4G";
+        
+    }
+    
     UIApplication *app = [UIApplication sharedApplication];
     NSArray *children = [[[app valueForKeyPath:@"statusBar"]valueForKeyPath:@"foregroundView"]subviews];
     NSString *state = [[NSString alloc]init];

+ 9 - 2
shiku_im/shiku_im/controller/myOA/OutWorkingSettingViewController.m

@@ -400,7 +400,7 @@
     view.backgroundColor= Color(160,160,160,0.1);
     
     self.tableView.backgroundView=view;
-    
+    self.tableView.backgroundColor = BGKJ_COLOR;
     self.tableView.delegate = self;
     self.tableView.dataSource = self;
     [self.view addSubview:self.tableView];
@@ -435,10 +435,12 @@
     _preTime =[[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH-150, 0, 120, 45)];
     _preTime.textAlignment = NSTextAlignmentRight;
     _preTime.font = FONT_SIZE(14);
+    _preTime.textColor = [UIColor blackColor];
     
     _legDistance =[[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH-150, 0, 120, 45)];
     _legDistance.textAlignment = NSTextAlignmentRight;
     _legDistance.font = FONT_SIZE(14);
+    _legDistance.textColor = [UIColor blackColor];
     
     _btn3=[UIButton buttonWithType:UIButtonTypeCustom];
     _btn3.frame=CGRectMake(0,0,self_width,45);
@@ -582,7 +584,7 @@
     static NSString *ID = @"status";
     UITableViewCell * cell =[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:ID];
     cell.selectionStyle=UITableViewCellSelectionStyleNone;
-    
+    cell.contentView.backgroundColor = BGKJ_COLOR;
     
     NSUserDefaults * user=[NSUserDefaults standardUserDefaults];
     NSString * yeorno=[user objectForKey:ZIDONG_WAIQING];
@@ -590,6 +592,7 @@
         UILabel * signLable = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 150, 45)];
         signLable.text = self.dataArr[indexPath.row];
         signLable.font =FONT_SIZE(14);
+        signLable.textColor = [UIColor blackColor];
         [cell.contentView addSubview:signLable];
         
         [cell.contentView addSubview:_switch1];
@@ -628,6 +631,7 @@
         UILabel * propertyDis = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 150, 45)];
         propertyDis.text =[NSString stringWithFormat:@"%@",self.dataArr[indexPath.row]];
         propertyDis.font = FONT_SIZE(14);
+        propertyDis.textColor = [UIColor blackColor];
         [cell.contentView addSubview:propertyDis];
         if (_returnDistance.length!=0) {
             _legDistance.text = [_returnDistance stringByAppendingString:@"m"];
@@ -655,6 +659,7 @@
         UILabel * yuliushjian = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 150, 45)];
         yuliushjian.text = self.dataArr[indexPath.row];
         yuliushjian.font = FONT_SIZE(14);
+        yuliushjian.textColor = [UIColor blackColor];
         [cell.contentView addSubview:yuliushjian];
         if (_returnTime.length!=0) {
             _preTime.text = [_returnTime stringByAppendingString:@"分钟"];
@@ -681,6 +686,7 @@
         UILabel * signLable = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 150, 45)];
         signLable.text = self.dataArr[indexPath.row];
         signLable.font = FONT_SIZE(14);
+        signLable.textColor = [UIColor blackColor];
         [cell.contentView addSubview:signLable];
         
         [cell.contentView addSubview:_switch2];
@@ -699,6 +705,7 @@
         UILabel * faceLable = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 150, 45)];
         faceLable.text = self.dataArr[indexPath.row];
         faceLable.font = FONT_SIZE(14);
+        faceLable.textColor = [UIColor blackColor];
         [cell.contentView addSubview:faceLable];
         
         [cell.contentView addSubview:_switch3];

+ 2 - 0
shiku_im/shiku_im/controller/预约小秘书/预约控件/时间选择/BookingTimeSetVC.m

@@ -158,11 +158,13 @@
     UILabel *lbl1 = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 100, 40)];
     lbl1.text = @"开始时间";
     lbl1.font = FONT_SIZE(15);
+    lbl1.textColor = [UIColor blackColor];
     [view addSubview:lbl1];
     
     UILabel *lbl2 = [[UILabel alloc]initWithFrame:CGRectMake(10, 40, 100, 40)];
     lbl2.text = @"结束时间";
     lbl2.font = FONT_SIZE(15);
+    lbl2.textColor = [UIColor blackColor];
     [view addSubview:lbl2];
     
     for (int i = 0; i<2; i++) {

+ 1 - 0
shiku_im/shiku_im/friendBlog/view/WeiboCell.m

@@ -45,6 +45,7 @@
 {
     self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
     if (self) {
+        self.contentView.backgroundColor = BGKJ_COLOR;
         _pool = [[NSMutableArray alloc]init];
         self.selectionStyle = UITableViewCellSelectionStyleNone;
         title = [[UILabel alloc] initWithFrame:CGRectMake(57, 7, SCREEN_WIDTH-100, 21)];

+ 1 - 0
shiku_im/shiku_im/friendBlog/view/WeiboViewControlle.m

@@ -344,6 +344,7 @@
         // Configure the cell...
         cell.controller=self;
         cell.tableView = tableView;
+        cell.tableView.backgroundColor = BGKJ_COLOR;
         cell.tag   = indexPath.row;
         cell = [cell initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
         

+ 1 - 0
shiku_im/shiku_im/文件夹3/ChildView/AdministratorVC.m

@@ -136,6 +136,7 @@ static NSString *cellID = @"cellID";
         cell.textLabel.textColor = HexColor(@"#333333");
         cell.textLabel.font = FONT_SIZE(15);
         cell.selectionStyle = UITableViewCellSelectionStyleNone;
+        cell.contentView.backgroundColor = BGKJ_COLOR;
     }
     
     cell.textLabel.text = _titleArr[indexPath.row];

+ 2 - 1
shiku_im/shiku_im/文件夹3/ChildView/FontSizeSetVC.m

@@ -68,9 +68,10 @@ static NSString *cellID = @"cellID";
     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
     if (!cell) {
         cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellID];
-        
+        cell.contentView.backgroundColor = BGKJ_COLOR;
     }
     cell.textLabel.font = FONT_SIZE(13);
+    cell.textLabel.textColor = [UIColor blackColor];
     cell.detailTextLabel.font = FONT_SIZE(13);
     cell.textLabel.text = _titleArr[indexPath.section][indexPath.row];
     cell.detailTextLabel.text = _detailArr[indexPath.section][indexPath.row];

+ 3 - 0
shiku_im/shiku_im/文件夹3/ChildView/SettingVC.m

@@ -114,6 +114,9 @@ static NSString *cellID = @"cellID";
             cell.selectionStyle = UITableViewCellSelectionStyleDefault;
         }
 
+        cell.accessoryView.backgroundColor = BGKJ_COLOR;
+        cell.contentView.backgroundColor = BGKJ_COLOR;
+        cell.backgroundView.backgroundColor = BGKJ_COLOR;
     }
     
     cell.textLabel.font = FONT_SIZE(15);

+ 25 - 0
shiku_im/shiku_im/文件夹3/MainView/NewWoVC.m

@@ -701,6 +701,31 @@ static NSString *cellID = @"cellID";
     return 0;
 }
 
+-(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view{
+    UILabel *lbl = (UILabel *)view;
+
+    if (lbl == nil) {
+
+    lbl = [[UILabel alloc]init];
+
+    //在这里设置字体相关属性
+
+    lbl.font = [UIFont systemFontOfSize:20];
+
+    lbl.textColor = [UIColor redColor];
+
+    [lbl setTextAlignment:0];
+
+    [lbl setBackgroundColor:[UIColor blackColor]];
+
+    }
+
+    //重新加载lbl的文字内容
+
+    lbl.text = [self pickerView:pickerView titleForRow:row forComponent:component];
+
+    return lbl;
+}
 #pragma mark --- 切换账套
 -(void)changeMaster
 {

+ 2 - 0
shiku_im/shiku_im/文件夹3/MainView/WoCell.m

@@ -13,6 +13,8 @@
 {
     if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
     {
+        self.contentView.backgroundColor = BGKJ_COLOR;
+        
         _headImageV = [UIImageView new];
         [self.contentView addSubview:_headImageV];