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

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

<skin xmlns="http://weblookandfeel.com/XmlSkin">

    <!-- com.alee.laf.menu.WebRadioButtonMenuItem -->

    <!-- Radio button menu item -->
    <style type="radiobuttonmenuitem">
        <component>
            <opaque>false</opaque>
        </component>
        <painter>
            <decorations>
                <decoration>
                    <WebShape round="0" />
                    <MenuItemLayout padding="4,10,5,8" iconTextGap="6" textAcceleratorGap="20">
                        <SimpleButtonIcon constraints="icon" />
                        <ButtonText constraints="text" color="black" />
                        <RoundRectangle constraints="accelerator" round="4" opacity="0">
                            <ColorBackground color="240,240,240" />
                        </RoundRectangle>
                        <AcceleratorText constraints="accelerator" padding="0,4,0,4" color="90,90,90" />
                    </MenuItemLayout>
                </decoration>
                <decoration states="selected">
                    <GradientBackground>
                        <color>208,208,198</color>
                        <color>196,196,186</color>
                    </GradientBackground>
                    <MenuItemLayout>
                        <RoundRectangle opacity="1" />
                    </MenuItemLayout>
                </decoration>
                <decoration states="disabled">
                    <MenuItemLayout>
                        <ButtonText color="120,120,120" />
                        <AcceleratorText color="120,120,120" />
                    </MenuItemLayout>
                </decoration>
            </decorations>

            <!-- Radio state painter -->
            <checkStatePainter>
                <decorations>
                    <decoration size="17,17">
                        <EllipseShape />
                        <WebShadow type="outer" width="2" />
                        <LineBorder color="170,170,170" />
                        <GradientBackground type="radial" from="0.5,0.5" to="2,0.5">
                            <color>white</color>
                            <color>223,223,223</color>
                        </GradientBackground>
                    </decoration>
                    <decoration states="checked">
                        <RadioIcon padding="2" leftColor="41,75,104" rightColor="117,127,145" />
                    </decoration>
                    <decoration states="disabled">
                        <WebShadow type="outer" opacity="0" />
                        <LineBorder color="lightGray" />
                    </decoration>
                    <decoration states="disabled,checked">
                        <RadioIcon padding="2" leftColor="gray" rightColor="lightGray" />
                    </decoration>
                </decorations>
            </checkStatePainter>

        </painter>
    </style>

</skin>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy