mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-15 14:15:50 -06:00
Make default layer color opaque
This commit is contained in:
parent
0954c9025c
commit
4a4326ae35
2 changed files with 32 additions and 31 deletions
|
|
@ -252,7 +252,7 @@ JS_EXPORT void JSSynchronousGarbageCollectForDebugging(JSContextRef ctx);
|
|||
newRoot.masksToBounds = YES;
|
||||
|
||||
|
||||
CGColorRef tmpColor = CGColorCreateGenericRGB(0, 0, 0, 0);
|
||||
CGColorRef tmpColor = CGColorCreateGenericRGB(0, 0, 0, 1);
|
||||
newRoot.backgroundColor = tmpColor;
|
||||
CGColorRelease(tmpColor);
|
||||
|
||||
|
|
@ -2980,12 +2980,14 @@ JS_EXPORT void JSSynchronousGarbageCollectForDebugging(JSContextRef ctx);
|
|||
|
||||
-(NSColor *)backgroundColor
|
||||
{
|
||||
NSColor *retColor = nil;
|
||||
if (self.rootLayer.backgroundColor)
|
||||
{
|
||||
return [NSColor colorWithCGColor:self.rootLayer.backgroundColor];
|
||||
retColor = [NSColor colorWithCGColor:self.rootLayer.backgroundColor];
|
||||
} else {
|
||||
return nil;
|
||||
retColor = nil;
|
||||
}
|
||||
return retColor;
|
||||
}
|
||||
|
||||
-(void)clearGradient
|
||||
|
|
@ -3013,7 +3015,6 @@ JS_EXPORT void JSSynchronousGarbageCollectForDebugging(JSContextRef ctx);
|
|||
|
||||
-(void)setGradientStartY:(CGFloat)gradientStartY
|
||||
{
|
||||
|
||||
CGPoint cBounds = self.rootLayer.startPoint;
|
||||
cBounds.y = gradientStartY;
|
||||
self.rootLayer.startPoint = cBounds;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13771" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13771"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14460.31"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
|
||||
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="196" y="240" width="539" height="367"/>
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="2fv-pd-xyN">
|
||||
<rect key="frame" x="18" y="303" width="35" height="14"/>
|
||||
<rect key="frame" x="18" y="300" width="35" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Color" id="at5-sM-qpE">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XQs-Q5-9Tk">
|
||||
<rect key="frame" x="238" y="329" width="81" height="14"/>
|
||||
<rect key="frame" x="238" y="326" width="81" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Layout Filters" id="RlR-hz-CUI">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -41,17 +41,17 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<colorWell translatesAutoresizingMaskIntoConstraints="NO" id="zXB-vs-p2W" customClass="CSColorWell">
|
||||
<rect key="frame" x="59" y="298" width="44" height="23"/>
|
||||
<rect key="frame" x="59" y="296" width="44" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="44" id="XNm-EY-9Bj"/>
|
||||
</constraints>
|
||||
<color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<connections>
|
||||
<binding destination="XbS-mZ-7Fs" name="value" keyPath="selection.backgroundColor" id="7I9-Rw-4Dz"/>
|
||||
<binding destination="XbS-mZ-7Fs" name="value" keyPath="selection.backgroundColor" id="B2g-E5-Pl4"/>
|
||||
</connections>
|
||||
</colorWell>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="0ju-an-7Bp">
|
||||
<rect key="frame" x="18" y="271" width="117" height="14"/>
|
||||
<rect key="frame" x="18" y="269" width="117" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Gradient Start Color" id="c9b-96-XmL">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yw0-1V-zB6">
|
||||
<rect key="frame" x="18" y="219" width="115" height="14"/>
|
||||
<rect key="frame" x="18" y="217" width="115" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Gradient Stop Color" id="VLF-s4-fsm">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<colorWell translatesAutoresizingMaskIntoConstraints="NO" id="53z-GX-FoC" customClass="CSColorWell">
|
||||
<rect key="frame" x="135" y="267" width="44" height="23"/>
|
||||
<rect key="frame" x="135" y="264" width="44" height="24"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="44" id="2Fh-sX-Owq"/>
|
||||
</constraints>
|
||||
|
|
@ -77,14 +77,14 @@
|
|||
</connections>
|
||||
</colorWell>
|
||||
<colorWell translatesAutoresizingMaskIntoConstraints="NO" id="xUy-oN-1M2" customClass="CSColorWell">
|
||||
<rect key="frame" x="135" y="215" width="44" height="23"/>
|
||||
<rect key="frame" x="135" y="213" width="44" height="22"/>
|
||||
<color key="color" red="0.05813049898" green="0.055541899059999997" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<connections>
|
||||
<binding destination="XbS-mZ-7Fs" name="value" keyPath="selection.stopColor" id="cpz-op-WTQ"/>
|
||||
</connections>
|
||||
</colorWell>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Qx5-FK-lcz">
|
||||
<rect key="frame" x="18" y="190" width="12" height="14"/>
|
||||
<rect key="frame" x="18" y="189" width="12" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="X" id="JBY-A8-HBF">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Pvs-aT-PV9">
|
||||
<rect key="frame" x="79" y="246" width="12" height="14"/>
|
||||
<rect key="frame" x="78" y="245" width="12" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Y" id="icH-8z-mmq">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KEe-6T-NB7">
|
||||
<rect key="frame" x="79" y="190" width="12" height="14"/>
|
||||
<rect key="frame" x="78" y="189" width="12" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Y" id="tbw-WQ-dWP">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Xhp-H2-s8L">
|
||||
<rect key="frame" x="18" y="246" width="12" height="14"/>
|
||||
<rect key="frame" x="18" y="245" width="12" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="X" id="0eF-kY-W83">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
|
|
@ -116,10 +116,10 @@
|
|||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="mW0-EH-h4N">
|
||||
<rect key="frame" x="36" y="188" width="37" height="19"/>
|
||||
<rect key="frame" x="36" y="186" width="36" height="19"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Xk7-2r-oS3">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
|
|
@ -127,10 +127,10 @@
|
|||
</connections>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Igd-at-NN1">
|
||||
<rect key="frame" x="36" y="244" width="37" height="19"/>
|
||||
<rect key="frame" x="36" y="242" width="36" height="19"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="eLL-ME-Khv">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
|
|
@ -138,13 +138,13 @@
|
|||
</connections>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZgD-RH-xh3">
|
||||
<rect key="frame" x="97" y="244" width="39" height="19"/>
|
||||
<rect key="frame" x="96" y="242" width="39" height="19"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="39" id="RFh-lr-gs4"/>
|
||||
</constraints>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="FfQ-wC-3eN">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
</connections>
|
||||
</textField>
|
||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="UGt-Sv-bUJ">
|
||||
<rect key="frame" x="15" y="156" width="103" height="28"/>
|
||||
<rect key="frame" x="15" y="154" width="103" height="27"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="93" id="MC0-KP-s8S"/>
|
||||
</constraints>
|
||||
|
|
@ -165,10 +165,10 @@
|
|||
</connections>
|
||||
</button>
|
||||
<textField verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="09T-yS-Bcl">
|
||||
<rect key="frame" x="97" y="188" width="39" height="19"/>
|
||||
<rect key="frame" x="96" y="186" width="39" height="19"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="sma-Zr-JHc">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<connections>
|
||||
|
|
@ -176,15 +176,15 @@
|
|||
</connections>
|
||||
</textField>
|
||||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Uhd-Rp-49T">
|
||||
<rect key="frame" x="18" y="329" width="72" height="14"/>
|
||||
<rect key="frame" x="18" y="326" width="72" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Background" id="rNI-x0-3Qf">
|
||||
<font key="font" metaFont="systemBold" size="11"/>
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="wfY-bj-xEX">
|
||||
<rect key="frame" x="240" y="20" width="279" height="301"/>
|
||||
<rect key="frame" x="240" y="20" width="279" height="298"/>
|
||||
</customView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue