LEv145 / --sd-webui-ar-plus

Select img aspect ratio from presets in sd-webui
52 stars 6 forks source link

[Lobe theme] Double button display #11

Closed alexbofa closed 1 year ago

alexbofa commented 1 year ago

Hello, I have Lobe Theme. There is a problem with displaying buttons. Screen-1100

LEv145 commented 1 year ago

The problem is that the developer added an external style for modules.ui_components.ToolButton, which is why the visible property does not work with ToolButton https://github.com/canisminor1990/sd-webui-lobe-theme/blob/d4c4a48e8025d32b202716d4ab8d806580752256/src/styles/components/button.ts#L10

But because of this, pressed button will not differ from not pressed https://github.com/canisminor1990/sd-webui-lobe-theme/blob/d4c4a48e8025d32b202716d4ab8d806580752256/src/styles/components/button.ts#L25

LEv145 commented 1 year ago

Quick fix

style.css:

...
/* Fix for Lobe theme */
/* https://github.com/canisminor1990/sd-webui-lobe-theme/blob/d4c4a48e8025d32b202716d4ab8d806580752256/src/styles/components/button.ts */
.hide.svelte-1ipelgc {
    display: none !important;
}
.primary.svelte-1ipelgc {
    background: var(--button-primary-background-fill) !important;
}
.secondary.svelte-1ipelgc {
    background: var(--button-secondary-background-fill) !important;
}
LEv145 commented 1 year ago

Added a patch for Lobe theme The changes do not affect the standard auto1111 styles https://github.com/LEv145/--sd-webui-ar-plus/pull/12

You can just update --sd-webui-ar-plus