Replies: 2 comments 4 replies
-
Already proposed in #3494 and at least one other |
Beta Was this translation helpful? Give feedback.
2 replies
-
To me, it sounds like we should add the ability to use a gradient as StyleBoxFlat's background instead. StyleBoxTexture is meant to be used when you have premade textures with an entirely distinct art direction, rather than flat design UI. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently trying to make a button look modern using a gradient and rounded corners.
StyleBoxTexture seems to be missing a bunch of options which the StyleBoxFlat has, meaning I can either do a button with rounded corners and a solid color, or a gradient button without rounded corners.
It would be really nice if I could avoid creating .pngs in third party programs just to have round corners on an UI element, and instead do everything inside of Godot with a GradientTexture and some Theme Override magic.
Everything I've tried has led to this;
I've even tried setting
clip_children
toClip + Draw
and making a TextureRect with this gradient, which then led to the button's shadows receiving the white highlight, resulting in the same issue as in the picture above.Beta Was this translation helpful? Give feedback.
All reactions