YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
2.78k stars 77 forks source link

Border gradients don't work #302

Open Damnjelly opened 2 months ago

Damnjelly commented 2 months ago

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)

YaLTeR commented 2 months ago

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

YaLTeR commented 2 months ago

Seems to work for me:

image

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

Damnjelly commented 2 months ago

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