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

Michael Stucki michael at typo3.org
Fri Feb 24 13:59:51 CET 2006


Hi René,

> > I don't understand where this could be useful?
>
> For example the control icons in web>list will just not be shown when a
> function is not applicable for an item. That's a bad GUI behaviour. The
> patch allow to render icons which are light grey to indicate the function
> not available.

Ah, I see. Will they have a link around the image? They shouldn't, right?

> > t3lib_iconworks and simply use CSS instead.
>
> How should that work??

By mixing the CSS "background-image" property with <img> elements. See 
attached HTML file for example.

Important: Adjust the path to your TYPO3 gfx/ folder first!

Mixing properties like e.g. "hidden" + "group" seems not possible (I found no 
way to do it), so this could be solved by making all possible combinations 
available like it is already the case for "hidden" + "timing".

I don't know why only "overlay_hidden_timing.gif" is available but all other 
combinations are not.


Disabling such images would be very easy when using the "opacity" property:

<img style="opacity: 0.5; src="i/pages.gif" />

There is just a small problem that "opacity" is not officially available 
before CSS v3. But you can simply work around that by defining all 
browser-specific solutions in your CSS:

img.disabled {
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  opacity: 0.5;
}

For more information, have a look at these pages:
http://www.mandarindesign.com/opacity.html#opacityexample2
http://www.lisardo.biz/News/comments/transparenzeffekte-mit-css/ (German only)

- michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060224/0ae94d33/attachment.html 
-------------- 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/0ae94d33/attachment.pgp 


More information about the TYPO3-team-core mailing list