DRY Qubes[Disp]VmLabels

This commit is contained in:
Jean-Philippe Ouellet 2016-11-25 00:03:05 -05:00
parent 01b67a0af1
commit 5c08d0e2e3
No known key found for this signature in database
GPG Key ID: E7E455013D042EA1

View File

@ -935,14 +935,8 @@ QubesVmLabels = {
} }
QubesDispVmLabels = { QubesDispVmLabels = {
"red": QubesVmLabel(1, "0xcc0000", "red", dispvm=True), k: QubesVmLabel(index=v.index, color=v.color, name=v.name, dispvm=True)
"orange": QubesVmLabel(2, "0xf57900", "orange", dispvm=True), for k, v in QubesVmLabels.iteritems()
"yellow": QubesVmLabel(3, "0xedd400", "yellow", dispvm=True),
"green": QubesVmLabel(4, "0x73d216", "green", dispvm=True),
"gray": QubesVmLabel(5, "0x555753", "gray", dispvm=True),
"blue": QubesVmLabel(6, "0x3465a4", "blue", dispvm=True),
"purple": QubesVmLabel(7, "0x75507b", "purple", dispvm=True),
"black": QubesVmLabel(8, "0x000000", "black", dispvm=True),
} }
defaults["appvm_label"] = QubesVmLabels["red"] defaults["appvm_label"] = QubesVmLabels["red"]