diff --git a/Tests/Manual/CPScrollView2/AppController.j b/Tests/Manual/CPScrollView2/AppController.j index ae8589563..617ccbe8d 100644 --- a/Tests/Manual/CPScrollView2/AppController.j +++ b/Tests/Manual/CPScrollView2/AppController.j @@ -17,13 +17,16 @@ @outlet CPScrollView scrollView2; @outlet CPView contentView2; + + CPColor lightBackground; } - (void)awakeFromCib { [theWindow setFullPlatformWindow:YES]; - [contentView setBackgroundColor:[CPColor colorWithHexString:@"f3f3f3"]]; + lightBackground = [CPColor colorWithPatternImage:[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:@"photo.jpg"]]]; + [contentView setBackgroundColor:lightBackground]; [contentView setAutoresizingMask:CPViewWidthSizable]; [scrollView setDocumentView:contentView]; @@ -43,7 +46,7 @@ { var style = [aSender title]; - switch(style) + switch (style) { case "Default": [scrollView setScrollerKnobStyle:CPScrollerKnobStyleDefault]; @@ -61,10 +64,10 @@ { var style = [aSender title]; - switch(style) + switch (style) { case "Light": - [[scrollView documentView] setBackgroundColor:[CPColor colorWithHexString:@"f3f3f3"]]; + [[scrollView documentView] setBackgroundColor:lightBackground]; break; case "Dark": [[scrollView documentView] setBackgroundColor:[CPColor colorWithHexString:@"333"]]; diff --git a/Tests/Manual/CPScrollView2/Resources/photo.jpg b/Tests/Manual/CPScrollView2/Resources/photo.jpg new file mode 100644 index 000000000..a57b108fa Binary files /dev/null and b/Tests/Manual/CPScrollView2/Resources/photo.jpg differ