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

com.alee.skin.dark.resources.togglebutton.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.laf.button.WebToggleButton -->

    <!-- Toggle button -->
    <style type="togglebutton" padding="2,4,2,4">
        <component>
            <foreground>255,255,255,240</foreground>
            <horizontalAlignment>0</horizontalAlignment>
            <verticalAlignment>0</verticalAlignment>
        </component>
        <painter>
            <selectedForeground>255,255,255,240</selectedForeground>
            <decorations>
                <decoration>
                    <WebShape round="3" />
                    <WebShadow type="outer" width="2" />
                    <LineBorder color="20,20,20" />
                    <GradientBackground>
                        <color>111,115,117</color>
                        <color>77,81,83</color>
                    </GradientBackground>
                </decoration>
                <decoration states="selected">
                    <WebShadow type="outer" opacity="0" />
                    <WebShadow type="inner" opacity="1" width="6" />
                    <ColorBackground color="77,81,83" />
                </decoration>
                <decoration states="focused">
                    <LineBorder color="black" />
                </decoration>
                <decoration states="pressed">
                    <WebShadow type="outer" opacity="0" />
                    <WebShadow type="inner" opacity="1" width="6" />
                    <ColorBackground color="57,61,63" />
                </decoration>
                <decoration states="disabled">
                    <WebShadow type="outer" opacity="0" />
                    <LineBorder color="68,72,74" />
                </decoration>
            </decorations>
        </painter>
    </style>

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

    <!-- Hover-decorated-only toggle button -->
    <style type="togglebutton" id="hover">
        <painter>
            <decorations>
                <decoration opacity="0" />
                <decoration states="focused">
                    <LineBorder color="black" />
                </decoration>
                <decoration states="enabled,hover" opacity="1" />
                <decoration states="enabled,pressed" opacity="1" />
                <decoration states="selected" opacity="1" />
            </decorations>
        </painter>
    </style>

    <!-- Icon-only and hover-decorated-only toggle button -->
    <style type="togglebutton" id="icon-hover" extends="icon">
        <painter>
            <decorations>
                <decoration opacity="0" />
                <decoration states="focused">
                    <LineBorder color="black" />
                </decoration>
                <decoration states="enabled,hover" opacity="1" />
                <decoration states="enabled,pressed" opacity="1" />
                <decoration states="selected" opacity="1" />
            </decorations>
        </painter>
    </style>

</skin>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy