keyboard-shortcut-dialog: Tweak Reset button

Move the Reset button to the bottom add
.pill and .destructive-style classes to it. Also,
remove its tooltip.

Partially fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2669
This commit is contained in:
Automeris naranja 2023-11-10 02:40:39 -03:00 committed by Felipe Borges
parent f588b1ce3f
commit 5611dd2fc5

View file

@ -19,18 +19,7 @@
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<!-- Reset All… button -->
<child>
<object class="GtkButton" id="reset_all_button">
<property name="label" translatable="yes">Reset All…</property>
<property name="tooltip-text" translatable="yes">Reset all shortcuts to their default keybindings</property>
<signal name="clicked" handler="reset_all_clicked_cb" swapped="yes" />
</object>
</child>
</object> <!-- ./AdwHeaderBar main_header_bar -->
<object class="AdwHeaderBar"/>
</child>
<!-- Search Entry -->
@ -76,6 +65,21 @@
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="GtkButton" id="reset_all_button">
<property name="label" translatable="yes">Reset All…</property>
<signal name="clicked" handler="reset_all_clicked_cb" swapped="yes" />
<property name="halign">center</property>
<style>
<class name="destructive-action"/>
<class name="pill"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>