Remove Irrlicht GUI gradients - #16015
Conversation
|
This PR does generally the same as #13718. My opinion on this topic is unchanged since #13718 (comment). An API or the use of 9-sliced images might be needed to cover most use-cases and personal preferences. |
It looks like this PR addresses at least one major concern (contrast) which was brought up on the original PR by about four different people, and addressing more concerns is planned.
Most people seem to prefer flat ones (see e.g. the reactions on roller's PR).
The problem of button stylability is already pretty much solved as far as games are concerned. Try e.g. Mineclonia. The question that remains is how default buttons, in the main menu, before the user has done any configuration, should look. The default should look appealing to most (first time) users, and currently it just doesn't. People don't want to have to configure the GUI of an application to look okay. Some applications let you choose a theme, many don't. I don't think we should maintain multiple themes or a bunch of settings, or introduce something like a "mainmenu texture pack" or direct users to edit some files if they want the main menu to look okay. It is on us to sensibly choose this default, like any other default, and this was, as far as I know, never done: We just inherited the Irrlicht default styles. And I don't think the gradient is currently the best approximation of what people expect buttons to look like. |
|
Concerning the 3rd screen: the red X might work but I wouldn't make the Login button green (definitely not that green, but anyway it can be argued that register and login bear the same weight - so same colour) |
Thanks for your feedback. Keep in mind that this was just an "experiment", I wouldn't merge it like that either. |
|
Although I was previously more on the "let's find a compromise" side of things, I totally agree with @appgurueu. In my opinion, we should move forward with this with only minor (e.g., color or contrast) changes before stalling again. |
sfan5
left a comment
There was a problem hiding this comment.
Fundamentally we should do this.
The GUI style is still not pretty but it's no longer offensively ugly.
I can't tell, not familiar with how irrlicht actually works under the hood, but that has been noted multiple times already.
If I understood him correctly, @SmallJoker brought it up because he found that buttons are harder to distinguish from text fields with this change (see #13718 (comment)). Maybe this could be moved into a separate PR together with a discussion about the addition of colors? @Zughy also spoke in favor of leaving the colors untouched for now (#15826 (comment)). Crossed it off the list. |
See |
|
Will look into it, thanks for pointing it out. |
|
How can you get the round buttons back in a game? (For my (unchanged) opinion on this, see #13718 (comment).) |
|
I don't think formspec styling supports gradients, I guess you would need to have a gradient texture and use image_buttons. |
9-slice may be able to emulate it to some degree, but since it's texturing vs. perfectly smooth vertex colors it will be subpar. |
grorp
left a comment
There was a problem hiding this comment.
I agree that this is an improvement.
appgurueu
left a comment
There was a problem hiding this comment.
I still support this.
p.s. when squashing, make sure to preserve at least co-authorship attribution for rollerozxa.
- No gradient background, added dark background. - Removed unnecessary debug names and enums. Co-authored-by: rollerozxa <rollerozxa@voxelmanip.se> Co-authored-by: grorp <grorp@posteo.de>
dfdfc60 to
da72fb0
Compare
|
I don't think ripping out the gradient code is a good idea really. Disable it by default, sure, if you want it. I personally like the gradients, I don't understand the criticism, but I don't care that much either. Rip out? Why? |
|
What would be the advantage of keeping it? It's dead code either way. |
Allow modders to enable it in formspecs on purpose...? |
|
I'm glad for this change |
We decided that we didn't want this. |
I agree that it's not important, but I genuinely think using 9-slice for this should probably work okay (I see no good reason why it wouldn't, an image of a gradient with reasonable resolution should be scaled reasonably - the filter isn't even very important). It probably won't match the current gradients pixel-perfectly but it should very similar if done right. I'm too lazy to recreate an ugly button style using 9-slice though. |
|
Beauty is in the eye of the beholder. But 9-slices for gradients it will be. Those don't take much memory/storage anyway. And you might want a different gradient algorithm/colour stops anyway. |
Co-authored-by: rollerozxa <rollerozxa@voxelmanip.se> Co-authored-by: grorp <grorp@posteo.de>
Co-authored-by: rollerozxa <rollerozxa@voxelmanip.se> Co-authored-by: grorp <grorp@posteo.de>
|
Hello. I recently did a |
This reverts commit 9b2ee1d.
This reverts commit 9b2ee1d.






This PR is related to #15826, see this discussion #6733 (comment).
Disclaimer: I have close to zero experience with irrlicht, this is a first hands-on experience for me.
To do/discuss
This PR is a Work in Progress. As far as I can tell the main concerns are:
Screenshots
RE: removing the faux 3d stuff - let's keep that in.
#15826 (comment)