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

Provide option to set WindowBorderColor as non-gradient #16

Open
ThiconZ opened this issue Nov 25, 2021 · 1 comment
Open

Provide option to set WindowBorderColor as non-gradient #16

ThiconZ opened this issue Nov 25, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ThiconZ
Copy link
Member

ThiconZ commented Nov 25, 2021

Right now the only option for setting a Window Border Color is through the Gradient fields. While the same color can be provided to both, it may be "simpler" to allow specifying a single color directly to a Theme.WindowBorderColor field and allowing it to be drawn using ImGui.GetWindowDrawList().AddRectFilled()

https://github.com/themeldingwars/ImTool/blob/master/ImTool/Window.cs#L222

@ThiconZ ThiconZ added the enhancement New feature or request label Nov 25, 2021
@freakbyte
Copy link
Member

I'm unsure about this as it would introduce extra complexity, just to save one line in a theme file.
What if both are specified in the themes file, do we use the solid color or gradient variable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants