Skip to content

Commit

Permalink
qvm-template-gui: UI improvements
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
marmarek committed Apr 2, 2021
1 parent 0857ff8 commit 679a239
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion qubesmanager/qvm_template_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Template(typing.NamedTuple):
'Name',
'Version',
'Reponame',
'Size (MB)',
'Download Size (MB)',
'Build Time',
'Install Time',
'License',
Expand Down
18 changes: 14 additions & 4 deletions ui/qvmtemplate.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>465</width>
<width>930</width>
<height>478</height>
</rect>
</property>
Expand All @@ -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">
Expand All @@ -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>
Expand All @@ -61,7 +68,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>465</width>
<width>930</width>
<height>24</height>
</rect>
</property>
Expand All @@ -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>
Expand All @@ -95,7 +105,7 @@
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>Install</string>
<string>Apply</string>
</property>
</action>
</widget>
Expand Down

0 comments on commit 679a239

Please sign in to comment.