linux note: Make default button blue

This commit is contained in:
Hylke Bons 2018-02-26 15:42:12 +00:00
parent 76719f5c36
commit b244cfc7b2

View file

@ -96,8 +96,9 @@ namespace SparkleShare {
var cancel_button = new Button ("Cancel");
var sync_button = new Button ("Sync"); // TODO: Make default button
sync_button.CanDefault = true;
var sync_button = new Button ("Sync") { CanDefault = true };
sync_button.StyleContext.AddClass ("suggested-action");
cancel_button.Clicked += delegate { Controller.CancelClicked (); };
sync_button.Clicked += delegate { Controller.SyncClicked (balloon.Buffer.Text); };