From c61163c1f93e1ba74b8405cf5eb001dd3e7e72ef Mon Sep 17 00:00:00 2001 From: axtloss Date: Sat, 9 Jul 2022 15:27:27 +0200 Subject: [PATCH] Sugar sugar sugar pills change the button on the main screen to be in a pill form (https://www.youtube.com/watch?v=Wv6cN-y6ps4 banger song) --- src/window.blp | 9 ++------- src/window.py | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/window.blp b/src/window.blp index c693fad..e56a21f 100644 --- a/src/window.blp +++ b/src/window.blp @@ -59,7 +59,7 @@ template JadeGuiWindow : Gtk.ApplicationWindow { Gtk.Label letsstart { label: "Ready to make your Crystal installation... ready?"; - margin-bottom: 25; + margin-bottom: 28; } Gtk.Box { @@ -69,15 +69,10 @@ template JadeGuiWindow : Gtk.ApplicationWindow { vexpand: true; hexpand: true; - Gtk.Button quit_button { - label: "No..."; - margin-end: 12; - } - Gtk.Button next_button { margin-start: 12; label: "YEAH!"; - styles ["suggested-action"] + styles ["suggested-action", "pill"] } } } diff --git a/src/window.py b/src/window.py index f16f4f4..661c9a2 100644 --- a/src/window.py +++ b/src/window.py @@ -37,7 +37,7 @@ class JadeGuiWindow(Gtk.ApplicationWindow): ### Page and widgets on welcome screen welcome_page = Gtk.Template.Child() - quit_button = Gtk.Template.Child() + # quit_button = Gtk.Template.Child() next_button = Gtk.Template.Child() @@ -53,7 +53,7 @@ class JadeGuiWindow(Gtk.ApplicationWindow): self.carousel.append(self.user_screen) self.carousel.append(self.desktop_screen) ### Widgets for first page (welcome screen) - self.quit_button.connect("clicked", self.confirmQuit) + #self.quit_button.connect("clicked", self.confirmQuit) self.next_button.connect("clicked", self.nextPage) ### ---------