Elementary's human interface guidelines specify how dialogs should look:
In Valadoc, there is a minimal example on how Gtk.MessageDialog
is to be used:
Gtk.MessageDialog msg = new Gtk.MessageDialog (this,
Gtk.DialogFlags.MODAL,
Gtk.MessageType.WARNING,
Gtk.ButtonsType.OK_CANCEL,
"My message!");
msg.show();
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
?