Skip to content

Commit 9dc11d0

Browse files
committed
modify Setting UI
1 parent 19e2a70 commit 9dc11d0

15 files changed

Lines changed: 150 additions & 113 deletions

File tree

macOS/APIExample/Base.lproj/Main.storyboard

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17506" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17506"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>
@@ -733,24 +733,24 @@
733733
<objects>
734734
<viewController id="frP-Og-4hq" customClass="MenuController" customModule="APIExample" customModuleProvider="target" sceneMemberID="viewController">
735735
<view key="view" id="bDS-2Z-AsB">
736-
<rect key="frame" x="0.0" y="0.0" width="280" height="600"/>
736+
<rect key="frame" x="0.0" y="0.0" width="280" height="602"/>
737737
<autoresizingMask key="autoresizingMask"/>
738738
<subviews>
739-
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Jvf-iG-0lJ">
740-
<rect key="frame" x="0.0" y="0.0" width="320" height="600"/>
739+
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" hasVerticalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Jvf-iG-0lJ">
740+
<rect key="frame" x="0.0" y="30" width="280" height="572"/>
741741
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
742742
<clipView key="contentView" id="cyL-uB-YCU">
743-
<rect key="frame" x="1" y="1" width="318" height="598"/>
743+
<rect key="frame" x="1" y="1" width="278" height="570"/>
744744
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
745745
<subviews>
746746
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" viewBased="YES" id="arv-VN-9VJ">
747-
<rect key="frame" x="0.0" y="0.0" width="318" height="579"/>
747+
<rect key="frame" x="0.0" y="0.0" width="278" height="551"/>
748748
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
749749
<size key="intercellSpacing" width="3" height="2"/>
750750
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
751751
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
752752
<tableColumns>
753-
<tableColumn width="277" minWidth="10" maxWidth="3.4028234663852886e+38" id="b03-7M-wbu">
753+
<tableColumn width="266" minWidth="10" maxWidth="3.4028234663852886e+38" id="b03-7M-wbu">
754754
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
755755
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
756756
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
@@ -763,11 +763,11 @@
763763
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
764764
<prototypeCellViews>
765765
<tableCellView identifier="menuCell" id="2hx-oV-azK">
766-
<rect key="frame" x="11" y="1" width="286" height="17"/>
766+
<rect key="frame" x="1" y="1" width="275" height="17"/>
767767
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
768768
<subviews>
769769
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Yoo-BB-x79">
770-
<rect key="frame" x="20" y="0.0" width="286" height="17"/>
770+
<rect key="frame" x="20" y="0.0" width="275" height="17"/>
771771
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
772772
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="qG2-7c-SRN">
773773
<font key="font" metaFont="system"/>
@@ -781,11 +781,11 @@
781781
</connections>
782782
</tableCellView>
783783
<tableCellView identifier="headerCell" id="uWY-5d-ieJ">
784-
<rect key="frame" x="11" y="20" width="286" height="17"/>
784+
<rect key="frame" x="1" y="20" width="275" height="17"/>
785785
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
786786
<subviews>
787787
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="QTx-vV-DAq">
788-
<rect key="frame" x="20" y="0.0" width="286" height="14"/>
788+
<rect key="frame" x="20" y="0.0" width="275" height="14"/>
789789
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
790790
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="Nlt-pS-UAz">
791791
<font key="font" metaFont="systemBold" size="10"/>
@@ -814,10 +814,21 @@
814814
<autoresizingMask key="autoresizingMask"/>
815815
</scroller>
816816
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="iWF-Ou-WIP">
817-
<rect key="frame" x="224" y="17" width="15" height="102"/>
817+
<rect key="frame" x="-100" y="-100" width="15" height="102"/>
818818
<autoresizingMask key="autoresizingMask"/>
819819
</scroller>
820820
</scrollView>
821+
<button id="1eW-RY-z9X">
822+
<rect key="frame" x="0.0" y="0.0" width="32" height="32"/>
823+
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
824+
<buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="NSSmartBadgeTemplate" imagePosition="overlaps" alignment="center" inset="2" id="PTe-Da-jjD">
825+
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
826+
<font key="font" metaFont="system"/>
827+
</buttonCell>
828+
<connections>
829+
<action selector="onClickSetting:" target="frP-Og-4hq" id="LYl-a0-Sxl"/>
830+
</connections>
831+
</button>
821832
</subviews>
822833
</view>
823834
<connections>
@@ -826,7 +837,7 @@
826837
</viewController>
827838
<customObject id="nr4-u5-WOG" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/>
828839
</objects>
829-
<point key="canvasLocation" x="798" y="198"/>
840+
<point key="canvasLocation" x="798" y="199"/>
830841
</scene>
831842
<!--View Controller-->
832843
<scene sceneID="KsQ-B6-tlj">
@@ -842,4 +853,7 @@
842853
<point key="canvasLocation" x="868" y="898"/>
843854
</scene>
844855
</scenes>
856+
<resources>
857+
<image name="NSSmartBadgeTemplate" width="14" height="14"/>
858+
</resources>
845859
</document>

0 commit comments

Comments
 (0)