Browse Source

qvm-template-gui: UI improvements

- rename "install" button to "apply" - it also does remove and
  reinstall
- show button descriptions always
- show help text always, not only before selecting anything
- make the window a bit wider
Marek Marczykowski-Górecki 3 years ago
parent
commit
679a23980d
2 changed files with 15 additions and 5 deletions
  1. 1 1
      qubesmanager/qvm_template_gui.py
  2. 14 4
      ui/qvmtemplate.ui

+ 1 - 1
qubesmanager/qvm_template_gui.py

@@ -38,7 +38,7 @@ class Template(typing.NamedTuple):
         'Name',
         'Version',
         'Reponame',
-        'Size (MB)',
+        'Download Size (MB)',
         'Build Time',
         'Install Time',
         'License',

+ 14 - 4
ui/qvmtemplate.ui

@@ -6,7 +6,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>465</width>
+    <width>930</width>
     <height>478</height>
    </rect>
   </property>
@@ -25,6 +25,13 @@
       </property>
      </widget>
     </item>
+    <item>
+     <widget class="QLabel" name="label">
+      <property name="text">
+       <string>Select actions to perform in &quot;Status&quot; column:</string>
+      </property>
+     </widget>
+    </item>
     <item>
      <widget class="QTreeView" name="listing">
       <property name="editTriggers">
@@ -50,7 +57,7 @@
        <bool>true</bool>
       </property>
       <property name="placeholderText">
-       <string>Click the 'Status' column to change the status of templates.</string>
+       <string>Use &quot;Status&quot; column to select actions to execute on a given template; when desired actions are selected, use &quot;Apply&quot; to perform them.</string>
       </property>
      </widget>
     </item>
@@ -61,7 +68,7 @@
     <rect>
      <x>0</x>
      <y>0</y>
-     <width>465</width>
+     <width>930</width>
      <height>24</height>
     </rect>
    </property>
@@ -71,6 +78,9 @@
    <property name="windowTitle">
     <string>toolBar</string>
    </property>
+   <property name="toolButtonStyle">
+    <enum>Qt::ToolButtonTextUnderIcon</enum>
+   </property>
    <attribute name="toolBarArea">
     <enum>TopToolBarArea</enum>
    </attribute>
@@ -95,7 +105,7 @@
      <normaloff>.</normaloff>.</iconset>
    </property>
    <property name="text">
-    <string>Install</string>
+    <string>Apply</string>
    </property>
   </action>
  </widget>