mirror of
https://github.com/avatsaev/touchbar_nyancat
synced 2024-11-25 04:30:19 +00:00
longer nyan
This commit is contained in:
parent
b23301187c
commit
b9d9c8ced4
5 changed files with 22 additions and 20 deletions
|
@ -14,8 +14,8 @@
|
|||
A3826CDA1DCE79B900B7C41E /* NyanCatCanvas.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3826CD91DCE79B900B7C41E /* NyanCatCanvas.swift */; };
|
||||
A3826CDC1DCE7B5000B7C41E /* NyanCatCanvas.xib in Resources */ = {isa = PBXBuildFile; fileRef = A3826CDB1DCE7B5000B7C41E /* NyanCatCanvas.xib */; };
|
||||
A3A050DC1DCE96BD009D9775 /* nyan_music.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = A3A050DB1DCE96BD009D9775 /* nyan_music.mp3 */; };
|
||||
A3A050DE1DCE9DB9009D9775 /* nyan_long@2x.gif in Resources */ = {isa = PBXBuildFile; fileRef = A3A050DD1DCE9DB9009D9775 /* nyan_long@2x.gif */; };
|
||||
A3A050E01DCE9E03009D9775 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = A3A050DF1DCE9E03009D9775 /* icon.png */; };
|
||||
A3A050E41DCEAB08009D9775 /* nyan_long@2x.gif in Resources */ = {isa = PBXBuildFile; fileRef = A3A050E31DCEAB08009D9775 /* nyan_long@2x.gif */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
|
@ -28,8 +28,8 @@
|
|||
A3826CD91DCE79B900B7C41E /* NyanCatCanvas.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NyanCatCanvas.swift; sourceTree = "<group>"; };
|
||||
A3826CDB1DCE7B5000B7C41E /* NyanCatCanvas.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = NyanCatCanvas.xib; sourceTree = "<group>"; };
|
||||
A3A050DB1DCE96BD009D9775 /* nyan_music.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = nyan_music.mp3; sourceTree = "<group>"; };
|
||||
A3A050DD1DCE9DB9009D9775 /* nyan_long@2x.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = "nyan_long@2x.gif"; sourceTree = "<group>"; };
|
||||
A3A050DF1DCE9E03009D9775 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = "<group>"; };
|
||||
A3A050E31DCEAB08009D9775 /* nyan_long@2x.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = "nyan_long@2x.gif"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
|
@ -78,8 +78,8 @@
|
|||
A3826CD61DCE73EA00B7C41E /* img */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A3A050E31DCEAB08009D9775 /* nyan_long@2x.gif */,
|
||||
A3A050DF1DCE9E03009D9775 /* icon.png */,
|
||||
A3A050DD1DCE9DB9009D9775 /* nyan_long@2x.gif */,
|
||||
);
|
||||
name = img;
|
||||
sourceTree = "<group>";
|
||||
|
@ -153,11 +153,11 @@
|
|||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A3826CDC1DCE7B5000B7C41E /* NyanCatCanvas.xib in Resources */,
|
||||
A3A050DE1DCE9DB9009D9775 /* nyan_long@2x.gif in Resources */,
|
||||
A3A050E01DCE9E03009D9775 /* icon.png in Resources */,
|
||||
A3A050DC1DCE96BD009D9775 /* nyan_music.mp3 in Resources */,
|
||||
A362A10A1DCE6D6B00737197 /* Assets.xcassets in Resources */,
|
||||
A362A10D1DCE6D6B00737197 /* Main.storyboard in Resources */,
|
||||
A3A050E41DCEAB08009D9775 /* nyan_long@2x.gif in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
|
|
@ -22,28 +22,30 @@
|
|||
</window>
|
||||
<touchBar key="touchBar" id="xmN-zC-h8c">
|
||||
<touchBarItems>
|
||||
<touchBarItem id="NQS-6B-a8Z">
|
||||
<viewController key="viewController" id="GUf-S8-gJ6">
|
||||
<view key="view" translatesAutoresizingMaskIntoConstraints="NO" id="AHr-V1-qgd">
|
||||
<rect key="frame" x="0.0" y="0.0" width="425" height="38"/>
|
||||
<touchBarItem id="HrR-h7-NCn">
|
||||
<viewController key="viewController" id="mWw-hs-xC2">
|
||||
<view key="view" translatesAutoresizingMaskIntoConstraints="NO" id="cF0-5M-j3l">
|
||||
<rect key="frame" x="0.0" y="0.0" width="960" height="38"/>
|
||||
<subviews>
|
||||
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="GP7-Ou-WRB" customClass="NyanCatCanvas" customModule="touchbar_nyancat" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="425" height="38"/>
|
||||
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="x10-iS-P7w" customClass="NyanCatCanvas" customModule="touchbar_nyancat" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="685" height="38"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="425" id="Ht8-Fv-QOU"/>
|
||||
<constraint firstAttribute="height" constant="38" id="adO-Rt-4tE"/>
|
||||
<constraint firstAttribute="height" constant="38" id="Kxz-Id-Bjk"/>
|
||||
<constraint firstAttribute="width" constant="685" id="R3d-YT-L8Y"/>
|
||||
</constraints>
|
||||
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="H5Z-QR-PZs"/>
|
||||
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="mGf-ax-GZr"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="GP7-Ou-WRB" firstAttribute="centerX" secondItem="AHr-V1-qgd" secondAttribute="centerX" id="ZQw-YQ-2MR"/>
|
||||
<constraint firstItem="GP7-Ou-WRB" firstAttribute="leading" secondItem="AHr-V1-qgd" secondAttribute="leading" id="fhL-3Z-orP"/>
|
||||
<constraint firstItem="GP7-Ou-WRB" firstAttribute="centerY" secondItem="AHr-V1-qgd" secondAttribute="centerY" id="zY8-RK-YI5"/>
|
||||
<constraint firstAttribute="width" constant="960" id="8fT-fS-RIV"/>
|
||||
<constraint firstItem="x10-iS-P7w" firstAttribute="top" secondItem="cF0-5M-j3l" secondAttribute="top" id="ckE-w9-eCn"/>
|
||||
<constraint firstItem="x10-iS-P7w" firstAttribute="leading" secondItem="cF0-5M-j3l" secondAttribute="leading" id="g6H-Pm-YqB"/>
|
||||
<constraint firstAttribute="bottom" secondItem="x10-iS-P7w" secondAttribute="bottom" id="oSM-F2-fZ7"/>
|
||||
<constraint firstAttribute="height" constant="38" id="rV9-Hn-8dZ"/>
|
||||
<constraint firstAttribute="trailing" secondItem="x10-iS-P7w" secondAttribute="trailing" constant="275" id="wT8-Om-0tY"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</viewController>
|
||||
<size key="designTimeSize" width="425" height="38"/>
|
||||
</touchBarItem>
|
||||
</touchBarItems>
|
||||
</touchBar>
|
||||
|
|
|
@ -15,7 +15,7 @@ class NyanCatCanvas: NSImageView {
|
|||
|
||||
// Drawing code here.
|
||||
|
||||
self.frame = CGRect(x: 0, y: 0, width: 425, height: 30)
|
||||
self.frame = CGRect(x: 0, y: 0, width: 685, height: 30)
|
||||
|
||||
self.animates = true
|
||||
self.image = NSImage(named: "nyan_long@2x.gif")!
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" id="Uhf-pL-gqw" customClass="NyanCatCanvas" customModule="touchbar_nyancat" customModuleProvider="target">
|
||||
<rect key="frame" x="0.0" y="0.0" width="287" height="48"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="48" height="48"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyUpOrDown" id="oNW-cg-k71"/>
|
||||
<point key="canvasLocation" x="-82.5" y="158"/>
|
||||
<point key="canvasLocation" x="-304" y="158"/>
|
||||
</imageView>
|
||||
</objects>
|
||||
</document>
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 47 KiB |
Loading…
Reference in a new issue