[TYPO3-core] RFC: generation of "disabled function" icons

Michael Stucki michael at typo3.org
Fri Feb 24 09:43:08 CET 2006


Hi René,

I don't understand where this could be useful?

Here is just a general note:
There is still a lot of trouble regarding the icon generation. Icons will not 
be rendered automatically if noIconProc is unset (it is set by default).

I think the best solution is to remove all dynamic icon rendering code from 
t3lib_iconworks and simply use CSS instead.

- michael

Am Freitag, 24. Februar 2006 02:12 schrieb René Fritz:
> 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é
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060224/cd64dd8a/attachment.pgp 


More information about the TYPO3-team-core mailing list