elkowar / eww

ElKowars wacky widgets
https://elkowar.github.io/eww
MIT License
9.46k stars 384 forks source link

[BUG] issue with linear-gradient #1204

Open FreewayFiat opened 2 months ago

FreewayFiat commented 2 months ago

Checklist before submitting an issue

Description of the bug

Hi all,

i'm having an issue with linear-gradients in the background and buttons on top. Where once you click the button the background color of the button changes. image

This happened to me with eventbox as well but not in this config example.

From what i could gather this does not happen when you have either

Not sure if this is even eww related, but i'm stuck on this and any help is appreciated. Thanks!

Reproducing the issue

; eww.yuck
(defwindow test []
    :geometry (geometry
        :width "20%"
        :height "5%"
    )

    (box
        :orientation "h"
        :style "background: linear-gradient(45deg, mediumpurple 0%, firebrick 100%);"
        :space-evenly false

        (button 
            :style "all: unset;" 
            "CLICK ME"
        )
    )
)

eww.scss is empty

Expected behaviour

image

Additional context

im on arch using bspwm this happens on both eww 0.5.0 d87c2fdbfdc012e76d229e4e9ea3325bc0f23e8 and eww 0.6.0 8661abf2bf07f5a809fc995233d93810cc1ac871

w-lfchen commented 2 months ago

i'm having issues reproducing the described behavior with your provided config since clicking on the button does nothing. what am i missing?

FreewayFiat commented 2 months ago

i don't think your missing anything. if you can't think of anything that would cause this on the eww/gtk side, then this is probably an issue with my nvidia gpu or some system configuration.

w-lfchen commented 2 months ago

this is probably an issue with my nvidia gpu or some system configuration.

that shouldn't be the case. can you send me the config for the first screenshot? image this is what your provided config yields me, seems to be the expected behavior a step you could try is adding this at the top of your eww.scss file:

* {
    all: unset;
}
FreewayFiat commented 2 months ago

adding to the eww.scss file does not improve things. the config is just what is provided above. I recorded this to maybe showcase my issue better https://github.com/user-attachments/assets/4f415790-6484-4a4a-8580-1397b22d8914

w-lfchen commented 2 months ago

that's weird, it doesn't behave that way on my system. could this be a compositor/window manager issue?