- Timestamp:
- 02/18/10 16:12:23 (2 years ago)
- Location:
- branches/PlayerFramework/CommonMediaPlayer
- Files:
-
- 2 modified
-
Media Players/DVD Framework/CMPDVDWindowCreationAction.m (modified) (5 diffs)
-
debug_main.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/PlayerFramework/CommonMediaPlayer/Media Players/DVD Framework/CMPDVDWindowCreationAction.m
r1140 r1142 139 139 [[self contentView] addSubview:textField]; 140 140 [textField setStringValue:@""]; 141 [textField setTextColor:[NSColor blueColor]];141 [textField setTextColor:[NSColor colorWithDeviceHue:227.0f/360.0f saturation:.60f brightness:1 alpha:1]]; 142 142 [textField setBackgroundColor:[NSColor blackColor]]; 143 143 NSFont *font = [textField font]; … … 201 201 [path appendBezierPathWithArcWithCenter:NSMakePoint(width-height/2, height/2) radius:height/2 startAngle:270 endAngle:90]; 202 202 [path closePath]; 203 [[NSColor colorWithDevice Red:0.25 green:0.25 blue:1 alpha:1] set];203 [[NSColor colorWithDeviceHue:227.0f/360.0f saturation:.60f brightness:1 alpha:1] set]; 204 204 [path fill]; 205 205 206 206 path = [NSBezierPath bezierPath]; 207 207 float position = playHeadLocation * (width - height) + height/2; 208 [path moveToPoint:NSMakePoint(position, 0)]; 209 [path lineToPoint:NSMakePoint(position-height/2, height/2)]; 210 [path lineToPoint:NSMakePoint(position, height)]; 211 [path lineToPoint:NSMakePoint(position+height/2, height/2)]; 208 float border = height / 20; 209 [path moveToPoint:NSMakePoint(position, border)]; 210 [path lineToPoint:NSMakePoint(position-height/2+border, height/2)]; 211 [path lineToPoint:NSMakePoint(position, height-border)]; 212 [path lineToPoint:NSMakePoint(position+height/2-border, height/2)]; 212 213 [path closePath]; 213 214 [[NSColor blackColor] set]; … … 233 234 234 235 float myWidth = contentRect.size.width * 27 / 32; 235 float textHeight = contentRect.size.height * 5/ 72;236 float textHeight = contentRect.size.height * 3 / 72; 236 237 float textWidth = textHeight * 3; 237 float textSize = contentRect.size.height / 20; 238 float textBuffer = textHeight / 2; 239 float textSize = contentRect.size.height / 33; 238 240 elapsedField = [[NSTextField alloc] initWithFrame:NSMakeRect(0, (textSize-textHeight)/7, textWidth, textHeight)]; 239 241 [[self contentView] addSubview:elapsedField]; 240 242 [elapsedField setStringValue:@""]; 241 [elapsedField setTextColor:[NSColor blueColor]];243 [elapsedField setTextColor:[NSColor whiteColor]]; 242 244 [elapsedField setBackgroundColor:[NSColor blackColor]]; 243 245 NSFont *font = [elapsedField font]; … … 252 254 [[self contentView] addSubview:durationField]; 253 255 [durationField setStringValue:@""]; 254 [durationField setTextColor:[NSColor blueColor]];256 [durationField setTextColor:[NSColor whiteColor]]; 255 257 [durationField setBackgroundColor:[NSColor blackColor]]; 256 258 [durationField setFont:newFont]; … … 259 261 [durationField setSelectable:NO]; 260 262 261 playView = [[CMPDVDPlayerPlayHeadView alloc] initWithFrame:NSMakeRect(textWidth , textHeight / 5, myWidth-textWidth*2, textHeight * 3 /5)];263 playView = [[CMPDVDPlayerPlayHeadView alloc] initWithFrame:NSMakeRect(textWidth + textBuffer, textHeight / 5, myWidth-textWidth*2-textBuffer*2, textHeight * 3 /5)]; 262 264 [[self contentView] addSubview:playView]; 263 265 [self setFrame:NSMakeRect(contentRect.size.width * 5 / 64, textHeight*2, myWidth, textHeight) display:NO]; -
branches/PlayerFramework/CommonMediaPlayer/debug_main.m
r1095 r1142 69 69 NSApplicationLoad(); 70 70 71 #if 072 CMPDVDPlayerPlayHead *playhead = [[CMPDVDPlayerPlayHead alloc] initWithContentRect:NSMakeRect(0, 0, 1440, 900) position:CMPDVDOverlayLowerLeftoverWindow:0];71 #if 1 72 CMPDVDPlayerPlayHead *playhead = [[CMPDVDPlayerPlayHead alloc] initWithContentRect:NSMakeRect(0, 0, 1440, 900) overWindow:0]; 73 73 74 74 [playhead setPlayer:[[something alloc] init]]; … … 76 76 #endif 77 77 78 #if 0 78 79 NSArray *items = [NSArray arrayWithObjects:@"Resume Playback", @"Start From Beginning", @"Main Menu", nil]; 79 80 CMPDVDBlurredMenu *menu = [[CMPDVDBlurredMenu alloc] initWithItems:items contentRect:NSMakeRect(0, 0, 1440, 900) overWindow:0]; … … 81 82 82 83 [NSTimer scheduledTimerWithTimeInterval:.2 target:[[something alloc] init] selector:@selector(randomDirection:) userInfo:menu repeats:YES]; 84 #endif 83 85 84 86 NSRunLoop *currentRL = [NSRunLoop currentRunLoop];
