podfile updated. can now open Spotify UI from SpotMenu

This commit is contained in:
kmikiy
2017-02-21 13:47:16 +01:00
parent 16e05c83f8
commit 2cf75b4e8c
4 changed files with 29 additions and 13 deletions
+1 -1
View File
@@ -2,5 +2,5 @@ platform :osx, '10.10'
use_frameworks!
target 'SpotMenu' do
pod 'Spotify', '~> 0.0.1'
pod 'Spotify', '~> 0.1'
end
+4 -4
View File
@@ -1,12 +1,12 @@
PODS:
- Spotify (0.0.1)
- Spotify (0.1.0)
DEPENDENCIES:
- Spotify (~> 0.0.1)
- Spotify (~> 0.1)
SPEC CHECKSUMS:
Spotify: 2816b492c3710c6c9890dc86713d1df76a7b7fda
Spotify: bddc9cea36c82468ca82f40bf815d0445edb0988
PODFILE CHECKSUM: cc50ce99c03a2d3ff22497a8217adfb903782959
PODFILE CHECKSUM: c9d8619b1852aaef75398476b7ed9c39cebe7352
COCOAPODS: 1.2.0
+20 -8
View File
@@ -41,26 +41,26 @@
</buttonCell>
</button>
<button translatesAutoresizingMaskIntoConstraints="NO" id="MYl-ZD-MG0">
<rect key="frame" x="8" y="8" width="40" height="282"/>
<rect key="frame" x="2" y="8" width="40" height="282"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="GAV-fG-8yr"/>
</constraints>
<buttonCell key="cell" type="square" title="&lt;" bezelStyle="shadowlessSquare" imagePosition="left" alignment="left" inset="2" id="eyZ-Np-WLr">
<buttonCell key="cell" type="square" title="&lt;" bezelStyle="shadowlessSquare" alignment="left" inset="2" id="eyZ-Np-WLr">
<behavior key="behavior" lightByContents="YES"/>
<font key="font" size="13" name="AlNile"/>
<font key="font" size="20" name="AlNile"/>
</buttonCell>
<connections>
<action selector="goLeft:" target="-2" id="Nm1-Pi-Fbf"/>
</connections>
</button>
<button translatesAutoresizingMaskIntoConstraints="NO" id="pgo-pN-r7b">
<rect key="frame" x="252" y="8" width="40" height="282"/>
<rect key="frame" x="258" y="8" width="40" height="282"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="LyG-WF-Fdz"/>
</constraints>
<buttonCell key="cell" type="square" title="&gt;" bezelStyle="shadowlessSquare" imagePosition="right" alignment="right" imageScaling="proportionallyDown" inset="2" id="FxM-QC-fqk">
<buttonCell key="cell" type="square" title="&gt;" bezelStyle="shadowlessSquare" alignment="right" inset="2" id="FxM-QC-fqk">
<behavior key="behavior" lightByContents="YES"/>
<font key="font" size="13" name="AlNile"/>
<font key="font" size="20" name="AlNile"/>
</buttonCell>
<connections>
<action selector="goRight:" target="-2" id="7Pz-U6-kvG"/>
@@ -134,6 +134,17 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<button fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Sfg-o1-GVi">
<rect key="frame" x="0.0" y="224" width="26" height="26"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="StatusBarButtonImage" imagePosition="only" alignment="center" imageScaling="proportionallyDown" inset="2" id="OgE-Cq-jHl">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<action selector="openSpotify:" target="-2" id="cpn-ij-wmt"/>
</connections>
</button>
</subviews>
</visualEffectView>
</subviews>
@@ -143,8 +154,8 @@
<constraint firstItem="Z1i-Qx-pwO" firstAttribute="leading" secondItem="wMa-mO-ZXq" secondAttribute="leading" id="5FK-Fb-lzE"/>
<constraint firstItem="Z1i-Qx-pwO" firstAttribute="top" secondItem="wMa-mO-ZXq" secondAttribute="top" id="Bbc-WB-S85"/>
<constraint firstItem="wMa-mO-ZXq" firstAttribute="top" secondItem="CVq-A1-mDa" secondAttribute="top" constant="18" id="Bk8-0J-Mee"/>
<constraint firstAttribute="trailing" secondItem="pgo-pN-r7b" secondAttribute="trailing" constant="8" id="EP1-2B-Qgq"/>
<constraint firstItem="MYl-ZD-MG0" firstAttribute="leading" secondItem="CVq-A1-mDa" secondAttribute="leading" constant="8" id="KhB-DB-8eM"/>
<constraint firstAttribute="trailing" secondItem="pgo-pN-r7b" secondAttribute="trailing" constant="2" id="EP1-2B-Qgq"/>
<constraint firstItem="MYl-ZD-MG0" firstAttribute="leading" secondItem="CVq-A1-mDa" secondAttribute="leading" constant="2" id="KhB-DB-8eM"/>
<constraint firstItem="8Ah-DM-iSN" firstAttribute="centerY" secondItem="wMa-mO-ZXq" secondAttribute="centerY" id="NnS-GD-uFq"/>
<constraint firstItem="8Ah-DM-iSN" firstAttribute="centerX" secondItem="wMa-mO-ZXq" secondAttribute="centerX" id="POx-aJ-JRR"/>
<constraint firstItem="pgo-pN-r7b" firstAttribute="top" secondItem="CVq-A1-mDa" secondAttribute="top" constant="8" id="U6h-sK-e9U"/>
@@ -158,5 +169,6 @@
</objects>
<resources>
<image name="NSUserGuest" width="32" height="32"/>
<image name="StatusBarButtonImage" width="32" height="32"/>
</resources>
</document>
+4
View File
@@ -132,6 +132,10 @@ extension ViewController {
NSApplication.shared().terminate(sender)
}
@IBAction func openSpotify(_ sender: Any) {
Spotify.activateSpotify()
}
@IBAction func positionSliderAction(_ sender: AnyObject) {
Spotify.currentTrack.positionPercentage = positionSlider.doubleValue/100.0
}