Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor UI tweak.

  • Loading branch information...
commit 3945628680186ca9fd3c065d6fe82f33f3de4d2a 1 parent a73f38c
Ross Boucher authored
Showing with 14 additions and 10 deletions.
  1. +14 −10 src/main/webapp/AppController.j
View
24 src/main/webapp/AppController.j
@@ -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)];
@@ -51,6 +41,11 @@
[contentView addSubview:scrollView];
+
+ [scrollView setBackgroundColor:[CPColor whiteColor]];
+ [messageView setBackgroundColor:[CPColor whiteColor]];
+
+
label = [CPTextField labelWithTitle:@"Hello World!"];
[label setAlignment:CPCenterTextAlignment];
@@ -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];
}
Please sign in to comment.
Something went wrong with that request. Please try again.