Skip to content

Commit

Permalink
New button stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jul 30, 2024
1 parent 44edd5e commit e7126cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions data/ui/mainwindow.blp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ template MondaiMainWindow : He.ApplicationWindow {

Gtk.StackPage {
name: "select";

child: Gtk.Box {
orientation: vertical;
hexpand: true;
Expand All @@ -52,7 +52,7 @@ template MondaiMainWindow : He.ApplicationWindow {
selection-mode: single;

row-selected => on_listbox_row_selected();

styles ["content-list"]

.MondaiProductItem {
Expand Down Expand Up @@ -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;
Expand All @@ -110,7 +111,7 @@ template MondaiMainWindow : He.ApplicationWindow {

Gtk.StackPage {
name: "describe";

child: Gtk.Box {
hexpand: true;
vexpand: true;
Expand Down Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -166,4 +166,4 @@ public class Mondai.MainWindow : He.ApplicationWindow {
});
});
}
}
}

0 comments on commit e7126cb

Please sign in to comment.