Skip to content

Commit

Permalink
NMC 1990 - switch color change
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-amrutwaghmare committed Apr 15, 2024
1 parent bedd4e9 commit e1514c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions iOSClient/Settings/CCAdvanced.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ - (void)initializeForm
else row.value = @"0";
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
[row.cellConfig setObject:UIColor.labelColor forKey:@"textLabel.textColor"];
row.cellConfig[@"switchControl.onTintColor"] = NCBrandColor.shared.brand;
[section addFormRow:row];

// Format Compatibility + Live Photo + Delete asset
Expand All @@ -65,6 +66,7 @@ - (void)initializeForm
else row.value = @"0";
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
[row.cellConfig setObject:UIColor.labelColor forKey:@"textLabel.textColor"];
row.cellConfig[@"switchControl.onTintColor"] = NCBrandColor.shared.brand;
[section addFormRow:row];

row = [XLFormRowDescriptor formRowDescriptorWithTag:@"livePhoto" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_upload_mov_livephoto_", nil)];
Expand All @@ -73,6 +75,7 @@ - (void)initializeForm
else row.value = @"0";
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
[row.cellConfig setObject:UIColor.labelColor forKey:@"textLabel.textColor"];
row.cellConfig[@"switchControl.onTintColor"] = NCBrandColor.shared.brand;
[section addFormRow:row];

// Section : Files App --------------------------------------------------------------
Expand All @@ -90,6 +93,7 @@ - (void)initializeForm
else row.value = @"0";
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0] forKey:@"textLabel.font"];
[row.cellConfig setObject:UIColor.labelColor forKey:@"textLabel.textColor"];
row.cellConfig[@"switchControl.onTintColor"] = NCBrandColor.shared.brand;
[section addFormRow:row];
}

Expand Down
7 changes: 0 additions & 7 deletions iOSClient/Settings/NCSettings.m
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,6 @@ - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInte
NSString *sectionName;
NSInteger numSections = [tableView numberOfSections] - 1;

if (section == 1) {
NSString *lock = NSLocalizedString(@"_lock_protection_no_screen_footer_", nil);
NSString *reset = [NSString stringWithFormat:NSLocalizedString(@"_reset_wrong_passcode_desc_", nil), NCBrandOptions.shared.resetAppPasscodeAttempts];
sectionName = [NSString stringWithFormat:@"%@\n%@", lock, reset];
} else if (section == 2 && !NCBrandOptions.shared.disable_mobileconfig) {
sectionName = NSLocalizedString(@"_calendar_contacts_footer_", nil);
}
return sectionName;
}

Expand Down

0 comments on commit e1514c2

Please sign in to comment.