1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-03 13:35:36 +00:00
transmission/macosx/InfoWindow.xib
Dzmitry Neviadomski c38ee22f7f [macOS] Update Info window.
Use SF Symbols on macOS 11+

Use NSSegmentedControl instead of custom view.

Add NSImage extension to fallback loading from
assets on macOS 10.15 and older.

Also should fix sizing issues when changing pane from Options
to Files.

Fixes #2247
2021-12-12 08:24:16 +03:00

112 lines
9.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="InfoWindowController">
<connections>
<outlet property="fBasicInfoField" destination="29" id="1479"/>
<outlet property="fImageView" destination="28" id="36"/>
<outlet property="fNameField" destination="15" id="160"/>
<outlet property="fNoneSelectedField" destination="1832" id="1834"/>
<outlet property="fTabs" destination="xlT-co-gnG" id="sDP-l6-KTQ"/>
<outlet property="window" destination="5" id="49"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<window title="Torrent Inspector" allowsToolTipsWhenApplicationIsInactive="NO" restorable="NO" hidesOnDeactivate="YES" releasedWhenClosed="NO" visibleAtLaunch="NO" animationBehavior="default" tabbingMode="disallowed" id="5" userLabel="InfoWindow" customClass="NSPanel">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES" utility="YES"/>
<rect key="contentRect" x="897" y="867" width="403" height="70"/>
<rect key="screenRect" x="0.0" y="0.0" width="1792" height="1120"/>
<value key="minSize" type="size" width="350" height="77"/>
<view key="contentView" id="6">
<rect key="frame" x="0.0" y="0.0" width="403" height="70"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="249" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="15" customClass="InfoTextField">
<rect key="frame" x="48" y="44" width="347" height="16"/>
<textFieldCell key="cell" lineBreakMode="truncatingMiddle" sendsActionOnEndEditing="YES" alignment="left" title="title" id="1481">
<font key="font" metaFont="systemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="249" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="1832">
<rect key="frame" x="48" y="36" width="347" height="16"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="left" title="No Torrents Selected" id="1833">
<font key="font" metaFont="systemBold"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<imageView horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="28">
<rect key="frame" x="10" y="28" width="32" height="32"/>
<constraints>
<constraint firstAttribute="width" constant="32" id="8RE-eg-dQr"/>
<constraint firstAttribute="height" constant="32" id="dFT-cY-S1H"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="NSApplicationIcon" id="1482"/>
</imageView>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="249" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="29" customClass="InfoTextField">
<rect key="frame" x="48" y="30" width="347" height="14"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="info" id="1483">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<segmentedControl verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="xlT-co-gnG" userLabel="Segments">
<rect key="frame" x="8" y="-1" width="387" height="24"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="NcB-d2-g62"/>
</constraints>
<segmentedCell key="cell" borderStyle="border" alignment="left" segmentDistribution="fill" style="rounded" trackingMode="selectOne" id="aGK-Yo-M1B">
<font key="font" metaFont="system"/>
<segments>
<segment image="info.circle" catalog="system" selected="YES"/>
<segment image="square.grid.3x3.square" catalog="system" tag="1"/>
<segment image="antenna.radiowaves.left.and.right" catalog="system" tag="2"/>
<segment image="person.2" catalog="system" tag="3"/>
<segment image="doc.on.doc" catalog="system" tag="4"/>
<segment image="gearshape" catalog="system" tag="5"/>
</segments>
</segmentedCell>
</segmentedControl>
</subviews>
<constraints>
<constraint firstItem="29" firstAttribute="leading" secondItem="15" secondAttribute="leading" id="BNH-Tr-hFi"/>
<constraint firstItem="1832" firstAttribute="centerY" secondItem="28" secondAttribute="centerY" id="El1-Gz-xIm"/>
<constraint firstItem="15" firstAttribute="leading" secondItem="28" secondAttribute="trailing" constant="8" symbolic="YES" id="KnI-DH-f2f"/>
<constraint firstAttribute="trailing" secondItem="1832" secondAttribute="trailing" constant="10" id="KvA-Du-d9V"/>
<constraint firstAttribute="trailing" secondItem="15" secondAttribute="trailing" constant="10" id="NcT-hF-ea0"/>
<constraint firstAttribute="trailing" secondItem="xlT-co-gnG" secondAttribute="trailing" constant="10" id="UHq-fV-59B"/>
<constraint firstItem="29" firstAttribute="top" secondItem="15" secondAttribute="bottom" id="Y9O-lX-kmT"/>
<constraint firstItem="15" firstAttribute="top" secondItem="28" secondAttribute="top" id="eMj-JO-xBI"/>
<constraint firstItem="1832" firstAttribute="leading" secondItem="28" secondAttribute="trailing" constant="8" symbolic="YES" id="kix-P7-jf3"/>
<constraint firstAttribute="trailing" secondItem="29" secondAttribute="trailing" constant="10" id="kvJ-zV-yMM"/>
<constraint firstItem="28" firstAttribute="leading" secondItem="6" secondAttribute="leading" constant="10" id="lNe-yY-iVE"/>
<constraint firstItem="28" firstAttribute="top" secondItem="6" secondAttribute="top" constant="10" id="nES-K0-lBd"/>
<constraint firstItem="xlT-co-gnG" firstAttribute="top" secondItem="6" secondAttribute="top" constant="48" id="wUK-Q2-nIe"/>
<constraint firstItem="xlT-co-gnG" firstAttribute="leading" secondItem="6" secondAttribute="leading" constant="10" id="ymb-Ls-cSo"/>
</constraints>
</view>
<connections>
<outlet property="delegate" destination="-2" id="556"/>
</connections>
<point key="canvasLocation" x="195.5" y="152"/>
</window>
</objects>
<resources>
<image name="NSApplicationIcon" width="32" height="32"/>
<image name="antenna.radiowaves.left.and.right" catalog="system" width="16" height="14"/>
<image name="doc.on.doc" catalog="system" width="16" height="18"/>
<image name="gearshape" catalog="system" width="16" height="16"/>
<image name="info.circle" catalog="system" width="15" height="15"/>
<image name="person.2" catalog="system" width="21" height="14"/>
<image name="square.grid.3x3.square" catalog="system" width="15" height="14"/>
</resources>
</document>