Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] issue with linear-gradient #1204

Open
3 tasks done
FreewayFiat opened this issue Sep 21, 2024 · 5 comments
Open
3 tasks done

[BUG] issue with linear-gradient #1204

FreewayFiat opened this issue Sep 21, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@FreewayFiat
Copy link

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

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

  • :space-eveny true on the box
  • a linear-gradient with 0deg or 180deg

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

@FreewayFiat FreewayFiat added the bug Something isn't working label Sep 21, 2024
@w-lfchen
Copy link
Contributor

w-lfchen commented Sep 21, 2024

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

@FreewayFiat
Copy link
Author

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
Copy link
Contributor

w-lfchen commented Sep 21, 2024

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
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants