Bug 449475 - [api] Add methods to define the table header background/foreground
Summary: [api] Add methods to define the table header background/foreground
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5   Edit
Hardware: PC All
: P3 enhancement with 1 vote (vote)
Target Milestone: 4.7 M6   Edit
Assignee: Conrad Groth CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
: 488709 508041 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-31 09:52 EDT by Lars Vogel CLA
Modified: 2017-03-29 05:15 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2014-10-31 09:52:49 EDT
Lots of people complain that the dark theme provided by platform.ui does not allow to style the table header. 

Fabio Zadrozny from Liclipse was so kind to contribute a solution with us which allows to style them via a custom CSS handler, similar to the following lines:

----------
With the code I passed you previously (https://gist.github.com/fabioz/59b06c519f505d37fcfb), what needs to be done is adding to plugin.xml:

   <extension
         point="org.eclipse.e4.ui.css.core.propertyHandler">
      <handler
            adapter="org.eclipse.e4.ui.css.swt.dom.WidgetElement"
            composite="false"
            handler="com.brainwy.liclipse.theme.e4.WidgetProperlyHandler">
         <property-name name="liclipse-tree-fix">
         </property-name>
      </handler>
   </extension>


setting the 'liclipse-tree-fix' property for the trees/tables and probably creating new properties for those colors (for me I get them from the color theme plugin, but given that it's not available in bare Eclipse you may need to create new colors for that -- i.e.: not all users want the color in the tree selection the same as in the editor selection).

---------------

To have a standard property to define the background color I suggest that SWT adds this API. This way, we in platform can implement a workaround until Bug 384906 is completely solved. For Bug 384906, this API is also required.
Comment 1 Lars Vogel CLA 2016-03-01 12:05:11 EST
*** Bug 488709 has been marked as a duplicate of this bug. ***
Comment 2 Eric Williams CLA 2016-03-01 13:29:20 EST
This is definitely possible on GTK, I can't speak for Win32/Cocoa.
Comment 3 Lars Vogel CLA 2016-03-01 14:40:33 EST
(In reply to Eric Williams from comment #2)
> This is definitely possible on GTK, I can't speak for Win32/Cocoa.

Arun, can you comment if that is possible on Win32/Cocoa?
Comment 4 Niraj Modi CLA 2016-11-24 04:01:07 EST
*** Bug 508041 has been marked as a duplicate of this bug. ***
Comment 5 Lars Vogel CLA 2017-03-29 05:15:57 EDT
Fixed with 4.7 M6.