Skip to content

Commit

Permalink
Updated headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dbloete committed Jun 7, 2011
1 parent f037131 commit 6529332
Show file tree
Hide file tree
Showing 35 changed files with 399 additions and 429 deletions.
5 changes: 4 additions & 1 deletion Classes/CommitController.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ - (void)viewDidLoad {
[commit addObserver:self forKeyPath:kResourceLoadingStatusKeyPath options:NSKeyValueObservingOptionNew context:nil];
self.title = [commit.commitID substringToIndex:8];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(showActions:)];
self.tableView.tableHeaderView = tableHeaderView;
(commit.isLoaded) ? [self displayCommit] : [commit loadData];
// Background
UIColor *background = [UIColor colorWithPatternImage:[UIImage imageNamed:@"HeadBackground90.png"]];
tableHeaderView.backgroundColor = background;
self.tableView.tableHeaderView = tableHeaderView;
}

- (void)viewDidUnload {
Expand Down
1 change: 1 addition & 0 deletions Classes/FeedEntryController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@private
IBOutlet UILabel *dateLabel;
IBOutlet UILabel *titleLabel;
IBOutlet UIView *headView;
IBOutlet UIImageView *iconView;
IBOutlet UIImageView *gravatarView;
IBOutlet UIWebView *contentView;
Expand Down
4 changes: 4 additions & 0 deletions Classes/FeedEntryController.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ - (void)viewDidLoad {
[super viewDidLoad];
if (feed) self.navigationItem.rightBarButtonItem = controlItem;
self.entry = [feed.entries objectAtIndex:currentIndex];
// Background
UIColor *background = [UIColor colorWithPatternImage:[UIImage imageNamed:@"HeadBackground90.png"]];
headView.backgroundColor = background;
}

- (void)setEntry:(GHFeedEntry *)theEntry {
Expand Down Expand Up @@ -96,6 +99,7 @@ - (void)dealloc {
[dateLabel release], dateLabel = nil;
[titleLabel release], titleLabel = nil;
[iconView release], iconView = nil;
[headView release], headView = nil;
[gravatarView release], gravatarView = nil;

[super dealloc];
Expand Down
3 changes: 3 additions & 0 deletions Classes/IssueController.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ - (id)initWithIssue:(GHIssue *)theIssue andIssuesController:(IssuesController *)
- (void)viewDidLoad {
[super viewDidLoad];
self.title = [NSString stringWithFormat:@"Issue #%d", issue.num];
// Background
UIColor *background = [UIColor colorWithPatternImage:[UIImage imageNamed:@"HeadBackground80.png"]];
tableHeaderView.backgroundColor = background;
self.tableView.tableHeaderView = tableHeaderView;
self.tableView.tableFooterView = tableFooterView;
}
Expand Down
5 changes: 4 additions & 1 deletion Classes/OrganizationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ - (void)viewDidLoad {
if (!organization.publicRepositories.isLoaded) [organization.publicRepositories loadData];
if (!organization.publicMembers.isLoaded) [organization.publicMembers loadData];
self.navigationItem.title = organization.login;
self.tableView.tableHeaderView = tableHeaderView;
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(showActions:)];
// Background
UIColor *background = [UIColor colorWithPatternImage:[UIImage imageNamed:@"HeadBackground80.png"]];
tableHeaderView.backgroundColor = background;
self.tableView.tableHeaderView = tableHeaderView;
}

- (void)dealloc {
Expand Down
5 changes: 4 additions & 1 deletion Classes/RepositoryController.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ - (void)viewDidLoad {
[repository.branches addObserver:self forKeyPath:kResourceLoadingStatusKeyPath options:NSKeyValueObservingOptionNew context:nil];
self.title = repository.name;
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(showActions:)];
self.tableView.tableHeaderView = tableHeaderView;
(repository.isLoaded) ? [self displayRepository] : [repository loadData];
if (!repository.branches.isLoaded) [repository.branches loadData];
// Background
UIColor *background = [UIColor colorWithPatternImage:[UIImage imageNamed:@"HeadBackground80.png"]];
tableHeaderView.backgroundColor = background;
self.tableView.tableHeaderView = tableHeaderView;
}

- (void)dealloc {
Expand Down
5 changes: 4 additions & 1 deletion Classes/UserController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ - (void)viewDidLoad {
if (!user.repositories.isLoaded) [user.repositories loadData];
if (!user.organizations.isLoaded) [user.organizations loadData];
self.navigationItem.title = (self.user == self.currentUser) ? @"Profile" : user.login;
self.tableView.tableHeaderView = tableHeaderView;
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(showActions:)];
// Background
UIColor *background = [UIColor colorWithPatternImage:[UIImage imageNamed:@"HeadBackground80.png"]];
tableHeaderView.backgroundColor = background;
self.tableView.tableHeaderView = tableHeaderView;
}

- (void)dealloc {
Expand Down
Loading

0 comments on commit 6529332

Please sign in to comment.