[TYPO3-core] RFC: generation of "disabled function" icons
René Fritz
rene at typo3.org
Fri Feb 24 02:12:54 CET 2006
This is a CVS patch request.
Type: feature
Branch: TYPO3_4-0
Description:
The idea behind it is to display currently not available function-icons in BE
instead of hiding them. When you have a look at the screenshot it shows icons
and two of them are greyed because the function can not be processed for the
item. Generally the BE don't do that and I think that needs to be changed.
... anyway. The patch is just about creating the dimmed icons. That works
transparently with t3lib_iconworks::skinImg().
For record icons there are several states which are indicated with _d, _ht and
such suffixes. While _d was already in use I choose _i (inactive) as suffix.
So you can easily create dimmed icons by adding _i to the filename.
Example:
if ($this->disabled) {
$iconFile = 'gfx/zoom_i.gif';
} else {
$iconFile = 'gfx/zoom.gif';
}
$icon = '<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], $iconFile, ...
Notes:
- if the file already exists nothing will be rendered
- that means hand made artwork can be used for dimmed icons
- disabled icons are rendered a bit lighter than shaded record icons to make
it more visible that it is disabled
René
--
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3lib_iconworks.patch
Type: text/x-diff
Size: 2736 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060224/a618e4f1/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3lib_iconworks.png
Type: image/png
Size: 1124 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060224/a618e4f1/attachment.png
More information about the TYPO3-team-core
mailing list