From f9698f62cbbd2a195010d9e3bc25fb3633f5c71b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 31 Mar 2022 15:43:40 +0200 Subject: [PATCH] ui: qemu: switch processor icon to SVG Signed-off-by: Thomas Lamprecht --- www/css/ext6-pve.css | 7 ++++++ www/images/Makefile | 1 + www/images/icon-cpu.svg | 38 +++++++++++++++++++++++++++++++ www/manager6/qemu/HardwareView.js | 2 +- 4 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 www/images/icon-cpu.svg diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css index e4e8fbca..c4423ee5 100644 --- a/www/css/ext6-pve.css +++ b/www/css/ext6-pve.css @@ -301,6 +301,7 @@ .pve-itype-icon-serial, .pve-itype-icon-cloud, .pve-itype-icon-pci, +.pve-itype-icon-cpu, .pve-itype-icon-die { background-repeat: no-repeat; background-position:3px center; @@ -418,6 +419,12 @@ background-image:url(../images/icon-die.svg); } +.pve-itype-icon-cpu { + background-size: 16px; + background-image:url(../images/icon-cpu.svg); +} + + .pve-icon { height: 16px; background-position: bottom; diff --git a/www/images/Makefile b/www/images/Makefile index 8b2d1796..25c34764 100644 --- a/www/images/Makefile +++ b/www/images/Makefile @@ -80,6 +80,7 @@ IMAGES = ${GNOME_IMAGES} \ icon-die.svg \ icon-sdn.svg \ icon-fa-network-wired.svg\ + icon-cpu.svg \ icon-sdn.svg: icon-sdn.dot diff --git a/www/images/icon-cpu.svg b/www/images/icon-cpu.svg new file mode 100644 index 00000000..16b02604 --- /dev/null +++ b/www/images/icon-cpu.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js index 6cea4287..2ce4e3d6 100644 --- a/www/manager6/qemu/HardwareView.js +++ b/www/manager6/qemu/HardwareView.js @@ -95,7 +95,7 @@ Ext.define('PVE.qemu.HardwareView', { never_delete: true, editor: caps.vms['VM.Config.CPU'] || caps.vms['VM.Config.HWType'] ? 'PVE.qemu.ProcessorEdit' : undefined, - tdCls: 'pmx-itype-icon-processor', + tdCls: 'pve-itype-icon-cpu', group: 3, defaultValue: '1', multiKey: ['sockets', 'cpu', 'cores', 'numa', 'vcpus', 'cpulimit', 'cpuunits'],