From: Dietmar Maurer Date: Tue, 17 Dec 2013 06:48:05 +0000 (+0100) Subject: add menu icons for VNC and SPICE X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3acbeafacfae84b0fc92bc2311ab211d3fe41353;p=pve-manager-legacy.git add menu icons for VNC and SPICE --- diff --git a/www/css/ext-pve.css b/www/css/ext-pve.css index ad91378f..ce829a33 100644 --- a/www/css/ext-pve.css +++ b/www/css/ext-pve.css @@ -20,6 +20,8 @@ -khtml-user-select: text!important; } +.pve-itype-icon-virt-viewer, +.pve-itype-icon-tigervnc, .pve-itype-icon-display, .pve-itype-icon-memory, .pve-itype-icon-processor, @@ -146,6 +148,16 @@ background-image:url(../images/display.png); } +.pve-itype-icon-tigervnc +{ + background-image:url(../images/tigervnc.png); +} + +.pve-itype-icon-virt-viewer +{ + background-image:url(../images/virt-viewer.png); +} + .pve-bar-wrap { diff --git a/www/images/Makefile b/www/images/Makefile index 714db629..7363d50a 100644 --- a/www/images/Makefile +++ b/www/images/Makefile @@ -6,6 +6,10 @@ all: # stop.png /usr/share/icons/gnome/16x16/actions/media-playback-stop.png # computer-template.png /usr/share/icons/gnome/16x16/mimetypes/gnome-mime-application-vnd.sun.xml.calc.template.png +# virt-viewer.png copied from virt-viewer sources +# tigervnc.png converted from tigervnc sources +# (tigervnc.org/media/tigervnc_16.svg) + GNOME_IMAGES = \ start.png \ stop.png \ @@ -22,6 +26,8 @@ GNOME_IMAGES = \ computer.png IMAGES = ${GNOME_IMAGES} \ + virt-viewer.png \ + tigervnc.png \ favicon.ico \ snapshot.png \ computer-on.png \ diff --git a/www/images/tigervnc.png b/www/images/tigervnc.png new file mode 100644 index 00000000..5240acd4 Binary files /dev/null and b/www/images/tigervnc.png differ diff --git a/www/images/virt-viewer.png b/www/images/virt-viewer.png new file mode 100644 index 00000000..226881fd Binary files /dev/null and b/www/images/virt-viewer.png differ diff --git a/www/manager/button/ConsoleButton.js b/www/manager/button/ConsoleButton.js index 9a5e520d..6dd45d8f 100644 --- a/www/manager/button/ConsoleButton.js +++ b/www/manager/button/ConsoleButton.js @@ -87,11 +87,13 @@ Ext.define('PVE.button.ConsoleButton', { me.spiceMenu = Ext.create('Ext.menu.Item', { text: 'SPICE', + iconCls: 'pve-itype-icon-virt-viewer', handler: create_spice_console }); var vncMenu = Ext.create('Ext.menu.Item', { text: 'VNC', + iconCls: 'pve-itype-icon-tigervnc', handler: create_vnc_console });