<theme name="MouseNeo">

<colors>
    <color1 name="Window list background" default="#3C3C3C" opacity="82"/>
    <color3 name="Active window" default="#398EE7" opacity="100"/>
    <color5 name="Dot color" default="#EBEBEB" opacity="100"/>
    <color6 name="Box color" default="#323232" opacity="40"/>
    <color7 name="Active color" default="#2C6EB3" opacity="100"/>
    <color8 name="Attention color" default="#FF4050" opacity="100"/>
</colors>

<pixmaps>
    <pixmap_from_file name="dot" file="dot.png"/>
    <pixmap_from_file name="dot-mini" file="dot-mini.png"/>
    <pixmap_from_file name="highlight" file="highlight.png"/>
</pixmaps>

<sets>
    <set name="as" left="90" right="-90" up="180" down="0" />
    <set name="ias" left="-90" right="90" up="180" down="0" />
</sets>

<button_pixmap gap="0" aspect_ratio="1" windows_cnt="3">
    <get_icon size="-6"/>
    <correct_size/>

    <!-- Rotate -->
    <rotate angle="ias" resize="True" />

    <!-- Hover glow -->
    <if type="mouse_over">
        <bright strength="10"/>
    </if>

    <!-- Boxes -->
    <pixmap name="box">
        <if type="active">
            <fill color="color7" opacity="color7"/>
        </if>
        <if type="needs_attention">
            <fill color="color8" opacity="color8"/>
        </if>
        <if type="blink">
            <fill color="color8" opacity="color8"/>
        </if>
        <if type="!active">
            <if type="!needs_attention">
                <if type="!blink">
                    <fill color="color6" opacity="color6"/>
                </if>
            </if>
        </if>
        <alpha_mask mask="highlight"/>
    </pixmap>

    <!-- Open windows -->
    <if type="!all_minimized">
        <if type="!some_minimized">
            <pixmap name="open_dot">
                <fill color="color5" opacity="color5"/>
                <alpha_mask mask="dot"/>
            </pixmap>
            <if type="!launcher" windows="1">
                <composite bg="box" fg="self"/>
                <composite bg="self" fg="open_dot"/>
            </if>
            <if type="!launcher" windows="2">
                <composite bg="box" fg="self"/>
                <composite bg="self" fg="open_dot" xoffset="3"/>
                <composite bg="self" fg="open_dot" xoffset="-3"/>
            </if>
            <if type="!launcher" windows="3">
                <composite bg="box" fg="self"/>
                <composite bg="self" fg="open_dot" xoffset="6"/>
                <composite bg="self" fg="open_dot" xoffset="-6"/>
                <composite bg="self" fg="open_dot"/>
            </if>
        </if>
    </if>

    <!-- Minimized windows -->
    <if type="all_minimized">
        <pixmap name="mini_dot">
            <fill color="color5" opacity="color5"/>
            <alpha_mask mask="dot-mini"/>
        </pixmap>
        <if windows="1">
            <composite bg="box" fg="self"/>
            <composite bg="self" fg="mini_dot"/>
        </if>
        <if windows="2">
            <composite bg="box" fg="self"/>
            <composite bg="self" fg="mini_dot" xoffset="3"/>
            <composite bg="self" fg="mini_dot" xoffset="-3"/>
        </if>
        <if type="all_minimized"  windows="3">
            <composite bg="box" fg="self"/>
            <composite bg="self" fg="mini_dot" xoffset="6"/>
            <composite bg="self" fg="mini_dot" xoffset="-6"/>
            <composite bg="self" fg="mini_dot"/>
        </if>
    </if>

    <!-- Partially minimized groups -->
    <if type="some_minimized">
        <pixmap name="open_dot">
            <fill color="color5" opacity="color5"/>
            <alpha_mask mask="dot"/>
        </pixmap>
        <pixmap name="mini_dot">
            <fill color="color5" opacity="color5"/>
            <alpha_mask mask="dot-mini"/>
        </pixmap>
        <if windows="2">
            <composite bg="box" fg="self"/>
            <composite bg="self" fg="mini_dot" xoffset="3" />
            <composite bg="self" fg="open_dot" xoffset="-3" />
        </if>
        <if windows="3">
            <composite bg="box" fg="self"/>
            <composite bg="self" fg="mini_dot" xoffset="6" />
            <composite bg="self" fg="mini_dot" xoffset="-6" />
            <composite bg="self" fg="open_dot"/>
        </if>
    </if>

    <!-- Rotate -->
    <rotate angle="as"/>
</button_pixmap>
</theme>
