1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

show a globe icon on the drag overlay for url's (needs a higher quality image)

This commit is contained in:
Mitchell Livingston 2007-05-19 15:10:16 +00:00
parent f72b93a3a7
commit f250038102
4 changed files with 7 additions and 3 deletions

View file

@ -165,6 +165,7 @@
A2F40AE40A361C00006B8288 /* Transmission.icns in Resources */ = {isa = PBXBuildFile; fileRef = 4D2784360905709500687951 /* Transmission.icns */; };
A2F6DB090A55F31C0058D1E5 /* SpeedLimitButton.png in Resources */ = {isa = PBXBuildFile; fileRef = A2F6DB070A55F31C0058D1E5 /* SpeedLimitButton.png */; };
A2FB057F0BFEB6800095564D /* DragOverlayView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2FB057D0BFEB6800095564D /* DragOverlayView.m */; };
A2FB06960BFF484A0095564D /* Globe.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A2FB06950BFF484A0095564D /* Globe.tiff */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -416,6 +417,7 @@
A2F8951E0A2D4BA500ED2127 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = Credits.rtf; path = macosx/Credits.rtf; sourceTree = "<group>"; };
A2FB057C0BFEB6800095564D /* DragOverlayView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = DragOverlayView.h; path = macosx/DragOverlayView.h; sourceTree = "<group>"; };
A2FB057D0BFEB6800095564D /* DragOverlayView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = DragOverlayView.m; path = macosx/DragOverlayView.m; sourceTree = "<group>"; };
A2FB06950BFF484A0095564D /* Globe.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = Globe.tiff; path = macosx/Images/Globe.tiff; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -548,6 +550,7 @@
A22A8D540AEEAFA5007E9CB9 /* Localizable.strings */,
A259316A0A73B2CC002F4FE7 /* Transmission Help */,
A2F8951E0A2D4BA500ED2127 /* Credits.rtf */,
A2FB06950BFF484A0095564D /* Globe.tiff */,
A2305AA40A3DCCEF00AB2D77 /* ProgressBarEndAdvanced.png */,
A2305AA50A3DCCEF00AB2D77 /* ProgressBarEndBlue.png */,
A2305AA60A3DCCEF00AB2D77 /* ProgressBarEndWhite.png */,
@ -908,6 +911,7 @@
A22A8D560AEEAFA5007E9CB9 /* Localizable.strings in Resources */,
A24103070AF80E390001C8D0 /* FilterButtonPressedLeft.png in Resources */,
A28FF34E0BB23A4E001F5010 /* ProgressBarLightGreen.png in Resources */,
A2FB06960BFF484A0095564D /* Globe.tiff in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View file

@ -34,12 +34,13 @@
fBackBadge = [[NSImage alloc] initWithSize: NSMakeSize(300.0, 84.0)];
[fBackBadge lockFocus];
[NSBezierPath setDefaultLineWidth: 3.0];
NSRect badgeRect = NSMakeRect(0, 0, 300.0, 80.0);
[[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.75] set];
[NSBezierPath fillRect: badgeRect];
[[NSColor whiteColor] set];
[NSBezierPath setDefaultLineWidth: 3.0];
[NSBezierPath strokeRect: badgeRect];
[fBackBadge unlockFocus];

View file

@ -39,7 +39,6 @@
[self setAlphaValue: 1.0];
[self setOpaque: NO];
[self setHasShadow: NO];
[self setLevel: NSStatusWindowLevel];
DragOverlayView * view = [[DragOverlayView alloc] initWithFrame: [self frame]];
[self setContentView: view];
@ -107,7 +106,7 @@
#warning get globe icon
NSImage * icon = nil;
[[self contentView] setOverlay: icon mainLine: NSLocalizedString(@"Web Address", "Drag overlay -> url") subLine: url];
[[self contentView] setOverlay: [NSImage imageNamed: @"Globe.tiff"] mainLine: NSLocalizedString(@"Web Address", "Drag overlay -> url") subLine: url];
}
@end

BIN
macosx/Images/Globe.tiff Normal file

Binary file not shown.