Skip to content

Commit b76ce8a

Browse files
committed
Fixed color wheel lag refresh.
1 parent 7eadb8a commit b76ce8a

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

Application/ThemeEditorView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ class ThemeEditorView: NSView, SettingsSplitViewElement {
276276
newKeywordMenuItem.isEnabled = false
277277
deleteMenuItem.isEnabled = false
278278

279+
NSColorPanel.shared.isContinuous = self.colorWell.isContinuous
280+
279281
NotificationCenter.default.addObserver(self, selector: #selector(handleThemeChanged(_:)), name: .ThemeNeedRefresh, object: nil)
280282
NotificationCenter.default.addObserver(self, selector: #selector(handleThemeDeleted(_:)), name: .CustomThemeRemoved, object: nil)
281283
}

Application/ThemeEditorView.xib

Lines changed: 14 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.XIB" version="3.0" toolsVersion="17701" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="17701"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<objects>
@@ -36,15 +36,15 @@
3636
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
3737
<subviews>
3838
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tyJ-o7-KYu">
39-
<rect key="frame" x="6" y="1156" width="78" height="16"/>
39+
<rect key="frame" x="6" y="1435" width="78" height="16"/>
4040
<textFieldCell key="cell" lineBreakMode="clipping" alignment="right" title="Description:" id="zIz-68-p0p">
4141
<font key="font" metaFont="system"/>
4242
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
4343
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
4444
</textFieldCell>
4545
</textField>
4646
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="5Ih-og-Zh4">
47-
<rect key="frame" x="90" y="1153" width="1474" height="21"/>
47+
<rect key="frame" x="90" y="1432" width="2059" height="21"/>
4848
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" id="wOY-lP-prj">
4949
<font key="font" metaFont="system"/>
5050
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -55,15 +55,15 @@
5555
</connections>
5656
</textField>
5757
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Cc2-N1-y5X">
58-
<rect key="frame" x="18" y="1129" width="66" height="16"/>
58+
<rect key="frame" x="18" y="1408" width="66" height="16"/>
5959
<textFieldCell key="cell" lineBreakMode="clipping" alignment="right" title="Style:" id="I0R-f4-fr8">
6060
<font key="font" metaFont="system"/>
6161
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
6262
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
6363
</textFieldCell>
6464
</textField>
6565
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Z2L-wh-6gV">
66-
<rect key="frame" x="89" y="1126" width="135" height="20"/>
66+
<rect key="frame" x="89" y="1405" width="135" height="20"/>
6767
<segmentedCell key="cell" borderStyle="border" alignment="left" segmentDistribution="fillEqually" style="roundRect" trackingMode="selectOne" id="Srg-Yu-gUJ">
6868
<font key="font" metaFont="cellTitle"/>
6969
<segments>
@@ -77,16 +77,16 @@
7777
</connections>
7878
</segmentedControl>
7979
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="XIT-KY-4uU">
80-
<rect key="frame" x="0.0" y="1116" width="1572" height="5"/>
80+
<rect key="frame" x="0.0" y="1395" width="2157" height="5"/>
8181
</box>
8282
<scrollView verticalHuggingPriority="249" borderType="none" autohidesScrollers="YES" horizontalLineScroll="17" horizontalPageScroll="10" verticalLineScroll="17" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="F0K-5q-GjL">
83-
<rect key="frame" x="0.0" y="31" width="1572" height="1087"/>
83+
<rect key="frame" x="0.0" y="31" width="2157" height="1366"/>
8484
<clipView key="contentView" id="Zmt-Fg-izz">
85-
<rect key="frame" x="0.0" y="0.0" width="1572" height="1087"/>
85+
<rect key="frame" x="0.0" y="0.0" width="2157" height="1366"/>
8686
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
8787
<subviews>
8888
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="firstColumnOnly" columnReordering="NO" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowSizeStyle="automatic" usesAutomaticRowHeights="YES" viewBased="YES" id="NJv-Cb-zgY">
89-
<rect key="frame" x="0.0" y="0.0" width="1572" height="1087"/>
89+
<rect key="frame" x="0.0" y="0.0" width="2157" height="1366"/>
9090
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
9191
<size key="intercellSpacing" width="17" height="0.0"/>
9292
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -254,12 +254,12 @@
254254
</scroller>
255255
</scrollView>
256256
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="gDc-vs-BXX">
257-
<rect key="frame" x="0.0" y="28" width="1572" height="5"/>
257+
<rect key="frame" x="0.0" y="28" width="2157" height="5"/>
258258
</box>
259259
<stackView distribution="fill" orientation="horizontal" alignment="centerY" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="7Sz-7q-gWJ">
260260
<rect key="frame" x="10" y="4" width="194" height="22"/>
261261
<subviews>
262-
<colorWell translatesAutoresizingMaskIntoConstraints="NO" id="Vdh-f9-1UG">
262+
<colorWell continuous="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vdh-f9-1UG">
263263
<rect key="frame" x="0.0" y="1" width="60" height="20"/>
264264
<constraints>
265265
<constraint firstAttribute="width" constant="60" id="WG6-Qn-DPU"/>
@@ -330,15 +330,15 @@
330330
</customSpacing>
331331
</stackView>
332332
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="zhj-PT-YA6">
333-
<rect key="frame" x="18" y="587" width="1536" height="21"/>
333+
<rect key="frame" x="18" y="726" width="2121" height="21"/>
334334
<textFieldCell key="cell" lineBreakMode="clipping" enabled="NO" allowsUndo="NO" alignment="center" title="Select a theme" id="VyF-Ug-19b">
335335
<font key="font" textStyle="title2" name=".SFNS-Regular"/>
336336
<color key="textColor" name="tertiaryLabelColor" catalog="System" colorSpace="catalog"/>
337337
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
338338
</textFieldCell>
339339
</textField>
340340
<popUpButton horizontalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Utk-Ud-Zr1">
341-
<rect key="frame" x="1529" y="8" width="35" height="15"/>
341+
<rect key="frame" x="2114" y="8" width="35" height="15"/>
342342
<popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="center" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" pullsDown="YES" autoenablesItems="NO" id="QCV-RC-x8e">
343343
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
344344
<font key="font" metaFont="menu"/>

0 commit comments

Comments
 (0)