Skip to content

Commit d99b450

Browse files
authored
Merge pull request #21 from trgoofi/master
Fix vanished Add Current button on macOS Catalina
2 parents 2f1760d + e0c6df2 commit d99b450

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

Diff for: SwitchKey/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSTableViewDataSource, NSTab
296296
if row > 0 {
297297
return 64
298298
} else {
299-
return 19
299+
return 40
300300
}
301301
}
302302

Diff for: SwitchKey/Base.lproj/SwitchKey.xib

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15702" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
4+
<deployment identifier="macosx"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15702"/>
56
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
67
</dependencies>
78
<objects>
@@ -12,7 +13,7 @@
1213
</customObject>
1314
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
1415
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
15-
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="context" customModuleProvider="target">
16+
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="SwitchKey" customModuleProvider="target">
1617
<connections>
1718
<outlet property="conditionTableView" destination="wpb-1K-Xeg" id="lF5-0a-jaC"/>
1819
<outlet property="statusBarMenu" destination="lcZ-64-V4h" id="lFV-82-qrX"/>
@@ -27,18 +28,18 @@
2728
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
2829
<clipView key="contentView" id="gGO-yu-YCr">
2930
<rect key="frame" x="1" y="1" width="360" height="0.0"/>
30-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
31+
<autoresizingMask key="autoresizingMask"/>
3132
<subviews>
32-
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowSizeStyle="automatic" viewBased="YES" id="wpb-1K-Xeg" customClass="TableView" customModule="context" customModuleProvider="target">
33-
<rect key="frame" x="0.0" y="0.0" width="360" height="1"/>
34-
<autoresizingMask key="autoresizingMask"/>
33+
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnReordering="NO" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" typeSelect="NO" rowSizeStyle="automatic" viewBased="YES" id="wpb-1K-Xeg" customClass="TableView" customModule="SwitchKey" customModuleProvider="target">
34+
<rect key="frame" x="0.0" y="0.0" width="360" height="0.0"/>
35+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
3536
<size key="intercellSpacing" width="3" height="2"/>
3637
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
3738
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
3839
<tableColumns>
3940
<tableColumn width="357" minWidth="40" maxWidth="1000" id="Y12-MF-ZTz">
4041
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border">
41-
<font key="font" metaFont="smallSystem"/>
42+
<font key="font" metaFont="menu" size="11"/>
4243
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
4344
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
4445
</tableHeaderCell>
@@ -63,7 +64,7 @@
6364
</scroller>
6465
<point key="canvasLocation" x="139" y="185"/>
6566
</scrollView>
66-
<tableCellView identifier="item-cell" id="mER-eV-t2b" customClass="ConditionCell" customModule="context" customModuleProvider="target">
67+
<tableCellView identifier="item-cell" id="mER-eV-t2b" customClass="ConditionCell" customModule="SwitchKey" customModuleProvider="target">
6768
<rect key="frame" x="0.0" y="0.0" width="341" height="64"/>
6869
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
6970
<subviews>
@@ -76,7 +77,7 @@
7677
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="NSApplicationIcon" id="pGI-gj-dvK"/>
7778
</imageView>
7879
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="61R-Cm-pCP">
79-
<rect key="frame" x="62" y="24" width="68" height="17"/>
80+
<rect key="frame" x="62" y="24" width="68" height="16"/>
8081
<textFieldCell key="cell" lineBreakMode="clipping" title="AppName" id="AGL-f7-fn1">
8182
<font key="font" metaFont="systemBold"/>
8283
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -128,18 +129,18 @@
128129
</connections>
129130
<point key="canvasLocation" x="139.5" y="260"/>
130131
</tableCellView>
131-
<tableCellView identifier="edit-cell" id="tGE-D6-w3H" customClass="EditCell" customModule="context" customModuleProvider="target">
132-
<rect key="frame" x="0.0" y="0.0" width="97" height="20"/>
132+
<tableCellView identifier="edit-cell" id="tGE-D6-w3H" customClass="EditCell" customModule="SwitchKey" customModuleProvider="target">
133+
<rect key="frame" x="0.0" y="0.0" width="109" height="20"/>
133134
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
134135
<subviews>
135136
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="5k7-2A-D1v">
136-
<rect key="frame" x="8" y="3" width="81" height="14"/>
137+
<rect key="frame" x="8" y="-1" width="93" height="21"/>
137138
<constraints>
138-
<constraint firstAttribute="height" constant="13" id="IDr-fh-azF"/>
139+
<constraint firstAttribute="height" constant="20" id="IDr-fh-azF"/>
139140
</constraints>
140-
<buttonCell key="cell" type="inline" title="Add Current" bezelStyle="inline" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="XiT-Jr-Qlg">
141+
<buttonCell key="cell" type="roundTextured" title="Add Current" bezelStyle="texturedRounded" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="XiT-Jr-Qlg">
141142
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
142-
<font key="font" metaFont="smallSystemBold"/>
143+
<font key="font" metaFont="systemBold"/>
143144
<connections>
144145
<action selector="addItemClicked:" target="tGE-D6-w3H" id="1xs-Ii-GnG"/>
145146
</connections>

0 commit comments

Comments
 (0)