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

com.alee.skin.dark.resources.tristatecheckbox.xml Maven / Gradle / Ivy

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

    <!-- com.alee.extended.checkbox.WebTristateCheckBox -->

    <!-- Tristate checkbox -->
    <style type="tristatecheckbox">
        <painter>
            <decorations>
                <decoration>
                    <ButtonLayout>
                        <SimpleButtonIcon constraints="icon" />
                        <ButtonText constraints="text" color="245,245,245" />
                    </ButtonLayout>
                </decoration>
                <decoration states="disabled">
                    <ButtonLayout>
                        <ButtonText color="180,180,180" />
                    </ButtonLayout>
                </decoration>
            </decorations>

            <!-- Check state painter -->
            <checkStatePainter>
                <decorations>
                    <decoration size="17,17">
                        <WebShape round="2" />
                        <WebShadow type="outer" width="2" />
                        <LineBorder color="20,20,20" />
                        <GradientBackground type="radial" from="0.5,0.5" to="2,0.5">
                            <color>77,81,83</color>
                            <color>black</color>
                        </GradientBackground>
                    </decoration>
                    <decoration states="checked">
                        <CheckIcon bounds="margin" stroke="basic;2" color="255,255,255,235" />
                    </decoration>
                    <decoration states="mixed">
                        <MixedIcon round="2" leftColor="255,255,255,225" rightColor="255,255,255,235" />
                    </decoration>
                    <decoration states="focused">
                        <LineBorder color="black" />
                    </decoration>
                    <decoration states="disabled">
                        <WebShadow type="outer" opacity="0" />
                        <LineBorder color="68,72,74" />
                        <ColorBackground color="80,80,80" />
                    </decoration>
                    <decoration states="disabled,checked">
                        <CheckIcon bounds="margin" color="130,130,130" />
                    </decoration>
                    <decoration states="disabled,mixed">
                        <MixedIcon leftColor="120,120,120" rightColor="130,130,130" />
                    </decoration>
                </decorations>
            </checkStatePainter>

        </painter>
    </style>

    <!-- Tristate checkbox supporting styled text -->
    <style type="tristatecheckbox" id="styled">
        <painter>
            <decorations>
                <decoration>
                    <ButtonLayout>
                        <StyledButtonText constraints="text" color="245,245,245" />
                    </ButtonLayout>
                </decoration>
                <decoration states="disabled">
                    <ButtonLayout>
                        <StyledButtonText color="180,180,180" ignoreStyleColors="true" />
                    </ButtonLayout>
                </decoration>
            </decorations>
        </painter>
    </style>

    <!-- Link-like tristate checkbox -->
    <style type="tristatecheckbox" id="link" extends="styled">
        <painter>
            <decorations>
                <decoration cursor="hand" />
                <decoration states="hover">
                    <ButtonLayout>
                        <StyledButtonText globalStyle="u" />
                    </ButtonLayout>
                </decoration>
                <decoration states="disabled">
                    <ButtonLayout>
                        <StyledButtonText globalStyle="" />
                    </ButtonLayout>
                </decoration>
            </decorations>
        </painter>
    </style>

</skin>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy