Mark paused VMs with grey icon (#707)
This commit is contained in:
parent
ab5fca6e19
commit
74f9bcd6f7
BIN
icons/paused.png
Normal file
BIN
icons/paused.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -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:
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user