Bug 199908 - [Presentations] render last character of cut view tab titles with gray gradient
Summary: [Presentations] render last character of cut view tab titles with gray gradient
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-14 12:43 EDT by Markus Keller CLA
Modified: 2019-09-06 16:18 EDT (History)
4 users (show)

See Also:


Attachments
A quick hack (2.65 KB, patch)
2007-08-20 05:52 EDT, Markus Keller CLA
no flags Details | Diff
Screenshots (mockup) (5.70 KB, image/png)
2007-08-20 05:53 EDT, Markus Keller CLA
no flags Details
Mockup 2 (10.89 KB, image/png)
2007-08-21 12:02 EDT, Markus Keller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-08-14 12:43:11 EDT
In 3.3, view tab titles that are too wide get just cut, so that the user does not see that a view is e.g. not really called "Project" but "Project Explorer". I agree that the ellipsis was using up too much real estate.

A solution that keeps using the full width but still makes it clear that a tab is cut would be to render the last character(s) with a gradient going from left to right from the original title text color towards the background color.
Comment 1 Kevin McGuire CLA 2007-08-16 14:43:33 EDT
We played around with treatments like this but never hit on anything that looked particularly good.  They all looked like a graphic bug.  A solution may still exist but it'll require a convincing mockup from someone.

Agree that some rendering/indication would still be valuable.
Comment 2 Markus Keller CLA 2007-08-20 05:52:50 EDT
Created attachment 76437 [details]
A quick hack

Just made for creating screenshots. Not optimized in any way. Only works for selected tab.
Comment 3 Markus Keller CLA 2007-08-20 05:53:34 EDT
Created attachment 76438 [details]
Screenshots (mockup)
Comment 4 Kevin McGuire CLA 2007-08-20 14:12:06 EDT
Thanks for the prototype code and screen cap Markus.

It somewhat matches what we did before, although I think you did a slightly nicer rendering.  But still I wonder if people will interpret it correctly or just think its a smugde/graphics error?
Comment 5 Kelvin Chan CLA 2007-08-21 10:05:18 EDT
This looks really nice!
I'm not too concerned about it looking like a graphics error because the width of the tab shows that it has to truncate the text in some way.  And it is much smoother than clipping it.
Comment 6 Markus Keller CLA 2007-08-21 12:02:18 EDT
Created attachment 76549 [details]
Mockup 2

Here's how it could look like with stacked views (upper part) an how it looks today (lower part).

I quite like it, and I think you wouldn't notice the fading without looking specially at a single tab. But when you look at a tab closely, then you see that there's something special about the last characters -- and the IMHO obvious interpretation is that there's something missing and that the tooltip will tell the whole thruth.

Implementation note: performance offenses aside, there's also a layouting problem at the spot where the black text ends and the fading starts. In Mockup 2, you can   e.g. see, that a pixel is missing between "Ja" and "vado". I guess some string width measurements are not 100% reliable here (could even be a kerning issue).
Furthermore, the final solution would need to make sure that the first character is always black.
Comment 7 Boris Bokowski CLA 2009-05-06 16:50:28 EDT
Removing 3.5 target milestone. We are in the end-game now. Please have a look and decide if this should be targeted at 3.6.
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:18:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.