Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Editor goes dark when non eclipse window has focus.
Editor goes dark when non eclipse window has focus. [message #1810579] Tue, 13 August 2019 16:05 Go to next message
Jason Roderick is currently offline Jason RoderickFriend
Messages: 12
Registered: August 2019
Junior Member
I recently upgraded Ubuntu 18.04 to 19.04. After the upgrade , the behavior of the editor changed.

Before Case:
Selection of window other than eclipse ( example : firefox ) caused no changes to the panels
in eclipse.

After Case:
Selection of any other window than eclipse causes all the panes in eclipse to darken ( which
means it loses highlight because another window has focus )

This causes the text to be hard to read. I constantly use my web browser to acquire information
needed to code. Therefore , I would like to see the previous behaviour restored. I have looked
through the preferences , but could not locate anything related to this.

Hopefully I have just overlooked something and it is just a switch somewhere. If anyone could
help me out It would be much appreciated.


Thanks.

index.php/fa/36092/0/

index.php/fa/36093/0/
  • Attachment: Before.png
    (Size: 38.09KB, Downloaded 525 times)
  • Attachment: After.png
    (Size: 20.18KB, Downloaded 488 times)
Re: Editor goes dark when non eclipse window has focus. [message #1810644 is a reply to message #1810579] Thu, 15 August 2019 05:48 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You can change the editor colors BUT
Some of the colors are determined by the system colors.
Same with some fonts.
These mostly apply to dialog windows.

Many of the others can be changed:

Console widow colors can be set at Window --> Preferences --> C/C++ --> Build --> Console
Edit windows colors at: Window --> Preferences --> C/C++ --> Editor
Syntax coloring: Window --> Preferences --> C/C++ --> Editor --> Syntax Coloring
The editor colors can also be reached by right clicking in the window and selecting "Preferences..."
The editor here is the C/C++ editor. Make and Automake editors are different.
Window --> Preferences --> C/C++ --> Autotools
Window --> Preferences --> C/C++ --> Build --> Makefile Editor

There are also a number of colors that can be set under
Window --> Preferences --> General --> Appearance
Window --> Preferences --> General --> Editors --> Text Editors

There are a lot more. You'll have to track down the rest yourself.
Re: Editor goes dark when non eclipse window has focus. [message #1810680 is a reply to message #1810644] Thu, 15 August 2019 21:37 Go to previous messageGo to next message
Jason Roderick is currently offline Jason RoderickFriend
Messages: 12
Registered: August 2019
Junior Member
This problem in not with colors.
This problem is with the panels losing the focus highlight , they become inactive.
Even using CTRL-F to search in your editor, darkens the editor window , which is the panel your searching in!
The only active panel is the Find/Replace dialog. everything else goes inactive( dark ).
Re: Editor goes dark when non eclipse window has focus. [message #1810694 is a reply to message #1810680] Fri, 16 August 2019 11:10 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Looks like a color change to me.

Start with:
Window --> Preferences --> General --> Appearance --> Colors and Fonts --> View and Editor Folders
But you may still need to try other color settings.
Some Eclipse themes alter these and/or use other settings.

Some system themes affect the colors as well.
For instance, I've found only one theme that works well with Eclipse and xfce4.
You may need to experiment.
It's tedious.
Re: Editor goes dark when non eclipse window has focus. [message #1810719 is a reply to message #1810694] Sat, 17 August 2019 15:20 Go to previous messageGo to next message
Jason Roderick is currently offline Jason RoderickFriend
Messages: 12
Registered: August 2019
Junior Member
It is a:
active window / inactive window
issue.

Ex:
Imagine you have two windows open on your desktop.
One is active and the other is inactive. The active window's top bar is brightened to
show that it is active , and the inactive winodw's top bar is darkened to show that it is inactive.

This is what is happening to the panels in eclipse. When any other window is selected ,
whether in eclipse , or from another application , all the panels ( ex. the editor , the console etc..)
darken.

It looks like the inactive state is being propagated to all the panels in eclipse when it should
not be , this behaviour in new .
Re: Editor goes dark when non eclipse window has focus. [message #1810726 is a reply to message #1810719] Sun, 18 August 2019 01:27 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
I'm not interested in going round and round with you but do consider the following:


    o) The problem appeared when you upgraded the environment underlying Eclipse.
    It would seem that investigating what changed should be in order.

    o) For reasons not made clear, you seem to think the problem lies
    within not just the Eclipse Workbench (where things like this would be handled) or its settings
    but within CDT itself (which is an add-on to the Workbench). Why?

    o) While Active/Inactive is a binary condition,
    how it is indicated through the GUI is by changing colors.
    There is no Light/Dark switch setting

    o) The place where the Workbench handles this is parameterized in
    Window --> Preferences --> General --> Appearance --> Colors and Fonts --> View and Editor Folders
    but what you are experiencing is likely an interaction between the Eclipse and System themes.
    Try changing the Eclipse theme and see if the issue remains.
    Also try changing the system theme.


This is not the proper forum as it is for discussing CDT issues.
This doesn't appear to be a CDT issue.
You likely want Home » Eclipse Projects » Eclipse Platform
https://www.eclipse.org/forums/index.php/f/11/

If you really think you've uncovered a bug then submit a bug report.
You may get a workaround but don't expect any fixes until the next release.

[Updated on: Sun, 18 August 2019 02:17]

Report message to a moderator

Re: Editor goes dark when non eclipse window has focus. [message #1810798 is a reply to message #1810726] Mon, 19 August 2019 19:06 Go to previous message
Jason Roderick is currently offline Jason RoderickFriend
Messages: 12
Registered: August 2019
Junior Member
I do not wish to go in circles either , but I am trying my best to describe what I am seeing here.

Quote:

o) The problem appeared when you upgraded the environment underlying Eclipse.
It would seem that investigating what changed should be in order.


I am thinking with the upgrade , that new video drivers are built into the kernel.
Also, I think the window manager was updated to a newer version.

Quote:

o) For reasons not made clear, you seem to think the problem lies
within not just the Eclipse Workbench (where things like this would be handled) or its settings
but within CDT itself (which is an add-on to the Workbench). Why?


I only posted this in CDT because that it what I believe I am using. I thought that would be
appropriate. Forgive me if this is supposed to be in another place .

Quote:

o) While Active/Inactive is a binary condition ,
how it is indicated through the GUI is by changing colors.
There is no Light/Dark switch setting.


Yes , I believe this is true.

Quote:

o) The place where the Workbench handles this is parameterized in
Window --> Preferences --> General --> Appearance --> Colors and Fonts --> View and Editor Folders
but what you are experiencing is likely an interaction between the Eclipse and System themes.
Try changing the Eclipse theme and see if the issue remains.
Also try changing the system theme.


My Window --> Preferences --> General --> Appearance --> Colors and Fonts --> View and Editor Folders
only contains parameters for the text and gradients on the tabs.

Changing back to Default ( and restarting eclipse ) theme did not change anything.

Using gnome tweaks to change the system theme from "Yaru" to some other theme restored
the original behaviour.

I went thru all the system themes and it turns out some of them work , and some of them do not.

"Adwaita (default)"- works
"Adwaita dark)" - works
"Ambience" - works
"High Contrast" - works
"High Contrast Inverted" - works
"Radiance" - works
"Yaru" - fails.
"Yaru dark" - fails.

It was set to Yaru when I got to it.

I have now changed to Adwaita dark and will use it if I do not find any other issues.

Thanks for getting me there David , appreciate it.
Previous Topic:error during run in gnu mcu eclipse
Next Topic:make.exe missing
Goto Forum:
  


Current Time: Wed Apr 24 23:11:33 GMT 2024

Powered by FUDForum. Page generated in 0.03551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top