~jose-exposito89/ubuntuone-ios-files/Bug-1050848

« back to all changes in this revision

Viewing changes to Files/U1FileDetailsViewController.m

  • Committer: Jason Foreman
  • Date: 2011-12-09 20:43:32 UTC
  • mfrom: (37.1.2 orange-navbar)
  • Revision ID: jason.foreman@canonical.com-20111209204332-rere6u5psiu3eu8e
MergeĀ lp:~threeve/ubuntuone-ios-files/orange-navbar

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        self.title = [node.path lastPathComponent];
93
93
        self.hidesBottomBarWhenPushed = YES;
94
94
        
95
 
        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 20)];
96
 
        // TODO: Ubuntu font
97
 
        [titleLabel setFont:[UIFont boldSystemFontOfSize:18.f]];
98
 
        [titleLabel setTextColor:[UIColor blackColor]];
99
 
        [titleLabel setShadowColor:[UIColor whiteColor]];
100
 
        [titleLabel setShadowOffset:CGSizeMake(-1, -1)];
101
 
        [titleLabel setText:self.title];
102
 
        [titleLabel sizeToFit];
103
 
        [titleLabel setOpaque:NO];
104
 
        [titleLabel setBackgroundColor:[UIColor clearColor]];
105
 
        [self.navigationItem setTitleView:titleLabel];
106
 
        [titleLabel release];
107
 
 
108
95
        return self;
109
96
}
110
97