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
|
//badge dock
|
||||||
[fBadger updateBadgeWithCompleted: fCompleted];
|
[fBadger updateBadgeWithCompleted: fCompleted];
|
||||||
|
NSLog([NSString stringWithInt: fCompleted]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) updateTorrentsInQueue
|
- (void) updateTorrentsInQueue
|
||||||
|
@ -2947,6 +2948,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
- (void) windowDidResize: (NSNotification *) notification
|
- (void) windowDidResize: (NSNotification *) notification
|
||||||
{
|
{
|
||||||
|
[fOverlayWindow setFrame: [fWindow frame] display: YES];
|
||||||
|
|
||||||
//hide search filter if it overlaps filter buttons
|
//hide search filter if it overlaps filter buttons
|
||||||
[fSearchFilterField setHidden: NSMaxX([fPauseFilterButton frame]) + 2.0 > [fSearchFilterField frame].origin.x];
|
[fSearchFilterField setHidden: NSMaxX([fPauseFilterButton frame]) + 2.0 > [fSearchFilterField frame].origin.x];
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,6 @@
|
||||||
{
|
{
|
||||||
//create badge
|
//create badge
|
||||||
NSRect badgeRect = NSMakeRect(0, 0, 325.0, 84.0);
|
NSRect badgeRect = NSMakeRect(0, 0, 325.0, 84.0);
|
||||||
fBackBadge = [[NSImage alloc] initWithSize: badgeRect.size];
|
|
||||||
[fBackBadge lockFocus];
|
|
||||||
|
|
||||||
float minX = NSMinX(badgeRect),
|
float minX = NSMinX(badgeRect),
|
||||||
minY = NSMinY(badgeRect),
|
minY = NSMinY(badgeRect),
|
||||||
|
@ -51,15 +49,12 @@
|
||||||
[bp appendBezierPathWithArcFromPoint: NSMakePoint(maxX, minY) toPoint: NSMakePoint(maxX, midY) radius: radius];
|
[bp appendBezierPathWithArcFromPoint: NSMakePoint(maxX, minY) toPoint: NSMakePoint(maxX, midY) radius: radius];
|
||||||
[bp closePath];
|
[bp closePath];
|
||||||
|
|
||||||
|
fBackBadge = [[NSImage alloc] initWithSize: badgeRect.size];
|
||||||
|
[fBackBadge lockFocus];
|
||||||
|
|
||||||
[[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.75] set];
|
[[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.75] set];
|
||||||
[bp fill];
|
[bp fill];
|
||||||
|
|
||||||
/*
|
|
||||||
[NSBezierPath setDefaultLineWidth: 5.0];
|
|
||||||
[[NSColor whiteColor] set];
|
|
||||||
[bp stroke];
|
|
||||||
[NSBezierPath strokeLineFromPoint: NSMakePoint(minX, minY + radius) toPoint: NSMakePoint(minX, maxY - radius)];*/
|
|
||||||
|
|
||||||
[fBackBadge unlockFocus];
|
[fBackBadge unlockFocus];
|
||||||
|
|
||||||
//create attributes
|
//create attributes
|
||||||
|
|
Loading…
Reference in New Issue