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

Filter bar background is now from an image.

This commit is contained in:
Mitchell Livingston 2006-07-15 20:33:53 +00:00
parent bbad665cd0
commit c34434d7bd
3 changed files with 7 additions and 1 deletions

View file

@ -96,6 +96,7 @@
A24F19080A3A790800C9C145 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A24F19070A3A790800C9C145 /* Sparkle.framework */; };
A24F19210A3A796800C9C145 /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = A24F19070A3A790800C9C145 /* Sparkle.framework */; };
A2519D490A2FADFC00479D0C /* SmoothAquaView.m in Sources */ = {isa = PBXBuildFile; fileRef = A2519D470A2FADFC00479D0C /* SmoothAquaView.m */; };
A253F6EA0A698823008EE24F /* FilterBarBackground.tiff in Resources */ = {isa = PBXBuildFile; fileRef = A253F6E90A698823008EE24F /* FilterBarBackground.tiff */; };
A25FCDDF0A37695F002BCBBE /* PauseSelected.png in CopyFiles */ = {isa = PBXBuildFile; fileRef = A25FCDDD0A37695F002BCBBE /* PauseSelected.png */; };
A25FCDE00A37695F002BCBBE /* ResumeSelected.png in CopyFiles */ = {isa = PBXBuildFile; fileRef = A25FCDDE0A37695F002BCBBE /* ResumeSelected.png */; };
A25FCDEF0A3769A6002BCBBE /* PauseSelected.png in Resources */ = {isa = PBXBuildFile; fileRef = A25FCDDD0A37695F002BCBBE /* PauseSelected.png */; };
@ -285,6 +286,7 @@
A24F19070A3A790800C9C145 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
A2519D470A2FADFC00479D0C /* SmoothAquaView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = SmoothAquaView.m; path = macosx/SmoothAquaView.m; sourceTree = "<group>"; };
A2519D480A2FADFC00479D0C /* SmoothAquaView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = SmoothAquaView.h; path = macosx/SmoothAquaView.h; sourceTree = "<group>"; };
A253F6E90A698823008EE24F /* FilterBarBackground.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = FilterBarBackground.tiff; path = macosx/Images/FilterBarBackground.tiff; sourceTree = "<group>"; };
A25FCDDD0A37695F002BCBBE /* PauseSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = PauseSelected.png; path = macosx/Images/PauseSelected.png; sourceTree = "<group>"; };
A25FCDDE0A37695F002BCBBE /* ResumeSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ResumeSelected.png; path = macosx/Images/ResumeSelected.png; sourceTree = "<group>"; };
A27431D80A68538400FA780A /* BarButton.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = BarButton.h; path = macosx/BarButton.h; sourceTree = "<group>"; };
@ -451,6 +453,7 @@
A27674CE0A5AF1FF00334870 /* SpeedLimitButtonPressed.png */,
A27A53560A06A76400E1F16F /* StatusSep.png */,
A27A53650A06AEDB00E1F16F /* StatusBorder.png */,
A253F6E90A698823008EE24F /* FilterBarBackground.tiff */,
A2912C520A2956E80097A0CA /* PrefsWindow.nib */,
);
name = Resources;
@ -704,6 +707,7 @@
A2F6DB090A55F31C0058D1E5 /* SpeedLimitButton.png in Resources */,
A27674CF0A5AF1FF00334870 /* SpeedLimitButtonPressed.png in Resources */,
A20AB97B0A5C622A004F81FA /* SmallTurtle.png in Resources */,
A253F6EA0A698823008EE24F /* FilterBarBackground.tiff in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View file

@ -30,7 +30,8 @@
{
if ((self = [super initWithFrame: frameRect]))
{
fBackgroundColor = [[NSColor colorWithCalibratedRed: 0.7137 green: 0.7529 blue: 0.8118 alpha: 1.0] retain];
fBackgroundColor = [[NSColor colorWithPatternImage:
[NSImage imageNamed: @"FilterBarBackground.tiff"]] retain];
}
return self;
}
@ -44,6 +45,7 @@
- (void) drawRect: (NSRect) rect
{
[fBackgroundColor set];
[[NSGraphicsContext currentContext] setPatternPhase: [self frame].origin];
NSRectFill([self bounds]);
}

Binary file not shown.