'die' as in 'dice', not what Perl does Signed-off-by: Stefan Reiter <s.rei...@proxmox.com> ---
I think it turned out okay ;) Thanks to everyone who suggested a die as a symbol for randomness. www/css/ext6-pve.css | 9 ++++++- www/images/Makefile | 3 ++- www/images/icon-die.svg | 40 +++++++++++++++++++++++++++++++ www/manager6/qemu/HardwareView.js | 4 ++-- 4 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 www/images/icon-die.svg diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css index df49df73..388b32c9 100644 --- a/www/css/ext6-pve.css +++ b/www/css/ext6-pve.css @@ -279,7 +279,8 @@ .pve-itype-icon-usb, .pve-itype-icon-serial, .pve-itype-icon-cloud, -.pve-itype-icon-pci +.pve-itype-icon-pci, +.pve-itype-icon-die { background-repeat: no-repeat; background-position:3px center; @@ -422,6 +423,12 @@ background-image:url(../images/icon-cloud.svg); } +.pve-itype-icon-die +{ + background-size: 16px; + background-image:url(../images/icon-die.svg); +} + .pve-icon { height: 16px; background-position: bottom; diff --git a/www/images/Makefile b/www/images/Makefile index b7e001f4..d78a0cca 100644 --- a/www/images/Makefile +++ b/www/images/Makefile @@ -78,7 +78,8 @@ IMAGES = ${GNOME_IMAGES} \ icon-serial.svg \ icon-cloud.svg \ icon-pci.png \ - icon-usb.png + icon-usb.png \ + icon-die.svg .PHONY: install install: ${IMAGES} diff --git a/www/images/icon-die.svg b/www/images/icon-die.svg new file mode 100644 index 00000000..5dccb010 --- /dev/null +++ b/www/images/icon-die.svg @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + width="800" + height="800" + viewBox="0 0 211.66667 211.66667" + version="1.1"> + <g + id="layer1" + transform="translate(0,-85.333333)"> + <rect + id="rect3852" + width="178.39867" + height="178.39865" + x="16.634005" + y="101.96733" + style="fill:none;stroke:#000000;stroke-width:15.875;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + ry="25.099966" /> + <circle + style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:13.22916603;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + id="path4663" + cx="105.83334" + cy="191.16667" + r="18" /> + <circle + style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:13.22916698;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + id="path4663-3" + cx="149.83366" + cy="235.16634" + r="18" /> + <circle + style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:13.22916698;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1;paint-order:normal" + id="path4663-6" + cx="61.833668" + cy="147.16634" + r="18" /> + </g> +</svg> diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js index 595afd10..20983b9b 100644 --- a/www/manager6/qemu/HardwareView.js +++ b/www/manager6/qemu/HardwareView.js @@ -303,7 +303,7 @@ Ext.define('PVE.qemu.HardwareView', { } rows.rng0 = { group: 45, - iconCls: 'cogs', + tdCls: 'pve-itype-icon-die', editor: caps.nodes['Sys.Console'] ? 'PVE.qemu.RNGEdit' : undefined, never_delete: caps.nodes['Sys.Console'] ? false : true, header: gettext("VirtIO RNG") @@ -735,7 +735,7 @@ Ext.define('PVE.qemu.HardwareView', { { text: gettext("VirtIO RNG"), itemId: 'addrng', - iconCls: 'fa fa-fw fa-cogs black', + iconCls: 'pve-itype-icon-die', disabled: !caps.nodes['Sys.Console'], handler: function() { var win = Ext.create('PVE.qemu.RNGEdit', { -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel