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:
parent
f588b1ce3f
commit
5611dd2fc5
1 changed files with 16 additions and 12 deletions
|
@ -19,18 +19,7 @@
|
||||||
<property name="child">
|
<property name="child">
|
||||||
<object class="AdwToolbarView">
|
<object class="AdwToolbarView">
|
||||||
<child type="top">
|
<child type="top">
|
||||||
<object class="AdwHeaderBar">
|
<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 -->
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<!-- Search Entry -->
|
<!-- Search Entry -->
|
||||||
|
@ -76,6 +65,21 @@
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</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>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue