Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 260941 - Need ETabFolder that takes images for styling
Summary: Need ETabFolder that takes images for styling
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: E4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 260408
  Show dependency tree
 
Reported: 2009-01-13 18:07 EST by Kevin McGuire CLA
Modified: 2015-05-07 19:29 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin McGuire CLA 2009-01-13 18:07:03 EST
As part of e4 CSS, an obvious way that people will want to affect styling/branding is by changing the tab folder styles (the current swoop really carries a lot of branding that products might not want).  But presently we use polyline draw commands to create the tabs and this can't be modified.

Therefore, it'd be good to have a version of CTabFolder, say ETabFolder, that applies images to create the folder tab look.  This would provide full control of tab look and would be styleable from e4 CSS. 

My initial thought is that we'd need a collection of eight images, four for the corners and four for top/bottom/left/right sides that get tiled as needed given the text length and font height.

Special attention will be needed for anti aliasing and transparency. For anti aliasing, since we're not drawing a line then it must be part of the image. But since anti aliasing blends in background color, we'll need transparency.  Will png's give us what we want?

Tab edges need to antialias on both sides (inside and outside of tab), and these are almost certain to need to blend to different colors since the tab body and the area behind the tab will be different colors.  I'm not sure how we technically do this but I'm guessing that we may need the inside/body color of the tabs to be part of the tab images.  This might require then a ninth image for tiling to create the body.
Comment 1 Steve Northover CLA 2009-01-30 15:04:59 EST
Kevin, shouldn't this be in the e4 inbox?
Comment 2 Kevin McGuire CLA 2009-01-30 15:18:52 EST
I think I logged it here because there's no SWT component in e4.
Comment 3 Lars Vogel CLA 2015-05-07 19:29:35 EDT
.