Skip to content

Commit ab79b96

Browse files
committed
Improve new comparison UI (#590)
The main goal here is to separate the blank vs regular comparison in the UI. This commit does two small things to try and achieve this: * we set the Compare action as the "suggested" action using CSS, which means the button should get a suggest-action colour hint; and * we set the Blank comparison action as secondary, meaning that it will get packed to the left hand side of the dialog.
1 parent e680447 commit ab79b96

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

meld/resources/ui/new-diff-tab.ui

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@
458458
<property name="expand">False</property>
459459
<property name="fill">False</property>
460460
<property name="position">0</property>
461+
<property name="secondary">True</property>
461462
</packing>
462463
</child>
463464
<child>
@@ -470,6 +471,9 @@
470471
<property name="receives-default">True</property>
471472
<property name="use-underline">True</property>
472473
<signal name="clicked" handler="on_button_compare_clicked" swapped="no"/>
474+
<style>
475+
<class name="suggested-action"/>
476+
</style>
473477
</object>
474478
<packing>
475479
<property name="expand">False</property>

0 commit comments

Comments
 (0)