Skip to content

Commit

Permalink
I haven't touched this in months I guess I had uncommited changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMathy committed Oct 23, 2021
1 parent 38bd4c9 commit 9cc27d9
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.
8 changes: 4 additions & 4 deletions Boop/Boop.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 13;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = RLZ8XBTX7G;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -781,7 +781,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 13;
CURRENT_PROJECT_VERSION = 14;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -812,7 +812,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 17;
CURRENT_PROJECT_VERSION = 18;
DEVELOPMENT_TEAM = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -843,7 +843,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Manual;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 17;
CURRENT_PROJECT_VERSION = 18;
DEVELOPMENT_TEAM = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down
2 changes: 1 addition & 1 deletion Boop/Boop/Controllers/PopoverViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ extension PopoverViewController: NSTextFieldDelegate {
let results = scriptManager.search(searchField.stringValue)
tableViewController.results = results

self.tableHeightConstraint.constant = CGFloat(47 * min(5, results.count))
self.tableHeightConstraint.constant = CGFloat(65 * min(5, results.count))
}
}
6 changes: 3 additions & 3 deletions Boop/Boop/Editor/Themes/Colors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ struct ColorPair {

static let comments = ColorPair(light: Colors.commentGreyDarkest, dark: Colors.commentGreyDarkest)
static let separator = ColorPair(light: .init(white: 220/255, alpha: 1), dark: .init(white: 45/255, alpha: 1))
static let background = ColorPair(light: .init(white: 0.95, alpha: 1), dark: .init(white: 31/255, alpha: 1))
static let overlayColor = ColorPair(light: NSColor(calibratedWhite: 0.85, alpha: 0.6), dark: NSColor(calibratedWhite: 0.08, alpha: 0.6))
static let popoverBorder = ColorPair(light: .init(white: 220/255, alpha: 1), dark: .init(white: 130/255, alpha: 1))
static let background = ColorPair(light: .init(white: 0.95, alpha: 1.0), dark: .init(white: 31/255, alpha: 1.0))
static let overlayColor = ColorPair(light: .init(white: 0.85, alpha: 0.6), dark: .init(white: 0.08, alpha: 0.6))
static let popoverBorder = ColorPair(light: .init(white: 220/255, alpha: 1), dark: .init(white: 75/255, alpha: 1))
static let popoverOutline = ColorPair(light: .init(white: 150/255, alpha: 1), dark: .init(white: 20/255, alpha: 1))


Expand Down
1 change: 1 addition & 0 deletions Boop/Boop/System/Models/Script.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Script: NSObject {
var url: URL
var scriptCode: String


lazy var context: JSContext = { [unowned self] in
let context: JSContext = JSContext()
context.name = self.name ?? "Unknown Script"
Expand Down
24 changes: 15 additions & 9 deletions Boop/UI/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ Gw
<action selector="openHelp:" target="unv-pE-gme" id="8ta-uT-eZh"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="Fec-Ba-9Rm"/>
<menuItem title="@OKatBest on Twitter" id="N9h-rg-i4V" userLabel="@OKatBest on Twitter">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
</items>
</menu>
</menuItem>
Expand All @@ -518,13 +522,13 @@ Gw
<rect key="frame" x="0.0" y="0.0" width="480" height="360"/>
</customView>
<customView translatesAutoresizingMaskIntoConstraints="NO" id="ibo-QR-zuu" customClass="PopoverContainerView" customModule="Boop" customModuleProvider="target">
<rect key="frame" x="20" y="144" width="440" height="190"/>
<rect key="frame" x="20" y="152" width="440" height="182"/>
<subviews>
<customView translatesAutoresizingMaskIntoConstraints="NO" id="NDF-Rt-5B3" customClass="PopoverView" customModule="Boop" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="440" height="190"/>
<rect key="frame" x="0.0" y="0.0" width="440" height="182"/>
<subviews>
<textField focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="EfF-8p-bmE" customClass="SearchField" customModule="Boop" customModuleProvider="target">
<rect key="frame" x="10" y="148" width="420" height="30"/>
<rect key="frame" x="10" y="140" width="420" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="3ju-8B-ORH"/>
</constraints>
Expand Down Expand Up @@ -563,15 +567,15 @@ Gw
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="hXY-cu-8yv">
<rect key="frame" x="8" y="5" width="30" height="30"/>
<rect key="frame" x="0.0" y="5" width="30" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="5DT-iv-bTJ"/>
<constraint firstAttribute="height" constant="30" id="DLV-6S-4Af"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyUpOrDown" image="icons8-broom" id="0pf-Dg-gKF"/>
</imageView>
<stackView distribution="fill" orientation="vertical" alignment="leading" spacing="-2" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ahi-ZC-6NH">
<rect key="frame" x="45" y="3" width="372" height="37"/>
<rect key="frame" x="37" y="3" width="380" height="37"/>
<subviews>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="llX-0P-Bnw">
<rect key="frame" x="-2" y="13" width="146" height="24"/>
Expand Down Expand Up @@ -601,12 +605,12 @@ Gw
</stackView>
</subviews>
<constraints>
<constraint firstItem="ahi-ZC-6NH" firstAttribute="top" secondItem="1oI-88-xll" secondAttribute="top" id="LWs-D3-oJh"/>
<constraint firstItem="hXY-cu-8yv" firstAttribute="top" secondItem="1oI-88-xll" secondAttribute="top" constant="5" id="LlB-v6-CtV"/>
<constraint firstItem="ahi-ZC-6NH" firstAttribute="top" secondItem="1oI-88-xll" secondAttribute="top" constant="1" id="LWs-D3-oJh"/>
<constraint firstItem="hXY-cu-8yv" firstAttribute="top" secondItem="1oI-88-xll" secondAttribute="top" constant="6" id="LlB-v6-CtV"/>
<constraint firstItem="ahi-ZC-6NH" firstAttribute="leading" secondItem="hXY-cu-8yv" secondAttribute="trailing" constant="7" id="Lrk-98-STE"/>
<constraint firstAttribute="trailing" secondItem="ahi-ZC-6NH" secondAttribute="trailing" id="bM0-gY-1Wg"/>
<constraint firstAttribute="bottom" secondItem="ahi-ZC-6NH" secondAttribute="bottom" constant="3" id="ifu-ja-93W"/>
<constraint firstItem="hXY-cu-8yv" firstAttribute="leading" secondItem="1oI-88-xll" secondAttribute="leading" constant="8" id="lOt-qT-7gH"/>
<constraint firstItem="hXY-cu-8yv" firstAttribute="leading" secondItem="1oI-88-xll" secondAttribute="leading" id="lOt-qT-7gH"/>
</constraints>
<connections>
<outlet property="imageView" destination="hXY-cu-8yv" id="WEV-5g-bSe"/>
Expand All @@ -628,6 +632,7 @@ Gw
<constraints>
<constraint firstAttribute="height" constant="140" id="CGh-qY-CKR"/>
</constraints>
<edgeInsets key="scrollerInsets" left="0.0" right="0.0" top="0.0" bottom="10"/>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="uf1-vI-kh9">
<rect key="frame" x="1" y="119" width="223" height="15"/>
<autoresizingMask key="autoresizingMask"/>
Expand All @@ -639,10 +644,11 @@ Gw
</scrollView>
</subviews>
<constraints>
<constraint firstItem="lpr-jW-wRt" firstAttribute="top" secondItem="EfF-8p-bmE" secondAttribute="bottom" constant="8" id="2ID-K8-nFS"/>
<constraint firstItem="lpr-jW-wRt" firstAttribute="top" secondItem="EfF-8p-bmE" secondAttribute="bottom" id="2ID-K8-nFS"/>
<constraint firstItem="EfF-8p-bmE" firstAttribute="leading" secondItem="NDF-Rt-5B3" secondAttribute="leading" constant="12" id="2Qj-w2-tCw"/>
<constraint firstItem="lpr-jW-wRt" firstAttribute="leading" secondItem="NDF-Rt-5B3" secondAttribute="leading" id="dOf-du-E6M"/>
<constraint firstAttribute="trailing" secondItem="EfF-8p-bmE" secondAttribute="trailing" constant="12" id="eSY-Sy-G2J"/>
<constraint firstAttribute="bottom" relation="greaterThanOrEqual" secondItem="EfF-8p-bmE" secondAttribute="bottom" constant="8" id="hUt-ze-STS"/>
<constraint firstItem="EfF-8p-bmE" firstAttribute="top" secondItem="NDF-Rt-5B3" secondAttribute="top" constant="12" id="hvZ-Ps-eCw"/>
<constraint firstAttribute="bottom" secondItem="lpr-jW-wRt" secondAttribute="bottom" id="v0z-IJ-iPG"/>
<constraint firstAttribute="trailing" secondItem="lpr-jW-wRt" secondAttribute="trailing" id="zwK-uj-6le"/>
Expand Down

0 comments on commit 9cc27d9

Please sign in to comment.