M7S / dockbarx

289 stars 40 forks source link

Dockbarx-plugin: Have larger launcher icons #131

Closed philipzae closed 4 years ago

philipzae commented 4 years ago

With a 32px panel height, standard launcher icons appear as 24px, while dockbarx launcher icons appear at 20px.

image

rauldipeas commented 4 years ago

You could change theme, or edit the stock ones.

philipzae commented 4 years ago

Changing the theme doesn't change the smaller icons appearing in dockbarx.

rauldipeas commented 4 years ago

Every theme has a different icon size.

philipzae commented 4 years ago

All themes have standard icon sizes of 16, 22, 24, 48, etc. Some themes may have a square or circle shape within the icons, but this doesn't change the size of the icons. I'm requesting that dockboarx's algo to determine the size of the rendered icons be updated.

xuzhen commented 4 years ago

It's written in dockbarx's theme configuration. Here is a code snippet form Glassified theme

        <pixmap name="bg_icon">
            <get_icon size="-8" />
            <correct_size />
            <if type="some_minimized">
                <transp_sat opacity="60" saturation="0" />
            </if>
            <if type="!some_minimized">
                <pixmap_from_self name="black_icon">
                    <colorize color="#000000" />
                </pixmap_from_self>
                <composite bg="self" fg="black_icon" opacity="30" />
            </if>
        </pixmap>
        <composite bg="empty" fg="bg_icon" opacity="100" xoffset="-4" yoffset="-4" />
        <pixmap name="fg_icon">
            <get_icon size="-8" />
            <correct_size />

        </pixmap>
        <composite bg="self" fg="fg_icon" opacity="100" xoffset="2" yoffset="1" />

For the default Glassified theme, the icon size will be the "available" height minus 8px.

philipzae commented 4 years ago

@rauldipeas Sorry I see that we were talking about two different themes. I was talking about the system's icon theme and you were referring to the dockbarx theme. :D

Golddouble commented 4 years ago

Not sure how to get bigger icons.

I have replaced two times <get_icon size="-8" /> through <get_icon size="-0" />

Has no effect.

xuzhen commented 4 years ago

@Golddouble there are also some <shrink percent="XX" /> commands. You need to change those values too.