mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 10:23:39 +00:00
This patch contains a very naive implementation of the NSVisualEffectView. This will only work on very recent unreleased version of Safari, but should be supported by all at some point. This allow to use the Yosemite/iOS blurry effect. Not all options are supported (especially the `CPVisualEffectBlendingModeBehindWindow` mode…). But hey! it’s a start :) Tests in Manual/CPVisualEffectViewTest
178 lines
13 KiB
XML
178 lines
13 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="8173.3" systemVersion="15A244d" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
|
<dependencies>
|
|
<deployment version="1050" identifier="macosx"/>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="8173.3"/>
|
|
</dependencies>
|
|
<objects>
|
|
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
|
|
<connections>
|
|
<outlet property="delegate" destination="450" id="451"/>
|
|
</connections>
|
|
</customObject>
|
|
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
|
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
|
<customObject id="450" customClass="AppController"/>
|
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" frameAutosaveName="" animationBehavior="default" id="Knp-iN-1Ch">
|
|
<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="100" y="722" width="181" height="67"/>
|
|
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
|
|
<view key="contentView" id="KQ2-1g-9W7">
|
|
<rect key="frame" x="0.0" y="0.0" width="181" height="67"/>
|
|
<autoresizingMask key="autoresizingMask"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="d7y-fN-bjP">
|
|
<rect key="frame" x="18" y="25" width="145" height="17"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<animations/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Click me to loose focus" id="eKf-xB-TJp">
|
|
<font key="font" metaFont="system"/>
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
<animations/>
|
|
</view>
|
|
<point key="canvasLocation" x="146.5" y="111.5"/>
|
|
</window>
|
|
<window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="371">
|
|
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES"/>
|
|
<rect key="contentRect" x="335" y="178" width="834" height="545"/>
|
|
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
|
|
<view key="contentView" id="372">
|
|
<rect key="frame" x="0.0" y="0.0" width="834" height="545"/>
|
|
<autoresizingMask key="autoresizingMask"/>
|
|
<subviews>
|
|
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" id="WJS-cx-TuA">
|
|
<rect key="frame" x="0.0" y="0.0" width="834" height="545"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<animations/>
|
|
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyUpOrDown" image="background" id="asL-vN-HqR"/>
|
|
</imageView>
|
|
<visualEffectView appearanceType="vibrantLight" blendingMode="behindWindow" state="followsWindowActiveState" id="ESw-Mt-ZuS">
|
|
<rect key="frame" x="87" y="276" width="215" height="254"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="drG-ES-sje">
|
|
<rect key="frame" x="18" y="110" width="179" height="34"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<animations/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" id="f01-C4-Fhw">
|
|
<font key="font" metaFont="systemBold"/>
|
|
<string key="title">Vibrant Light
|
|
Follows Key Window</string>
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
<animations/>
|
|
</visualEffectView>
|
|
<visualEffectView appearanceType="vibrantDark" blendingMode="behindWindow" state="followsWindowActiveState" id="xEz-ym-SoC">
|
|
<rect key="frame" x="87" y="14" width="215" height="254"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="oRu-hV-Fpl">
|
|
<rect key="frame" x="18" y="110" width="179" height="34"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<animations/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" id="ff0-As-8T5">
|
|
<font key="font" metaFont="systemBold"/>
|
|
<string key="title">Vibrant Dark
|
|
Follows Key Window</string>
|
|
<color key="textColor" red="1" green="1" blue="1" alpha="0.84999999999999998" colorSpace="calibratedRGB"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
<animations/>
|
|
</visualEffectView>
|
|
<visualEffectView appearanceType="vibrantLight" blendingMode="behindWindow" state="active" id="ofy-S7-rCf">
|
|
<rect key="frame" x="310" y="276" width="215" height="254"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="YjR-CK-WeJ">
|
|
<rect key="frame" x="18" y="110" width="179" height="34"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<animations/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" id="0ce-BE-k8L">
|
|
<font key="font" metaFont="systemBold"/>
|
|
<string key="title">Vibrant Light
|
|
Active</string>
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
<animations/>
|
|
</visualEffectView>
|
|
<visualEffectView appearanceType="vibrantDark" blendingMode="behindWindow" state="active" id="X1I-rR-BOD">
|
|
<rect key="frame" x="310" y="14" width="215" height="254"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="eA4-la-pyn">
|
|
<rect key="frame" x="18" y="110" width="179" height="34"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<animations/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" id="16n-7u-pbb">
|
|
<font key="font" metaFont="systemBold"/>
|
|
<string key="title">Vibrant Dark
|
|
Active</string>
|
|
<color key="textColor" red="1" green="1" blue="1" alpha="0.84999999999999998" colorSpace="calibratedRGB"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
<animations/>
|
|
</visualEffectView>
|
|
<visualEffectView appearanceType="vibrantLight" blendingMode="behindWindow" state="inactive" id="GcT-Xr-eCB">
|
|
<rect key="frame" x="533" y="276" width="215" height="254"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="V0w-c6-mp4">
|
|
<rect key="frame" x="18" y="110" width="179" height="34"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<animations/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" id="Apx-Ho-9sT">
|
|
<font key="font" metaFont="systemBold"/>
|
|
<string key="title">Vibrant Light
|
|
Inactive</string>
|
|
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
<animations/>
|
|
</visualEffectView>
|
|
<visualEffectView appearanceType="vibrantDark" blendingMode="behindWindow" state="inactive" id="kpQ-qE-hkl">
|
|
<rect key="frame" x="533" y="14" width="215" height="254"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<subviews>
|
|
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="x9a-RT-bcS">
|
|
<rect key="frame" x="18" y="110" width="179" height="34"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
|
<animations/>
|
|
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" id="b25-G9-HOg">
|
|
<font key="font" metaFont="systemBold"/>
|
|
<string key="title">Vibrant Dark
|
|
Inactive</string>
|
|
<color key="textColor" red="1" green="1" blue="1" alpha="0.84999999999999998" colorSpace="calibratedRGB"/>
|
|
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
|
</textFieldCell>
|
|
</textField>
|
|
</subviews>
|
|
<animations/>
|
|
</visualEffectView>
|
|
</subviews>
|
|
<animations/>
|
|
</view>
|
|
<point key="canvasLocation" x="713" y="374.5"/>
|
|
</window>
|
|
</objects>
|
|
<resources>
|
|
<image name="background" width="614.4000244140625" height="401"/>
|
|
</resources>
|
|
</document>
|