Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CATTY-709 Fix layout of Project list #1824

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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