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

Border gradients don't work #302

Open
Damnjelly opened this issue Apr 21, 2024 · 3 comments
Open

Border gradients don't work #302

Damnjelly opened this issue Apr 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Damnjelly
Copy link

Border gradients don't work properly. It seems that it does create a gradient but instead of create a linear gradient, it has a direct transition between the 2 colors. Below an example of what i mean.
image

Layout part of my config file:

layout {
    gaps 18
    struts {
        left 32
        right 32
        top 0
        bottom 0
    }
    focus-ring { off; }
    border {
        width 2
        active-gradient angle=45 from="#ce1270" relative-to="window" to="#dba3e6"
        inactive-color "#6d546d"
    }
    preset-column-widths
    default-column-width { proportion 0.500000; }
    center-focused-column "never"
}

System Information

(using NixOS with the niri flake)

  • niri version: niri unstable 2024-04-21 (commit 49f5402)
  • GPU: NVIDIA GeForce RTX 3070
  • CPU: Ryzen 5 5600X
@Damnjelly Damnjelly added the bug Something isn't working label Apr 21, 2024
@YaLTeR
Copy link
Owner

YaLTeR commented Apr 21, 2024

Uhh huh, that's weird. Haven't seen that one before. Wonder if it could be Nvidia related

@YaLTeR
Copy link
Owner

YaLTeR commented Apr 22, 2024

Seems to work for me:

image

Not sure what could be the cause. Do other angles look the same?

@Damnjelly
Copy link
Author

Yes they do, except that the angle of the harsh transition is different. On some angles, e.g. the default 180 degrees, you can't see the second color at all

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