mirror of
https://github.com/transmission/transmission
synced 2025-01-19 05:19:54 +00:00
Merge pull request #1572 from transmission/remove-unused-gradient
Remove unused background gradient variables
This commit is contained in:
commit
df04a59350
3 changed files with 0 additions and 36 deletions
|
@ -24,7 +24,6 @@
|
|||
|
||||
@interface FilterBarView : NSView
|
||||
{
|
||||
NSGradient * fGradient;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
@interface StatusBarView : NSView
|
||||
{
|
||||
NSGradient * fGradient;
|
||||
CIImage * fNoiseImage;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
* DEALINGS IN THE SOFTWARE.
|
||||
*****************************************************************************/
|
||||
|
||||
#import <QuartzCore/QuartzCore.h>
|
||||
|
||||
#import "StatusBarView.h"
|
||||
#import "NSApplicationAdditions.h"
|
||||
|
||||
|
@ -33,37 +31,6 @@
|
|||
|
||||
@implementation StatusBarView
|
||||
|
||||
- (id) initWithFrame: (NSRect) rect
|
||||
{
|
||||
if ((self = [super initWithFrame: rect]))
|
||||
{
|
||||
NSColor * lightColor = [NSColor colorWithCalibratedRed: 160.0/255.0 green: 160.0/255.0 blue: 160.0/255.0 alpha: 1.0];
|
||||
NSColor * darkColor = [NSColor colorWithCalibratedRed: 155.0/255.0 green: 155.0/255.0 blue: 155.0/255.0 alpha: 1.0];
|
||||
fGradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor];
|
||||
|
||||
CIFilter * randomFilter = [CIFilter filterWithName: @"CIRandomGenerator"];
|
||||
[randomFilter setDefaults];
|
||||
|
||||
fNoiseImage = [randomFilter valueForKey: @"outputImage"];
|
||||
|
||||
CIFilter * monochromeFilter = [CIFilter filterWithName: @"CIColorMonochrome"];
|
||||
[monochromeFilter setDefaults];
|
||||
[monochromeFilter setValue: fNoiseImage forKey: @"inputImage"];
|
||||
CIColor * monoFilterColor = [CIColor colorWithRed: 1.0 green: 1.0 blue: 1.0];
|
||||
[monochromeFilter setValue: monoFilterColor forKey: @"inputColor"];
|
||||
fNoiseImage = [monochromeFilter valueForKey:@"outputImage"];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reload) name: NSWindowDidBecomeMainNotification object: [self window]];
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reload) name: NSWindowDidResignMainNotification object: [self window]];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
}
|
||||
|
||||
- (BOOL) mouseDownCanMoveWindow
|
||||
{
|
||||
return YES;
|
||||
|
|
Loading…
Reference in a new issue