[gnome-boxes] assistant: Make "Create" button use "suggested-action" style



commit 90d2c145b52bcc475f140e9253f0d3db2a482ac1
Author: Felipe Borges <felipeborges gnome org>
Date:   Thu Dec 16 16:02:06 2021 +0100

    assistant: Make "Create" button use "suggested-action" style

 src/assistant/vm-assistant.vala | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/assistant/vm-assistant.vala b/src/assistant/vm-assistant.vala
index 8fc5d3ea..73f474b9 100644
--- a/src/assistant/vm-assistant.vala
+++ b/src/assistant/vm-assistant.vala
@@ -67,10 +67,14 @@ private void update_titlebar () {
         var is_index = (visible_page == index_page);
         var is_last = (visible_page == review_page);
 
-        next_button.visible = !is_index;
+        previous_button.label = is_index ? _("Cancel") : _("Previous");
 
+        next_button.visible = !is_index;
         next_button.label = is_last ? _("Create") : _("Next");
-        previous_button.label = is_index ? _("Cancel") : _("Previous");
+        if (is_last)
+            next_button.get_style_context ().add_class ("suggested-action");
+        else
+            next_button.get_style_context ().remove_class ("suggested-action");
 
         title = visible_page.title;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]