From 20acf73b7966296fe74b7157d07b2d63dca49869 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 (cherry picked from commit b34b7fc504ba4ba27dfe7c2c446c3085a923f952) --- .../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 000000000..9feedcf35 --- /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 000000000..9a5becaa9 --- /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 000000000..3f556fb5c --- /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 d860638e9..bad415b30 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -2614,21 +2614,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.25.1