All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alee.skin.web.resources.splitbutton.xml Maven / Gradle / Ivy

Go to download

WebLaf is a Java Swing Look and Feel and extended components library for cross-platform applications

There is a newer version: 2.2.1
Show newest version
<skin>

    <!-- com.alee.extended.button.WebSplitButton -->

    <!-- Button -->
    <style type="splitbutton" padding="2,4,2,0">
        <component>
            <foreground>black</foreground>
            <horizontalAlignment>0</horizontalAlignment>
            <verticalAlignment>0</verticalAlignment>
        </component>
        <painter>
            <selectedForeground>black</selectedForeground>
            <splitLineColor>170,170,170</splitLineColor>
            <splitLineDisabledColor>lightGray</splitLineDisabledColor>
            <splitIconGap>4</splitIconGap>
            <contentGap>6</contentGap>
            <decorations>
                <decoration>
                    <WebShape round="3" />
                    <WebShadow type="outer" width="2" />
                    <LineBorder color="170,170,170" />
                    <GradientBackground>
                        <color>white</color>
                        <color>223,223,223</color>
                    </GradientBackground>
                </decoration>
                <decoration states="focused">
                    <LineBorder color="85,130,190" />
                </decoration>
                <decoration states="pressed">
                    <WebShadow type="outer" opacity="0" />
                    <WebShadow type="inner" width="6" />
                    <ColorBackground color="210,210,210" />
                </decoration>
                <decoration states="disabled">
                    <WebShadow type="outer" opacity="0" />
                    <LineBorder color="lightGray" />
                </decoration>
            </decorations>
        </painter>
    </style>

    <!-- Icon-only button -->
    <style type="splitbutton" id="icon" padding="2">
        <painter>
            <splitIconGap>2</splitIconGap>
            <contentGap>2</contentGap>
            <decorations>
                <decoration>
                    <WebShape round="2" />
                </decoration>
            </decorations>
        </painter>
    </style>

    <!-- Hover-decorated-only button -->
    <style type="splitbutton" id="hover">
        <painter>
            <decorations>
                <decoration opacity="0" />
                <decoration states="enabled,hover" opacity="1" />
                <decoration states="enabled,pressed" opacity="1" />
            </decorations>
        </painter>
    </style>

    <!-- Icon-only and hover-decorated-only button -->
    <style type="splitbutton" id="icon-hover" extends="icon">
        <painter>
            <decorations>
                <decoration opacity="0" />
                <decoration states="enabled,hover" opacity="1" />
                <decoration states="enabled,pressed" opacity="1" />
            </decorations>
        </painter>
    </style>

</skin>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy