Skip to content

Conversation

@fun840
Copy link

@fun840 fun840 commented Dec 6, 2022

This adds some new options to the script, allowing you to have gradient borders.

The --border-gradient option accepts a list of RGBA colors, which will make up the gradient.

The --rainbow option will create a rainbow gradient (using the built in colorsys module's hsv_to_rgb)
The --rainbow-steps option specifies how many colors the rainbow gradient should use, the default being 20. This can slightly affect performance, but around 20 seems to be the sweet spot where performance is good but both ends of the gradient are roughly the same color.
The --rainbow-saturation option specifies the saturation of the colors in the rainbow gradient, this is nice to get a sort of pastel look.
The --rainbow-brightness option specifies the brightness of the colors in the rainbow gradient, for customization and completeness.

The --absolute-gradient option makes the gradient 'absolute,' so it doesn't move with the current window. This gives the effect that the border is masking the gradient.

@Ari-43
Copy link

Ari-43 commented Jun 4, 2024

I have been having some fun messing around with this. Are there any plans for this to get merged eventually?

Ari-43 added a commit to Ari-43/xborders that referenced this pull request Dec 12, 2025
Also includes README changes/improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants