calendar-management/new-calendar: Move add button to dialog

Move the add button from the headerbar into the dialog, make it
a pill button, and update the button label with the number of
calendars that will be added.
This commit is contained in:
Georges Basile Stavracas Neto
2023-06-22 00:20:21 +00:00
parent a13b4ae4f6
commit 5e5eb75be0
2 changed files with 44 additions and 11 deletions
@@ -15,17 +15,6 @@
</object>
</property>
<child type="end">
<object class="GtkButton" id="add_button">
<property name="label" translatable="yes">Add</property>
<property name="sensitive">False</property>
<signal name="clicked" handler="on_add_button_clicked_cb" object="GcalNewCalendarPage" swapped="no" />
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>
@@ -199,6 +188,25 @@
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="GtkButton" id="add_button">
<property name="halign">center</property>
<property name="label" translatable="yes">Add Calendar</property>
<property name="sensitive">False</property>
<signal name="clicked" handler="on_add_button_clicked_cb" object="GcalNewCalendarPage" swapped="no" />
<style>
<class name="pill"/>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>