Mark paused VMs with grey icon (#707)

This commit is contained in:
Marek Marczykowski 2013-02-20 23:08:18 +01:00
parent ab5fca6e19
commit 74f9bcd6f7
3 changed files with 3 additions and 1 deletions

BIN
icons/paused.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -204,6 +204,8 @@ class VmStatusIcon(QLabel):
def set_on_icon(self):
if self.vm.last_power_state == "Running":
icon = QIcon (":/on.png")
elif self.vm.last_power_state in ["Paused"]:
icon = QIcon (":/paused.png")
elif self.vm.last_power_state in ["Transient", "Halting", "Dying"]:
icon = QIcon (":/transient.png")
else:

View File

@ -21,6 +21,7 @@
<file alias="add.png">icons/add.png</file>
<file alias="flag-blue.png">icons/flag-blue.png</file>
<file alias="on.png">icons/running.png</file>
<file alias="paused.png">icons/paused.png</file>
<file alias="transient.png">icons/transient.png</file>
<file alias="flag-green.png">icons/flag-green.png</file>
<file alias="flag-red.png">icons/flag-red.png</file>
@ -49,5 +50,4 @@
<file alias="showcpuload.png">icons/showcpuload.png</file>
<file alias="mic.png">icons/mic.png</file>
</qresource>
<qresource/>
</RCC>