From b244cfc7b22919194dd253dc7b5531ea98057a55 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 26 Feb 2018 15:42:12 +0000 Subject: [PATCH] linux note: Make default button blue --- SparkleShare/Linux/Note.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SparkleShare/Linux/Note.cs b/SparkleShare/Linux/Note.cs index e4ccd29c..ecbdbe16 100644 --- a/SparkleShare/Linux/Note.cs +++ b/SparkleShare/Linux/Note.cs @@ -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); };