From 6b623c84efca309ae56b9833550b16378e613aee Mon Sep 17 00:00:00 2001 From: Mario Lukas Mauberger Date: Sat, 17 Jun 2023 15:25:42 +0200 Subject: [PATCH] CATTY-709 Fix layout of Project list --- .../ViewController/Projects/MyProjectsViewController.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Catty/ViewController/Projects/MyProjectsViewController.m b/src/Catty/ViewController/Projects/MyProjectsViewController.m index 42d00f665..652c1147a 100644 --- a/src/Catty/ViewController/Projects/MyProjectsViewController.m +++ b/src/Catty/ViewController/Projects/MyProjectsViewController.m @@ -34,6 +34,7 @@ #import "UIUtil.h" #import "Pocket_Code-Swift.h" #import "ViewControllerDefines.h" +#import "ProjectTableHeaderView.h" @interface MyProjectsViewController () @property (nonatomic) BOOL useDetailCells; @@ -78,7 +79,6 @@ - (void)viewDidLoad [self setSectionHeaders]; self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; - self.tableView.separatorInset = UIEdgeInsetsZero; self.tableView.sectionIndexBackgroundColor = UIColor.background; self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; } @@ -361,6 +361,12 @@ - (void)tableView:(UITableView*)tableView commitEditingStyle:(UITableViewCellEdi // This activates the swipe gesture handler for TableViewCells. } +- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section +{ + ProjectTableHeaderView *headerView = (ProjectTableHeaderView*)view; + headerView.textLabel.textColor = UIColor.globalTint; +} + - (BOOL)tableView:(UITableView*)tableView canEditRowAtIndexPath:(NSIndexPath*)indexPath { return YES;