Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320784 - [CSS] Classic styling issues
Summary: [CSS] Classic styling issues
Status: RESOLVED WORKSFORME
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 23:24 EDT by Bogdan Gheorghe CLA
Modified: 2019-06-05 07:25 EDT (History)
4 users (show)

See Also:
Silenio_Quarti: review+
susan: review+


Attachments
SWT toolbar height patch (2.28 KB, patch)
2010-07-26 17:24 EDT, Bogdan Gheorghe CLA
no flags Details | Diff
Handler for setting selection background color (3.69 KB, patch)
2010-07-26 18:18 EDT, Bogdan Gheorghe CLA
no flags Details | Diff
CSS changes (657 bytes, patch)
2010-07-26 18:22 EDT, Bogdan Gheorghe CLA
no flags Details | Diff
Latest CSS for Classic (2.83 KB, patch)
2010-07-26 19:01 EDT, Bogdan Gheorghe CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Gheorghe CLA 2010-07-23 23:24:19 EDT
The classic css is missing the following features:

- blue gradient for active tabs
- white gradient for inactive tabs
- ability to properly wrap the toolbar when the highlight header is present
- get rid of the dark perspective switcher line
Comment 1 Bogdan Gheorghe CLA 2010-07-23 23:33:16 EDT
Boris, I have a patch that fixes the toolbar sizing/wrapping issue (along with all of the other outstanding issues). I'd like Silenio to take a look at it on Monday just to be extra careful and we can decide then if we want it in.
Comment 2 Bogdan Gheorghe CLA 2010-07-26 17:24:18 EDT
Created attachment 175271 [details]
SWT toolbar height patch

SWT code for classic styling
Comment 3 Bogdan Gheorghe CLA 2010-07-26 18:18:01 EDT
Created attachment 175278 [details]
Handler for setting selection background color

This patch lets you set the CTabFolder selection color from CSS.
Comment 4 Bogdan Gheorghe CLA 2010-07-26 18:22:01 EDT
Created attachment 175279 [details]
CSS changes
Comment 5 Susan McCourt CLA 2010-07-26 18:51:23 EDT
the first patch (SWT toolbar height) has been committed by Bogdan.
I checked that the toolbar wrapping is working properly.

However we are still tweaking the color gradients needed so that unselected tab gradient flows properly into the view toolbar below...
Comment 6 Bogdan Gheorghe CLA 2010-07-26 19:01:42 EDT
Created attachment 175282 [details]
Latest CSS for Classic
Comment 7 Thomas Schindl CLA 2010-07-26 19:11:24 EDT
is the space in the theme intentional?
Comment 8 Susan McCourt CLA 2010-07-26 19:13:32 EDT
committed stylesheets and CSS handler (last two patches) to HEAD
Comment 9 Boris Bokowski CLA 2010-07-26 19:32:48 EDT
(In reply to comment #7)
> is the space in the theme intentional?

Which space do you mean, specifically? A space character somewhere in a file or filenam, or visual space?
Comment 10 Thomas Schindl CLA 2010-07-26 19:38:27 EDT
Take a look at:

-----8<-----
basestylesheeturi="css/ e4_classic_win7.css"
-----8<-----

which is wrong most likely
Comment 11 Susan McCourt CLA 2010-07-26 19:55:29 EDT
We are seeing an NPE on shutdown that I didn't catch before committing.
Investigating.
Comment 12 Susan McCourt CLA 2010-07-26 19:56:35 EDT
(In reply to comment #10)
> Take a look at:
> 
> -----8<-----
> basestylesheeturi="css/ e4_classic_win7.css"
> -----8<-----
> 
> which is wrong most likely

we fixed this in HEAD, thanks for spotting Tom.
Comment 13 Susan McCourt CLA 2010-07-26 20:18:09 EDT
we were seeing an NPE on shutdown because the GUI was being removed, the renderer was null, but a layout (and therefore skinning event) happened during this time.  The NPE was because the renderer was null.

Bogdan and I debated whether to:
- revert the last two patches in this bug, and go back to having the wrong selection color
- surgically fix the NPE's with null checks
- get to the bottom of the timing problem by understanding how you get in this state.

And also... why are we just seeing this, what does it have to do with this fix?

We convinced ourselves that:
- the reason the NPE was just showing up is that nowhere else in the stylesheets had we been messing with the tab selection background, therefore we had not previously called this CTabFolder API while in skinning events.  
- the proper fix is not to use a null check, but to check the CTabFolder "inDispose" flag which is used internally when an event is received between the time the dispose event is received and actual disposal happens.  This flag is used in other places (such as paint, etc.) to ensure that renderer code is not invoked
- we need to understand better why the layout/reskin occurs during the removeGUI

Based on all this, we elected to keep the styling change and add the check on the flag.  However it is still worth ensuring that getting the skinning events during a removeGUI is something we can explain to ourselves.
Comment 14 Dani Megert CLA 2013-06-05 10:57:43 EDT
Removing outdated target milestone.
Comment 15 Eclipse Genie CLA 2019-03-16 16:27:00 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.

--
The automated Eclipse Genie.
Comment 16 Lars Vogel CLA 2019-06-05 07:25:05 EDT
This is a mass change to close all e4 bugs marked with "stalebug" whiteboard.

If this bug is still valid, please reopen and remove the "stalebug" keyword.