From 9105f66176ef6d4b761571b5ac40e1b135c848e2 Mon Sep 17 00:00:00 2001 From: Nathanaƫl Jourdane Date: Thu, 15 Mar 2018 18:01:42 +0100 Subject: [PATCH] Replace clear icon with a trash image --- js/app/controllers/ExplorerModule.js | 2 +- js/resources/css/amda.css | 10 +++++++++- js/resources/images/trash.png | Bin 0 -> 356 bytes 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 js/resources/images/trash.png diff --git a/js/app/controllers/ExplorerModule.js b/js/app/controllers/ExplorerModule.js index 6f6037d..27a2aae 100644 --- a/js/app/controllers/ExplorerModule.js +++ b/js/app/controllers/ExplorerModule.js @@ -114,7 +114,7 @@ Ext.define('amdaDesktop.ExplorerModule', stateful: true, stateId: 'LogPanel', tools: [{ - type: 'close', + type: 'trash', tooltip: 'Clear logs', handler: function () { var logPanel = win.items.get('LogPanel') diff --git a/js/resources/css/amda.css b/js/resources/css/amda.css index 51ce619..ae8bacc 100644 --- a/js/resources/css/amda.css +++ b/js/resources/css/amda.css @@ -121,6 +121,14 @@ background-image: url(../images/small_cancel_centered.png); } /** +Custom tool typ icons + */ + +.x-tool-trash { + background-image: url(../images/trash.png) !important; +} + +/** * RangeMenu Styles **/ @@ -504,4 +512,4 @@ p + p { .epntap_cell { padding: 4px; white-space: normal; -} \ No newline at end of file +} diff --git a/js/resources/images/trash.png b/js/resources/images/trash.png new file mode 100644 index 0000000..4af9a4f Binary files /dev/null and b/js/resources/images/trash.png differ -- libgit2 0.21.2