Skip to content

Commit

Permalink
Merge pull request #1824 from mariomauberger/CATTY-709
Browse files Browse the repository at this point in the history
CATTY-709 Fix layout of Project list
  • Loading branch information
wallisch authored Oct 18, 2024
2 parents 107de90 + 6b623c8 commit 49c44d1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Catty/ViewController/Projects/MyProjectsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#import "UIUtil.h"
#import "Pocket_Code-Swift.h"
#import "ViewControllerDefines.h"
#import "ProjectTableHeaderView.h"

@interface MyProjectsViewController () <UITextFieldDelegate, SetProjectDescriptionDelegate>
@property (nonatomic) BOOL useDetailCells;
Expand Down Expand Up @@ -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];
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 49c44d1

Please sign in to comment.