Elementary's human interface guidelines specify how dialogs should look:

dialogs in eos

In Valadoc, there is a minimal example on how Gtk.MessageDialog is to be used:

Gtk.MessageDialog msg = new Gtk.MessageDialog (this,
                                               "My message!");

However, when I do this, I get a dialog which doesn't conform to the Look & Feel of Elementary: Its buttons are too large and particularly without spacing. Also, how do I add a color highlight to one of the buttons ?

Here is the result, which I get, though I'm using the dark theme:


As you can see, the buttons are uglily "stacked", i.e. the blue highlight border of the focused button is overlapped by another button on one side.

Question: How do I create a dialog which looks like the one in the guidelines? Is that even possible using Gtk.MessageDialog?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.