mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-04 19:49:34 +08:00
* [Buttons] Support IB custom fonts MDCButton should allow custom fonts to be set via Interface Builder. Instead of overwriting the titleLabel.font to our preferred font, we can initialize the button's font-for-state dictionary with the font provided by the label. Closes #2786 * Fixing Bazel builds
35 lines
2.2 KiB
XML
35 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
|
|
<device id="retina4_7" orientation="portrait">
|
|
<adaptation id="fullscreen"/>
|
|
</device>
|
|
<dependencies>
|
|
<deployment identifier="iOS"/>
|
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
|
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
</dependencies>
|
|
<objects>
|
|
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
|
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
|
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="ButtonTestView">
|
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
<subviews>
|
|
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bGz-KD-fJl" customClass="MDCButton">
|
|
<rect key="frame" x="101" y="189" width="150" height="43"/>
|
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
|
<fontDescription key="fontDescription" type="system" pointSize="40"/>
|
|
<state key="normal" title="Button">
|
|
<color key="titleColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
|
|
</state>
|
|
</button>
|
|
</subviews>
|
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
<connections>
|
|
<outlet property="button" destination="bGz-KD-fJl" id="C9B-OB-9jx"/>
|
|
</connections>
|
|
<point key="canvasLocation" x="24.5" y="52.5"/>
|
|
</view>
|
|
</objects>
|
|
</document>
|