[meld] Improve new comparison UI (#590)



commit ab79b96a3a518b61dc3ae029868013eb159da4e9
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jul 4 12:09:45 2021 +1000

    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.

 meld/resources/ui/new-diff-tab.ui | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/meld/resources/ui/new-diff-tab.ui b/meld/resources/ui/new-diff-tab.ui
index 69626ac4..7f4a26be 100644
--- a/meld/resources/ui/new-diff-tab.ui
+++ b/meld/resources/ui/new-diff-tab.ui
@@ -458,6 +458,7 @@
                 <property name="expand">False</property>
                 <property name="fill">False</property>
                 <property name="position">0</property>
+                <property name="secondary">True</property>
               </packing>
             </child>
             <child>
@@ -470,6 +471,9 @@
                 <property name="receives-default">True</property>
                 <property name="use-underline">True</property>
                 <signal name="clicked" handler="on_button_compare_clicked" swapped="no"/>
+                <style>
+                  <class name="suggested-action"/>
+                </style>
               </object>
               <packing>
                 <property name="expand">False</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]