Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Tickets

[The Trac Project] #939: New timeline icons are not transparent

 

 

Trac tickets RSS feed   Index | Next | Previous | View Threaded


noreply at edgewall

Nov 16, 2004, 3:29 PM

Post #1 of 5 (197 views)
Permalink
[The Trac Project] #939: New timeline icons are not transparent

#939: New timeline icons are not transparent
----------------------+-----------------------------------------------------
Id: 939 | Status: new
Component: timeline | Modified: Tue Nov 16 15:29:23 2004
Severity: trivial | Milestone: 0.8
Priority: low | Version: devel
Owner: jonas | Reporter: cmlenz
----------------------+-----------------------------------------------------
The new timeline icons introduced in [1070]?have a white instead of
transparent background. The "closed ticket" icon seems to use PNG alpha
transparency, which is not supported (out-of-the-box) by IE/Win.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/939>
The Trac Project <>


noreply at edgewall

Nov 16, 2004, 4:26 PM

Post #2 of 5 (195 views)
Permalink
Re: [The Trac Project] #939: New timeline icons are not transparent [In reply to]

#939: New timeline icons are not transparent
----------------------+-----------------------------------------------------
Id: 939 | Status: new
Component: timeline | Modified: Tue Nov 16 16:26:46 2004
Severity: trivial | Milestone: 0.8
Priority: low | Version: devel
Owner: jonas | Reporter: cmlenz
----------------------+-----------------------------------------------------
Comment (by anonymous):

Aside, how about making the changeset icon blue or something, so you have
grey = wiki, yellow/green = ticket, blue = changeset

A bit of color coding, makes it more convenient.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/939>
The Trac Project <>


noreply at edgewall

Nov 16, 2004, 4:47 PM

Post #3 of 5 (191 views)
Permalink
Re: [The Trac Project] #939: New timeline icons are not transparent [In reply to]

#939: New timeline icons are not transparent
----------------------+-----------------------------------------------------
Id: 939 | Status: new
Component: timeline | Modified: Tue Nov 16 16:47:42 2004
Severity: trivial | Milestone: 0.8
Priority: low | Version: devel
Owner: jonas | Reporter: cmlenz
----------------------+-----------------------------------------------------
Comment (by anonymous):

Hi,

I use this one on all my sites and has worked very well for me (dunno how
good the paste will be)

{{{
// (c) dynarch.com 2003
// Author: Mihai Bazon, http://dynarch.com/mishoo/

if (/MSIE (5\.5|6).*Windows/.test(navigator.userAgent)) (function() {
// fucked-up browser (Internet Explorer for Windows)
var blank = new Image;
blank.src = 'img/blank.gif';
var imgs = document.getElementsByTagName("img");
for (var i = imgs.length; --i >= 0;) {
var img = imgs[i];
var src = img.src;
if (!/\.png$/.test(src))
continue;
var s = img.runtimeStyle;
s.width = img.offsetWidth + "px";
s.height = img.offsetHeight + "px";
s.filter =
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src +
"',sizingMethod='scale')";
img.src = blank.src;
}
})();
}}}

and place it for example in png.js and place this just before </body>
<script type="text/javascript" src="png.js"></script>

Original code gotten from here
http://www.bazon.net/mishoo/articles.epl?art_id=430 and little
modification done to it, to support IE 5.0, and that change was taken from
the user comment on the same page.

Ohh yeah, this doesn't work with 8bit PNGs, so be sure to have something
higher then that (proven to work with 24bit PNGs for me) and you also need
blank.gif (in the example I gave, it's placed in the img folder) and it's
enough to make it 1x1 transparent gif, not a perfect solution but it works
very well :)

Look at the article at bazon.net to get better explination of all this!

Enjoy! :)

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/939>
The Trac Project <>


noreply at edgewall

Nov 16, 2004, 5:25 PM

Post #4 of 5 (193 views)
Permalink
Re: [The Trac Project] #939: New timeline icons are not transparent [In reply to]

#939: New timeline icons are not transparent
----------------------+-----------------------------------------------------
Id: 939 | Status: new
Component: timeline | Modified: Tue Nov 16 17:25:18 2004
Severity: trivial | Milestone: 0.8
Priority: low | Version: devel
Owner: jonas | Reporter: cmlenz
----------------------+-----------------------------------------------------
Comment (by agr30 [at] uni-koeln):

Why not just use a GIF image with transparency?

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/939>
The Trac Project <>


noreply at edgewall

Nov 17, 2004, 6:08 AM

Post #5 of 5 (193 views)
Permalink
Re: [The Trac Project] #939: New timeline icons are not transparent [In reply to]

#939: New timeline icons are not transparent
----------------------+-----------------------------------------------------
Id: 939 | Status: closed
Component: timeline | Modified: Wed Nov 17 06:08:24 2004
Severity: trivial | Milestone: 0.8
Priority: low | Version: devel
Owner: jonas | Reporter: cmlenz
----------------------+-----------------------------------------------------
Changes (by cmlenz):

* resolution: => fixed
* status: new => closed

Comment:

Fixed in [1075].

Re: IE alpha transparency hack:
The images in this case are CSS background images, so this trick won't
work here. Besides, in this case index transparency is enough, so there's
really no need to resort to this sort of hack.

Re: Why not GIF
''Why''? PNG8 with index transparency is well supported by IE and every
other browser out there that I know of.

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/939>
The Trac Project <>

Trac tickets RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.