#6041: Use AppKit status light icons (patch by mattrajca)

This commit is contained in:
Mike Gelfand 2015-12-27 21:50:02 +00:00
parent d0e157eceb
commit 1475abf48e
11 changed files with 23 additions and 23 deletions

View File

@ -421,15 +421,15 @@
{
case PORT_STATUS_OPEN:
[fPortStatusField setStringValue: NSLocalizedString(@"Port is open", "Preferences -> Network -> port status")];
[fPortStatusImage setImage: [NSImage imageNamed: @"GreenDot"]];
[fPortStatusImage setImage: [NSImage imageNamed: NSImageNameStatusAvailable]];
break;
case PORT_STATUS_CLOSED:
[fPortStatusField setStringValue: NSLocalizedString(@"Port is closed", "Preferences -> Network -> port status")];
[fPortStatusImage setImage: [NSImage imageNamed: @"RedDot"]];
[fPortStatusImage setImage: [NSImage imageNamed: NSImageNameStatusUnavailable]];
break;
case PORT_STATUS_ERROR:
[fPortStatusField setStringValue: NSLocalizedString(@"Port check site is down", "Preferences -> Network -> port status")];
[fPortStatusImage setImage: [NSImage imageNamed: @"YellowDot"]];
[fPortStatusImage setImage: [NSImage imageNamed: NSImageNameStatusPartiallyAvailable]];
break;
default:
NSAssert1(NO, @"Port checker returned invalid status: %d", [fPortChecker status]);

View File

@ -1826,7 +1826,7 @@
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2360,7 +2360,7 @@ AEEAAAAAAAAAAAAAAAAAACYcA
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1832,7 +1832,7 @@
<imageView id="354">
<rect key="frame" x="210" y="154" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="209" y="153" width="16" height="16"/>
@ -2290,7 +2290,7 @@ E1YTaBNrE3AAAAAAAAACAQAAAAAAAABBAAAAAAAAAAAAAAAAAAATcg
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1826,7 +1826,7 @@
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2360,7 +2360,7 @@ AEEAAAAAAAAAAAAAAAAAACYcA
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1828,7 +1828,7 @@ los límites globales de ancho de banda</string>
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2266,7 +2266,7 @@ AEEAAAAAAAAAAAAAAAAAAA+cA
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1830,7 +1830,7 @@
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2272,7 +2272,7 @@ AEEAAAAAAAAAAAAAAAAAAA+cA
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1826,7 +1826,7 @@
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2280,7 +2280,7 @@ E1YTaBNrE3AAAAAAAAACAQAAAAAAAABBAAAAAAAAAAAAAAAAAAATcg
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1830,7 +1830,7 @@
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2272,7 +2272,7 @@ AEEAAAAAAAAAAAAAAAAAAA+cA
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1830,7 +1830,7 @@
<imageView id="354">
<rect key="frame" x="251" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="250" y="143" width="16" height="16"/>
@ -2288,7 +2288,7 @@ E1YTaBNrE3AAAAAAAAACAQAAAAAAAABBAAAAAAAAAAAAAAAAAAATcg
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1840,7 +1840,7 @@
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2333,7 +2333,7 @@ AAAAAAAAAAAAAAAAAAAcfg
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>

View File

@ -1826,7 +1826,7 @@
<imageView id="354">
<rect key="frame" x="221" y="144" width="14" height="14"/>
<autoresizingMask key="autoresizingMask"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="YellowDot" id="1249"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" animates="YES" imageScaling="proportionallyDown" image="NSStatusPartiallyAvailable" id="1249"/>
</imageView>
<progressIndicator horizontalHuggingPriority="750" verticalHuggingPriority="750" maxValue="100" displayedWhenStopped="NO" bezeled="NO" indeterminate="YES" controlSize="small" style="spinning" id="353">
<rect key="frame" x="220" y="143" width="16" height="16"/>
@ -2360,7 +2360,7 @@ AEEAAAAAAAAAAAAAAAAAACYcA
</image>
<image name="NSAddTemplate" width="11" height="11"/>
<image name="NSRemoveTemplate" width="11" height="11"/>
<image name="NSStatusPartiallyAvailable" width="16" height="16"/>
<image name="TurtleTemplate" width="18" height="18"/>
<image name="YellowDot" width="16" height="16"/>
</resources>
</document>