Skip to content

Commit

Permalink
Minor UI tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Sep 4, 2009
1 parent a73f38c commit 3945628
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/main/webapp/AppController.j
Expand Up @@ -27,18 +27,8 @@

[contentView setBackgroundColor:[CPColor colorWithWhite:0.85 alpha:1.0]];

clock = [[CPTextField alloc] initWithFrame:CGRectMake(CGRectGetWidth(bounds) - 250, 0, 250, 22)];

[clock setFont:[CPFont systemFontOfSize:14.0]];
[clock setBackgroundColor:[CPColor colorWithRed:1.0 green:1.0 blue:0.0 alpha:0.3]];
[clock setAutoresizingMask:CPViewMinXMargin];
[clock setAlignment:CPCenterTextAlignment];

[contentView addSubview:clock];

var scrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(bounds), CGRectGetHeight(bounds) - 40)];

[scrollView setAutohidesScrollers:YES];
[scrollView setHasHorizontalScroller:NO];

messageView = [[MessageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(bounds), 0)];
Expand All @@ -51,6 +41,11 @@

[contentView addSubview:scrollView];


[scrollView setBackgroundColor:[CPColor whiteColor]];
[messageView setBackgroundColor:[CPColor whiteColor]];


label = [CPTextField labelWithTitle:@"Hello World!"];

[label setAlignment:CPCenterTextAlignment];
Expand Down Expand Up @@ -80,6 +75,15 @@

[theWindow setDefaultButton:button];

clock = [[CPTextField alloc] initWithFrame:CGRectMake(CGRectGetWidth(bounds) - 250 - [CPScroller scrollerWidth], 0, 250, 22)];

[clock setFont:[CPFont systemFontOfSize:14.0]];
[clock setBackgroundColor:[CPColor colorWithRed:1.0 green:1.0 blue:0.0 alpha:0.3]];
[clock setAutoresizingMask:CPViewMinXMargin];
[clock setAlignment:CPCenterTextAlignment];

[contentView addSubview:clock];

[theWindow orderFront:self];
}

Expand Down

0 comments on commit 3945628

Please sign in to comment.