From 5890c30cc589214a94b2dff02c9e695a2c4d83c6 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 21 May 2007 03:56:55 +0000 Subject: [PATCH] when fading the drag overlay, have it expand if the window is expanding (i.e. auto resize is enabled) --- macosx/Controller.m | 3 +++ macosx/DragOverlayView.m | 11 +++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index e737331a5..ef12afc16 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1326,6 +1326,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy //badge dock [fBadger updateBadgeWithCompleted: fCompleted]; + NSLog([NSString stringWithInt: fCompleted]); } - (void) updateTorrentsInQueue @@ -2947,6 +2948,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy - (void) windowDidResize: (NSNotification *) notification { + [fOverlayWindow setFrame: [fWindow frame] display: YES]; + //hide search filter if it overlaps filter buttons [fSearchFilterField setHidden: NSMaxX([fPauseFilterButton frame]) + 2.0 > [fSearchFilterField frame].origin.x]; } diff --git a/macosx/DragOverlayView.m b/macosx/DragOverlayView.m index 4f5dae5e1..78bf92ed7 100644 --- a/macosx/DragOverlayView.m +++ b/macosx/DragOverlayView.m @@ -32,8 +32,6 @@ { //create badge NSRect badgeRect = NSMakeRect(0, 0, 325.0, 84.0); - fBackBadge = [[NSImage alloc] initWithSize: badgeRect.size]; - [fBackBadge lockFocus]; float minX = NSMinX(badgeRect), minY = NSMinY(badgeRect), @@ -51,15 +49,12 @@ [bp appendBezierPathWithArcFromPoint: NSMakePoint(maxX, minY) toPoint: NSMakePoint(maxX, midY) radius: radius]; [bp closePath]; + fBackBadge = [[NSImage alloc] initWithSize: badgeRect.size]; + [fBackBadge lockFocus]; + [[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.75] set]; [bp fill]; - /* - [NSBezierPath setDefaultLineWidth: 5.0]; - [[NSColor whiteColor] set]; - [bp stroke]; - [NSBezierPath strokeLineFromPoint: NSMakePoint(minX, minY + radius) toPoint: NSMakePoint(minX, maxY - radius)];*/ - [fBackBadge unlockFocus]; //create attributes