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

René Fritz rene at typo3.org
Mon Feb 27 15:19:58 CET 2006


committed

René

> 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/



More information about the TYPO3-team-core mailing list