mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
Blue turtle for aqua, gray turtle for graphite.
This commit is contained in:
parent
5f5d94e3e0
commit
21a7f58256
7 changed files with 24 additions and 6 deletions
|
@ -112,8 +112,9 @@
|
|||
A261F1DC0A69A1610002815A /* Growl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A261F1DB0A69A1610002815A /* Growl.framework */; };
|
||||
A261F1E40A69A1B10002815A /* Growl.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = A261F1DB0A69A1610002815A /* Growl.framework */; };
|
||||
A26D450B0A0503AC00A10BB3 /* peermessages.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D1838A309DEC0430047D688 /* peermessages.h */; };
|
||||
A26E6A190A6A8C18007E3C14 /* SpeedLimitButtonPressedBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = A26E6A170A6A8C18007E3C14 /* SpeedLimitButtonPressedBlue.png */; };
|
||||
A26E6A1A0A6A8C18007E3C14 /* SpeedLimitButtonPressedGraphite.png in Resources */ = {isa = PBXBuildFile; fileRef = A26E6A180A6A8C18007E3C14 /* SpeedLimitButtonPressedGraphite.png */; };
|
||||
A27431DB0A68538400FA780A /* BarButton.m in Sources */ = {isa = PBXBuildFile; fileRef = A27431D90A68538400FA780A /* BarButton.m */; };
|
||||
A27674CF0A5AF1FF00334870 /* SpeedLimitButtonPressed.png in Resources */ = {isa = PBXBuildFile; fileRef = A27674CE0A5AF1FF00334870 /* SpeedLimitButtonPressed.png */; };
|
||||
A27A53570A06A76400E1F16F /* StatusSep.png in Resources */ = {isa = PBXBuildFile; fileRef = A27A53560A06A76400E1F16F /* StatusSep.png */; };
|
||||
A27A53660A06AEDB00E1F16F /* StatusBorder.png in Resources */ = {isa = PBXBuildFile; fileRef = A27A53650A06AEDB00E1F16F /* StatusBorder.png */; };
|
||||
A289EB0C0A33C56D00B082A3 /* ButtonBorder.png in Resources */ = {isa = PBXBuildFile; fileRef = A289EB0B0A33C56D00B082A3 /* ButtonBorder.png */; };
|
||||
|
@ -309,9 +310,10 @@
|
|||
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>"; };
|
||||
A261F1DB0A69A1610002815A /* Growl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Growl.framework; sourceTree = "<group>"; };
|
||||
A26E6A170A6A8C18007E3C14 /* SpeedLimitButtonPressedBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = SpeedLimitButtonPressedBlue.png; path = macosx/Images/SpeedLimitButtonPressedBlue.png; sourceTree = "<group>"; };
|
||||
A26E6A180A6A8C18007E3C14 /* SpeedLimitButtonPressedGraphite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = SpeedLimitButtonPressedGraphite.png; path = macosx/Images/SpeedLimitButtonPressedGraphite.png; sourceTree = "<group>"; };
|
||||
A27431D80A68538400FA780A /* BarButton.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = BarButton.h; path = macosx/BarButton.h; sourceTree = "<group>"; };
|
||||
A27431D90A68538400FA780A /* BarButton.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = BarButton.m; path = macosx/BarButton.m; sourceTree = "<group>"; };
|
||||
A27674CE0A5AF1FF00334870 /* SpeedLimitButtonPressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = SpeedLimitButtonPressed.png; path = macosx/Images/SpeedLimitButtonPressed.png; sourceTree = "<group>"; };
|
||||
A27A53420A06A62500E1F16F /* StatusSep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = StatusSep.png; path = macosx/Images/StatusSep.png; sourceTree = "<group>"; };
|
||||
A27A53560A06A76400E1F16F /* StatusSep.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = StatusSep.png; path = macosx/Images/StatusSep.png; sourceTree = "<group>"; };
|
||||
A27A53640A06AED200E1F16F /* StatusBorder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = StatusBorder.png; path = macosx/Images/StatusBorder.png; sourceTree = "<group>"; };
|
||||
|
@ -471,7 +473,8 @@
|
|||
A28DBADB0A33C1D800F4B4A7 /* ActionButton.png */,
|
||||
A2173E1B0A33C1B300B0D8AB /* ActionButtonPressed.png */,
|
||||
A2F6DB070A55F31C0058D1E5 /* SpeedLimitButton.png */,
|
||||
A27674CE0A5AF1FF00334870 /* SpeedLimitButtonPressed.png */,
|
||||
A26E6A170A6A8C18007E3C14 /* SpeedLimitButtonPressedBlue.png */,
|
||||
A26E6A180A6A8C18007E3C14 /* SpeedLimitButtonPressedGraphite.png */,
|
||||
A27A53560A06A76400E1F16F /* StatusSep.png */,
|
||||
A27A53650A06AEDB00E1F16F /* StatusBorder.png */,
|
||||
A253F6F20A698970008EE24F /* FilterBarBackground.png */,
|
||||
|
@ -736,7 +739,6 @@
|
|||
A28C43F40A4A5D700091A302 /* Transmission Help in Resources */,
|
||||
A2D0E0490A54A97C003C72CF /* Bandwidth.png in Resources */,
|
||||
A2F6DB090A55F31C0058D1E5 /* SpeedLimitButton.png in Resources */,
|
||||
A27674CF0A5AF1FF00334870 /* SpeedLimitButtonPressed.png in Resources */,
|
||||
A20AB97B0A5C622A004F81FA /* SmallTurtle.png in Resources */,
|
||||
A253F6F30A698970008EE24F /* FilterBarBackground.png in Resources */,
|
||||
A253F70B0A6990EB008EE24F /* FilterButtonOverMain.png in Resources */,
|
||||
|
@ -748,6 +750,8 @@
|
|||
A253F72A0A699373008EE24F /* FilterButtonSelectedLeft.png in Resources */,
|
||||
A253F72B0A699373008EE24F /* FilterButtonSelectedMain.png in Resources */,
|
||||
A253F72C0A699373008EE24F /* FilterButtonSelectedRight.png in Resources */,
|
||||
A26E6A190A6A8C18007E3C14 /* SpeedLimitButtonPressedBlue.png in Resources */,
|
||||
A26E6A1A0A6A8C18007E3C14 /* SpeedLimitButtonPressedGraphite.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
|
@ -125,6 +125,8 @@
|
|||
- (void) showInfo: (id) sender;
|
||||
- (void) setInfoTab: (id) sender;
|
||||
|
||||
- (void) updateControlTint: (NSNotification *) notification;
|
||||
|
||||
- (void) updateUI: (NSTimer *) timer;
|
||||
- (void) updateTorrentHistory;
|
||||
|
||||
|
|
|
@ -155,6 +155,8 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
[self showStatusBar: [fDefaults boolForKey: @"StatusBar"] animate: NO];
|
||||
|
||||
//set speed limit
|
||||
[self updateControlTint: nil];
|
||||
|
||||
if ([fDefaults boolForKey: @"SpeedLimit"])
|
||||
{
|
||||
[fSpeedLimitItem setState: NSOnState];
|
||||
|
@ -259,6 +261,9 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
//observe notifications
|
||||
NSNotificationCenter * nc = [NSNotificationCenter defaultCenter];
|
||||
|
||||
[nc addObserver: self selector: @selector(updateControlTint:)
|
||||
name: NSControlTintDidChangeNotification object: nil];
|
||||
|
||||
[nc addObserver: self selector: @selector(prepareForUpdate:)
|
||||
name: SUUpdaterWillRestartNotification object: nil];
|
||||
fUpdateInProgress = NO;
|
||||
|
@ -818,6 +823,13 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
[fInfoController setPreviousTab];
|
||||
}
|
||||
|
||||
- (void) updateControlTint: (NSNotification *) notification
|
||||
{
|
||||
[fSpeedLimitButton setAlternateImage: [fDefaults integerForKey: @"AppleAquaColorVariant"] == NSBlueControlTint
|
||||
? [NSImage imageNamed: @"SpeedLimitButtonPressedBlue.png"]
|
||||
: [NSImage imageNamed: @"SpeedLimitButtonPressedGraphite.png"]];
|
||||
}
|
||||
|
||||
- (void) updateUI: (NSTimer *) t
|
||||
{
|
||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
||||
|
@ -1954,7 +1966,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
break;
|
||||
|
||||
case kIOMessageCanSystemSleep:
|
||||
/* Prevent idle sleep unless all paused */
|
||||
//pevent idle sleep unless all paused
|
||||
active = NO;
|
||||
enumerator = [fTorrents objectEnumerator];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
|
|
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
2
macosx/English.lproj/MainMenu.nib/info.nib
generated
|
@ -31,7 +31,7 @@
|
|||
<integer>3</integer>
|
||||
<key>IBOpenObjects</key>
|
||||
<array>
|
||||
<integer>1603</integer>
|
||||
<integer>21</integer>
|
||||
</array>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8J135</string>
|
||||
|
|
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/MainMenu.nib/keyedobjects.nib
generated
Binary file not shown.
BIN
macosx/Images/SpeedLimitButtonPressedGraphite.png
Normal file
BIN
macosx/Images/SpeedLimitButtonPressedGraphite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 523 B |
Loading…
Reference in a new issue