Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 438485 - CDT Outline text is difficult to read with dark theme
Summary: CDT Outline text is difficult to read with dark theme
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-source-nav (show other bugs)
Version: 8.4.0   Edit
Hardware: PC Linux
: P3 normal with 8 votes (vote)
Target Milestone: 9.0.0   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-29 07:41 EDT by Petr Aleksandrov CLA
Modified: 2017-01-10 00:00 EST (History)
8 users (show)

See Also:


Attachments
Screenshot (32.80 KB, image/png)
2014-06-29 07:42 EDT, Petr Aleksandrov CLA
no flags Details
With SWT_GTK3=1 (249.65 KB, image/png)
2014-06-29 11:17 EDT, Petr Aleksandrov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Aleksandrov CLA 2014-06-29 07:41:56 EDT
CDT Outline items are shown in black while dark theme is used. So these items are difficult to read.

OS: Ubuntu Linux x86-64. Eclipse is used with GTK.
Version: Luna Release (4.4.0)
Build id: 20140612-0600

Steps to Reproduce:
1. Set the dark theme in Eclipse.
2. Open any C++ file in Eclipse with CDT installed and open Outline view.
Expected Results: Text in Outline view is written in light color (may be white).
Comment 1 Petr Aleksandrov CLA 2014-06-29 07:42:45 EDT
Created attachment 244650 [details]
Screenshot
Comment 2 Marc-André Laperle CLA 2014-06-29 09:47:53 EDT
Hi Petr. Which version of Ubuntu are you using? I'm asking because it will determine which version of GTK Eclipse is using (GTK2 or GTK3) which often affects the appearance.
Comment 3 Petr Aleksandrov CLA 2014-06-29 11:15:18 EDT
Ubuntu 14.04. GTK oxygen theme.
Now I tried to pass SWT_GTK3=1. The result is shown in the second screenshot.
Comment 4 Petr Aleksandrov CLA 2014-06-29 11:16:40 EDT
LXQt from PPA lubuntu-dev.
Comment 5 Petr Aleksandrov CLA 2014-06-29 11:17:06 EDT
Created attachment 244651 [details]
With SWT_GTK3=1
Comment 6 Kaveh Vaghefi CLA 2014-07-15 18:46:12 EDT
Same issue in Windows and Mac versions.
Comment 7 Csaba Ráduly CLA 2014-11-17 06:14:21 EST
Same problem with Eclipse Luna Service Release 1 (4.4.1) and CDT 8.5.0.201409172108 on Ubuntu 14.04 and the "MoonRise (Standalone)" Eclipse theme. It is virtually identical to the first screenshot (black on black)
Comment 8 Stephen Wood CLA 2015-01-16 13:41:28 EST
Also having this issue. Verified that it is caused by inactive code highlighting. It seems the color becomes hard coded when you have inactive code in the editor. The active members are colored in black. Steps to reproduce:
1. Create/open a C file with no inactive code
2. Outline uses all white text for member titles
3. Create a snippet of code in the editor that will be inactive (i.e. wrap one of your members in #if(FALSE)
4. Outline will change all active member title text to black and all inactive members to grey.
Comment 9 Alessandro Fardin CLA 2017-01-09 07:36:51 EST
This bugs is fixed on eclipse neon 4.6 CDT 9.0
At least with ubuntu 14.04 and 16.04
Comment 10 Nathan Ridge CLA 2017-01-10 00:00:29 EST
I suspect this was fixed in Neon along with bug 442869. Marking as fixed.