From e7126cbc58dd509b7d7b20d35699fcc52d7c5e80 Mon Sep 17 00:00:00 2001 From: lainsce Date: Tue, 30 Jul 2024 13:02:56 -0300 Subject: [PATCH] New button stuff --- data/ui/mainwindow.blp | 12 +++++++----- src/MainWindow.vala | 8 ++++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/data/ui/mainwindow.blp b/data/ui/mainwindow.blp index d13679d..9573bf0 100644 --- a/data/ui/mainwindow.blp +++ b/data/ui/mainwindow.blp @@ -34,7 +34,7 @@ template MondaiMainWindow : He.ApplicationWindow { Gtk.StackPage { name: "select"; - + child: Gtk.Box { orientation: vertical; hexpand: true; @@ -52,7 +52,7 @@ template MondaiMainWindow : He.ApplicationWindow { selection-mode: single; row-selected => on_listbox_row_selected(); - + styles ["content-list"] .MondaiProductItem { @@ -99,8 +99,9 @@ template MondaiMainWindow : He.ApplicationWindow { He.Divider {} - He.PillButton to_describe { + He.Button to_describe { label: "Next"; + is-pill: true; sensitive: false; margin-start: 18; margin-end: 18; @@ -110,7 +111,7 @@ template MondaiMainWindow : He.ApplicationWindow { Gtk.StackPage { name: "describe"; - + child: Gtk.Box { hexpand: true; vexpand: true; @@ -163,9 +164,10 @@ template MondaiMainWindow : He.ApplicationWindow { He.Divider {} - He.PillButton submit { + He.Button submit { margin-start: 18; margin-end: 18; + is-pill: true; label: "Submit"; sensitive: false; } diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 9dd6179..13aeb30 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -27,14 +27,14 @@ public class Mondai.MainWindow : He.ApplicationWindow { unowned Gtk.Stack stack; [GtkChild] - unowned He.PillButton to_describe; + unowned He.Button to_describe; [GtkChild] - unowned He.PillButton submit; + unowned He.Button submit; public MainWindow (He.Application application) { Object ( - application: application, + application : application, icon_name: Config.APP_ID, title: _("Mondai"), resizable: false @@ -166,4 +166,4 @@ public class Mondai.MainWindow : He.ApplicationWindow { }); }); } -} +} \ No newline at end of file