-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Restyle message boxes and add icon support to them on X11. #13267
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
Conversation
704a790
to
2c8c04e
Compare
It doesn't look great to me. Maybe it makes sense to build in actual icons? |
What about using coloring the icons in with blue, red, yellow, etc and drawing an outline? |
@slouken I decided to tweak the palette some more and bevelling to the buttons, thoughts? |
This seems fine. @icculus, thoughts? |
Sorry to barge in, but I have been working on a fork where all of the window and widget code form the messagebox implementation is moved into a built in toolkit so those functions can be reused in a UNIX non-zenity/non-portal dialog implementation, should I work on that or keep this open? |
Thoughts? eafton@1b9eb9d |
I'll go ahead and merge this. We can tweak the styling for 3.4.0 release. Thanks for your work on this! |
@slouken No problem! One last thing, should I work on the "toolkit" mentioned above or not? |
It's up to you. I don't think it's something SDL would use, we try to minimize system dependencies where possible. |
Its all internal to SDL, you can check the branch I sent earlier, I split out the code so it can be reused in a dialog subsystem implementation, I also ported messageboxes to it and it seems to work fine. |
Oh, I see. Feel free to create a PR for this, sure. I don't know whether it makes sense to use for dialogs, but it doesn't hurt to refactor and clean up the messagebox code. |
This patch adds an icon (warning, icon, information) to message boxes on the X11 backend.