<?xml version="1.0" encoding="UTF-8"?>
<!--
    IBUIBackgroundConfiguration.inspector
    IBCocoaTouchPlugin

    Created by Luke Larson on 1/27/21.
    Copyright © 2021 Apple Inc. All rights reserved.
-->
<slice>
    <section title="Background Configuration">
        <chooser title="Background" type="number" keyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.ibInspectedHasCustomBackgroundConfiguration">
            <choice value="0" title="Default" />
            <choice value="1" title="Custom">
                <sliver title="Corner Style" visibleKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.{{BACKGROUND_CONFIGURATION_VISIBLE_KEYPATH}}">
                    <property type="enumeration" keyPath="inspectedObjectsController.selection.object.{{BUTTON_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}IbInspectedCornerStyle">
                        <option-group>
                            <option value="-2" title="Default" />
                        </option-group>
                        <option-group>
                            <option value="-1" title="Fixed" />
                            <option value="0" title="Dynamic" />
                            <option value="1" title="Small" />
                            <option value="2" title="Medium" />
                            <option value="3" title="Large" />
                            <option value="4" title="Capsule" />
                        </option-group>
                    </property>
                </sliver>
                <sliver title="Corner Radius" visibleKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.ibInspectedCornerStyleSupportsCornerRadius">
                    <property type="number" formatStyle="decimal" allowsNilValues="true" nilPlaceholder="Default"    nonNilValueKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.background.ibDefaultCornerRadius" keyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}IbInspectedCornerRadius" />
                </sliver>
                <sliver title="Fill" visibleKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.{{BACKGROUND_CONFIGURATION_VISIBLE_KEYPATH}}">
                    <property type="ib-named-color"
                    keyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}BackgroundColor" supportsNil="YES" defaultColorForNil="YES" />
                </sliver>
                <sliver title="Stroke" visibleKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.{{BACKGROUND_CONFIGURATION_VISIBLE_KEYPATH}}">
                    <property type="ib-named-color"
                    keyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}StrokeColor" supportsNil="YES" defaultColorForNil="YES" />
                </sliver>
                <sliver visibleKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.{{BACKGROUND_CONFIGURATION_VISIBLE_KEYPATH}}">
                    <property title="Width" type="number" formatStyle="decimal" allowsNilValues="true" nilPlaceholder="Default" minimum="0.0" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.background.ibDefaultStrokeWidth" keyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}IbInspectedStrokeWidth" />
                    <property title="Outset" type="number" formatStyle="decimal" allowsNilValues="true" nilPlaceholder="Default" nonNilValueKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.background.ibDefaultStrokeOutset" keyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}IbInspectedStrokeOutset" />
                </sliver>
                <sliver fullWidth="true" visibleKeyPath="inspectedObjectsController.selection.object.ibButtonConfiguration.{{BACKGROUND_CONFIGURATION_VISIBLE_KEYPATH}}">
                    <property type="ib-named-resource" title="Image" placeholder="Background Image" keyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}IbInspectedImage" resourceType="image" />
                </sliver>
                <sliver title="Content Mode" visibleKeyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}HasImage">
                    <property type="Enumeration" keyPath="inspectedObjectsController.selection.object.{{BACKGROUND_CONFIGURATION_OBJECT_KEYPATH_PREFIX}}ImageContentMode">
                        <option-group>
                            <option title="Default" value="-1"/>
                        </option-group>
                        <option-group>
                            <option title="Scale To Fill" value="0"/>
                            <option title="Aspect Fit" value="1"/>
                            <option title="Aspect Fill" value="2"/>
                            <option title="Redraw" value="3"/>
                            <option title="Center" value="4"/>
                            <option title="Top" value="5"/>
                            <option title="Bottom" value="6"/>
                            <option title="Left" value="7"/>
                            <option title="Right" value="8"/>
                            <option title="Top Left" value="9"/>
                            <option title="Top Right" value="10"/>
                            <option title="Bottom Left" value="11"/>
                            <option title="Bottom Right" value="12"/>
                        </option-group>
                    </property>
                </sliver>
            </choice>
        </chooser>
    </section>
</slice>
