From b34b7fc504ba4ba27dfe7c2c446c3085a923f952 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 7 May 2020 19:38:50 +0200 Subject: [PATCH] luci-base: replace filebrowser icons with SVG variants Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/cbi/file.svg | 12 ++++++++++++ .../htdocs/luci-static/resources/cbi/folder.svg | 12 ++++++++++++ .../htdocs/luci-static/resources/cbi/link.svg | 13 +++++++++++++ .../luci-base/htdocs/luci-static/resources/ui.js | 9 ++++++--- 4 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 modules/luci-base/htdocs/luci-static/resources/cbi/file.svg create mode 100644 modules/luci-base/htdocs/luci-static/resources/cbi/folder.svg create mode 100644 modules/luci-base/htdocs/luci-static/resources/cbi/link.svg diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi/file.svg b/modules/luci-base/htdocs/luci-static/resources/cbi/file.svg new file mode 100644 index 0000000000..9feedcf35c --- /dev/null +++ b/modules/luci-base/htdocs/luci-static/resources/cbi/file.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi/folder.svg b/modules/luci-base/htdocs/luci-static/resources/cbi/folder.svg new file mode 100644 index 0000000000..9a5becaa9d --- /dev/null +++ b/modules/luci-base/htdocs/luci-static/resources/cbi/folder.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi/link.svg b/modules/luci-base/htdocs/luci-static/resources/cbi/link.svg new file mode 100644 index 0000000000..3f556fb5c0 --- /dev/null +++ b/modules/luci-base/htdocs/luci-static/resources/cbi/link.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 822b572a3d..1f9a436f13 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -2611,21 +2611,24 @@ var UIFileUpload = UIElement.extend(/** @lends LuCI.ui.FileUpload.prototype */ { switch (type) { case 'symlink': return E('img', { - 'src': L.resource('cbi/link.gif'), + 'src': L.resource('cbi/link.svg'), + 'width': 16, 'title': _('Symbolic link'), 'class': 'middle' }); case 'directory': return E('img', { - 'src': L.resource('cbi/folder.gif'), + 'src': L.resource('cbi/folder.svg'), + 'width': 16, 'title': _('Directory'), 'class': 'middle' }); default: return E('img', { - 'src': L.resource('cbi/file.gif'), + 'src': L.resource('cbi/file.svg'), + 'width': 16, 'title': _('File'), 'class': 'middle' }); -- 2.30.2