From c38fb861a46b99433f3539e3cd8b3fdbff7b7a2b Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Sat, 8 Mar 2014 12:13:35 +0100 Subject: [PATCH] webui: add icons to channel management functions --- src/webui/static/app/chconf.js | 10 +++++----- src/webui/static/app/ext.css | 16 ++++++++++++++++ src/webui/static/icons/arrow_down.png | 1 + src/webui/static/icons/arrow_switch.png | 1 + src/webui/static/icons/arrow_up.png | 1 + src/webui/static/icons/bullet_add.png | 1 + 6 files changed, 25 insertions(+), 5 deletions(-) create mode 120000 src/webui/static/icons/arrow_down.png create mode 120000 src/webui/static/icons/arrow_switch.png create mode 120000 src/webui/static/icons/arrow_up.png create mode 120000 src/webui/static/icons/bullet_add.png diff --git a/src/webui/static/app/chconf.js b/src/webui/static/app/chconf.js index ea93c211..c11951cb 100644 --- a/src/webui/static/app/chconf.js +++ b/src/webui/static/app/chconf.js @@ -153,7 +153,7 @@ tvheadend.channel_tab = function(panel) var mapButton = new Ext.Toolbar.Button({ tooltip : 'Map services to channels', - iconCls : '', + iconCls : 'clone', text : 'Map Services', handler : tvheadend.service_mapper, disabled : false @@ -161,7 +161,7 @@ tvheadend.channel_tab = function(panel) var lowNoButton = new Ext.Toolbar.Button({ tooltip : 'Assign lowest free channel number', - iconCls : '', + iconCls : 'bullet_add', text : 'Assign Number', handler : assign_low_number, disabled : false @@ -169,7 +169,7 @@ tvheadend.channel_tab = function(panel) var noUpButton = new Ext.Toolbar.Button({ tooltip : 'Move channel one number up', - iconCls : '', + iconCls : 'arrow_up', text : 'Number Up', handler : move_number_up, disabled : false @@ -177,7 +177,7 @@ tvheadend.channel_tab = function(panel) var noDownButton = new Ext.Toolbar.Button({ tooltip : 'Move channel one number down', - iconCls : '', + iconCls : 'arrow_down', text : 'Number Down', handler : move_number_down, disabled : false @@ -185,7 +185,7 @@ tvheadend.channel_tab = function(panel) var noSwapButton = new Ext.Toolbar.Button({ tooltip : 'Swap the two selected channels numbers', - iconCls : '', + iconCls : 'arrow_switch', text : 'Swap Numbers', handler : swap_numbers, disabled : false diff --git a/src/webui/static/app/ext.css b/src/webui/static/app/ext.css index 124dfbc5..4152748a 100644 --- a/src/webui/static/app/ext.css +++ b/src/webui/static/app/ext.css @@ -272,6 +272,22 @@ background-image: url(../icons/rec.png) !important; } +.bullet_add { + background-image: url(../icons/bullet_add.png) !important; +} + +.arrow_up { + background-image: url(../icons/arrow_up.png) !important; +} + +.arrow_down { + background-image: url(../icons/arrow_down.png) !important; +} + +.arrow_switch { + background-image: url(../icons/arrow_switch.png) !important; +} + .x-smallhdr { float: left; width: 100px; diff --git a/src/webui/static/icons/arrow_down.png b/src/webui/static/icons/arrow_down.png new file mode 120000 index 00000000..f2e9de09 --- /dev/null +++ b/src/webui/static/icons/arrow_down.png @@ -0,0 +1 @@ +../../../../vendor/famfamsilk/arrow_down.png \ No newline at end of file diff --git a/src/webui/static/icons/arrow_switch.png b/src/webui/static/icons/arrow_switch.png new file mode 120000 index 00000000..b0b841de --- /dev/null +++ b/src/webui/static/icons/arrow_switch.png @@ -0,0 +1 @@ +../../../../vendor/famfamsilk/arrow_switch.png \ No newline at end of file diff --git a/src/webui/static/icons/arrow_up.png b/src/webui/static/icons/arrow_up.png new file mode 120000 index 00000000..8744937c --- /dev/null +++ b/src/webui/static/icons/arrow_up.png @@ -0,0 +1 @@ +../../../../vendor/famfamsilk/arrow_up.png \ No newline at end of file diff --git a/src/webui/static/icons/bullet_add.png b/src/webui/static/icons/bullet_add.png new file mode 120000 index 00000000..1695294a --- /dev/null +++ b/src/webui/static/icons/bullet_add.png @@ -0,0 +1 @@ +../../../../vendor/famfamsilk/bullet_add.png \ No newline at end of file