when fading the drag overlay, have it expand if the window is expanding (i.e. auto resize is enabled)
This commit is contained in:
parent
04c813f9ef
commit
5890c30cc5
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue