From f250038102970c5dfe939aa0d446d24abaab4cb6 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 19 May 2007 15:10:16 +0000 Subject: [PATCH] show a globe icon on the drag overlay for url's (needs a higher quality image) --- Transmission.xcodeproj/project.pbxproj | 4 ++++ macosx/DragOverlayView.m | 3 ++- macosx/DragOverlayWindow.m | 3 +-- macosx/Images/Globe.tiff | Bin 0 -> 3034 bytes 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 macosx/Images/Globe.tiff diff --git a/Transmission.xcodeproj/project.pbxproj b/Transmission.xcodeproj/project.pbxproj index 3b90fbc33..5b1d66124 100644 --- a/Transmission.xcodeproj/project.pbxproj +++ b/Transmission.xcodeproj/project.pbxproj @@ -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 = ""; }; A2FB057C0BFEB6800095564D /* DragOverlayView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = DragOverlayView.h; path = macosx/DragOverlayView.h; sourceTree = ""; }; A2FB057D0BFEB6800095564D /* DragOverlayView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = DragOverlayView.m; path = macosx/DragOverlayView.m; sourceTree = ""; }; + A2FB06950BFF484A0095564D /* Globe.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = Globe.tiff; path = macosx/Images/Globe.tiff; sourceTree = ""; }; /* 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; }; diff --git a/macosx/DragOverlayView.m b/macosx/DragOverlayView.m index 9619aaf41..add09eefd 100644 --- a/macosx/DragOverlayView.m +++ b/macosx/DragOverlayView.m @@ -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]; diff --git a/macosx/DragOverlayWindow.m b/macosx/DragOverlayWindow.m index 6a20b67f0..9573306b1 100644 --- a/macosx/DragOverlayWindow.m +++ b/macosx/DragOverlayWindow.m @@ -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 diff --git a/macosx/Images/Globe.tiff b/macosx/Images/Globe.tiff new file mode 100644 index 0000000000000000000000000000000000000000..3107a0a0e0dd99d51b65ce29fac9d9d33b868609 GIT binary patch literal 3034 zcmYk8dsI_b7KiV>xk+w9LLQKWM<5U6AtFLhM9`9i@DLG$wTSpi01*W#reaY+5)u%Q zNHAF>f9Sbb#L>n)|%(64H&RXYu>)ZRc&pQ8| z_3HtD0B~?t0$gd>A|@HH5zD1r8KEAOa!FcJ*u~_ftm7&Jmr8A?B1nA{PqkN;6SgFz zGTP}vcgv=T?l>5OkxKY%Kas4xLkB~UgGE+wn^{G~fGSDQbfKatu z{^g$+MqbYs^*p)mz)*D0?|azv3g;w8%cBF%Hyh>NTR3>SPS(2O4J8sH!r;vP9NnhG z9_OEZ-QSPSb@Vh{{TcI{pS^f;XG1KyVMX2GaDEiO`KY4h9jp2%}O>U$!4KXbcTGSNU|T;jsrevQ#_BQ9!@6$)NhgD^awG^MiHA>djzv>^{ATsuw zc5y7jDTy45kmgN89W4khH6qh^la9Wwrr>rp)^LOpA)*)*~4$83H}n7eHx z?x{YTvzv3QO~9!A>Yb8Vm*v8&0%R_ZJe;WBUIYST?)$O3$d@AA_iafVs{X@o0!b{a z(hb$d6iO1Lv2R27nk9szpEo_#=R9z_vmZ@NKK9l#(=7fvGEAf1ui8hV22uS7g}{m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