From 991a25ab5df66752d8bdb460d1b622b9f52358b1 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 29 May 2009 09:37:32 +0000 Subject: Better icon for deleting folders + remove hard-coded icon path --- program/steps/mail/attachments.inc | 2 +- program/steps/mail/compose.inc | 6 ++++-- skins/default/images/icons/delete.png | Bin 0 -> 787 bytes skins/default/images/icons/remove-attachment.png | Bin 787 -> 0 bytes skins/default/images/icons/trash.png | Bin 775 -> 0 bytes skins/default/templates/compose.html | 2 +- skins/default/templates/managefolders.html | 2 +- 7 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 skins/default/images/icons/delete.png delete mode 100644 skins/default/images/icons/remove-attachment.png delete mode 100644 skins/default/images/icons/trash.png diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc index 81ac2fe5c..7cd089e04 100644 --- a/program/steps/mail/attachments.inc +++ b/program/steps/mail/attachments.inc @@ -91,7 +91,7 @@ if (is_array($_FILES['_attachments']['tmp_name'])) { unset($attachment['status']); $_SESSION['compose']['attachments'][$id] = $attachment; - if (is_file($icon = $CONFIG['skin_path'] . '/images/icons/remove-attachment.png')) { + if (($icon = $_SESSION['compose']['deleteicon']) && is_file($icon)) { $button = html::img(array( 'src' => $icon, 'alt' => rcube_label('delete') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 8d43de050..f753b35dd 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -716,11 +716,13 @@ function rcmail_compose_attachment_list($attrib) if (is_array($_SESSION['compose']['attachments'])) { - if ($attrib['deleteicon']) + if ($attrib['deleteicon']) { $button = html::img(array( 'src' => $CONFIG['skin_path'] . $attrib['deleteicon'], 'alt' => rcube_label('delete') - )); + )); + $_SESSION['compose']['deleteicon'] = $CONFIG['skin_path'] . $attrib['deleteicon']; + } else $button = Q(rcube_label('delete')); diff --git a/skins/default/images/icons/delete.png b/skins/default/images/icons/delete.png new file mode 100644 index 000000000..8d496fe10 Binary files /dev/null and b/skins/default/images/icons/delete.png differ diff --git a/skins/default/images/icons/remove-attachment.png b/skins/default/images/icons/remove-attachment.png deleted file mode 100644 index 8d496fe10..000000000 Binary files a/skins/default/images/icons/remove-attachment.png and /dev/null differ diff --git a/skins/default/images/icons/trash.png b/skins/default/images/icons/trash.png deleted file mode 100644 index 0712aaa71..000000000 Binary files a/skins/default/images/icons/trash.png and /dev/null differ diff --git a/skins/default/templates/compose.html b/skins/default/templates/compose.html index d5abd47cc..3225b2895 100644 --- a/skins/default/templates/compose.html +++ b/skins/default/templates/compose.html @@ -93,7 +93,7 @@
- +

diff --git a/skins/default/templates/managefolders.html b/skins/default/templates/managefolders.html index b886cf6fc..80f5df279 100644 --- a/skins/default/templates/managefolders.html +++ b/skins/default/templates/managefolders.html @@ -16,7 +16,7 @@
-- cgit v1.2.3