Bug 533264 - Adjust default colors in Dark theme
Summary: Adjust default colors in Dark theme
Status: RESOLVED FIXED
Alias: None
Product: Eclemma
Classification: Technology
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 enhancement
Target Milestone: 3.1.1   Edit
Assignee: Evgeny Mandrikov CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2018-04-05 11:01 EDT by chidveer chinthakuntla CLA
Modified: 2018-10-29 07:14 EDT (History)
2 users (show)

See Also:


Attachments
screenshot for scala code with intellij-style theme (3.48 KB, image/png)
2018-04-05 11:06 EDT, chidveer chinthakuntla CLA
no flags Details
CoverageTest video (2.66 MB, video/mp4)
2018-06-28 19:09 EDT, chidveer chinthakuntla CLA
no flags Details
SourceCode (10.00 KB, application/x-zip-compressed)
2018-06-28 22:02 EDT, chidveer chinthakuntla CLA
no flags Details
Screenshot for coverage on the scala code (25.89 KB, image/png)
2018-06-29 09:02 EDT, chidveer chinthakuntla CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description chidveer chinthakuntla CLA 2018-04-05 11:01:59 EDT
Text is bit hard to read in dark theme if the code is not covered by the Eclemma.
Plz make the red a bit more lighter, when Eclipse is in Dark theme.
I Pretty much can't see anything if it is a Scala code.
Comment 1 chidveer chinthakuntla CLA 2018-04-05 11:06:30 EDT
Created attachment 273452 [details]
screenshot for scala code with intellij-style theme
Comment 2 Evgeny Mandrikov CLA 2018-04-05 12:25:51 EDT
(In reply to chidveer chinthakuntla from comment #0)
> Text is bit hard to read in dark theme if the code is not covered by the
> Eclemma.
> Plz make the red a bit more lighter, when Eclipse is in Dark theme.
> I Pretty much can't see anything if it is a Scala code.

Do you know that this is configurable - see "Highlighting Preferences" at https://help.eclipse.org/oxygen/topic/org.eclipse.eclemma.doc/pages/annotations.html?cp=24_0_2 ?
Comment 3 chidveer chinthakuntla CLA 2018-04-09 15:22:57 EDT
Yes,
If you can auto-configure it for "Dark Theme", will help user-experience.
Comment 4 Evgeny Mandrikov CLA 2018-06-28 14:30:09 EDT
(In reply to chidveer chinthakuntla from comment #3)
> If you can auto-configure it for "Dark Theme", will help user-experience.

Here is PR that adjusts default colors in Dark theme with id "org.eclipse.e4.ui.css.theme.e4_dark":

https://github.com/eclipse/eclemma/pull/24

However

(In reply to chidveer chinthakuntla from comment #1)
> screenshot for scala code with intellij-style theme

I don't know what do you mean by "intellij-style theme" and I don't use Scala.

Thus will be really helpful and appreciated if you can test this PR and provide us feedback or at least describe more precisely how we can test your scenario.
Comment 5 chidveer chinthakuntla CLA 2018-06-28 15:01:10 EDT
You can ignore that comment. 
I was trying to say that...
The Scala Code in Eclipse-Dark theme will be pretty much unreadable. In My screenshot it look good so, i said that, i used EclipseColorTheme plugin and changed the fonts colors.

I should have attached the java code screenshot.
Comment 6 Evgeny Mandrikov CLA 2018-06-28 15:18:07 EDT
(In reply to chidveer chinthakuntla from comment #5)
> You can ignore that comment. 

Ok, I ignore previous comment, but unfortunately the last one also doesn't look clear to me:

> I was trying to say that...
> The Scala Code in Eclipse-Dark theme will be pretty much unreadable. In My
> screenshot it look good so, i said that, i used EclipseColorTheme plugin and
> changed the fonts colors.

will the above PR work for you? for Scala? for Java? or it will not because PR is about "org.eclipse.e4.ui.css.theme.e4_dark" while you use "EclipseColorTheme plugin"?

> I should have attached the java code screenshot.

PR includes screenshots before and after for the case of Java.
Comment 7 chidveer chinthakuntla CLA 2018-06-28 15:23:39 EDT
I didn't play around with building and running eclipse/modules.
(In reply to Evgeny Mandrikov from comment #6)
> (In reply to chidveer chinthakuntla from comment #5)
> > You can ignore that comment. 
> 
> Ok, I ignore previous comment, but unfortunately the last one also doesn't
> look clear to me:
> 
> > I was trying to say that...
> > The Scala Code in Eclipse-Dark theme will be pretty much unreadable. In My
> > screenshot it look good so, i said that, i used EclipseColorTheme plugin and
> > changed the fonts colors.
> 
> will the above PR work for you? for Scala? for Java? or it will not because
> PR is about "org.eclipse.e4.ui.css.theme.e4_dark" while you use
> "EclipseColorTheme plugin"?
> 
> > I should have attached the java code screenshot.
> 
> PR includes screenshots before and after for the case of Java.

I didn't play around with this plugin build/run. 
I think you can go-ahead with the PR, if i see any issue in future i'll create an other ticket.
Comment 8 Evgeny Mandrikov CLA 2018-06-28 16:50:49 EDT
(In reply to chidveer chinthakuntla from comment #7)
> I didn't play around with this plugin build/run. 

You can install pre-built from this temporary location:

http://download.eclipse.org/eclemma/bugzilla-533264/
Comment 9 chidveer chinthakuntla CLA 2018-06-28 19:09:18 EDT
Created attachment 274679 [details]
CoverageTest video

The uncovered lines are not highlighted, is it intended ?.
Also, the SomeSillyClass in the video is red; isn't supposed to be yellow ?
Comment 10 chidveer chinthakuntla CLA 2018-06-28 22:02:31 EDT
Created attachment 274682 [details]
SourceCode
Comment 11 Evgeny Mandrikov CLA 2018-06-29 06:18:36 EDT
(In reply to chidveer chinthakuntla from comment #9)
> Created attachment 274679 [details]
> CoverageTest video
> 
> The uncovered lines are not highlighted, is it intended ?.
> Also, the SomeSillyClass in the video is red; isn't supposed to be yellow ?

Excuse me, but how this relates to the topic? You see exactly the same result as before, for latest released EclEmma version 3.1.0:

Eclipse Java Compiler does not produce bytecode for dead code constructions such as "if (false) ...", so in this case there is no "uncovered lines" since there is no lines at all, hence correctly no highlighting at all.

Line "public class SomeSillyClass" is not about content of class as a whole - it is line of implicit public constructor without arguments, which is never invoked, hence correctly marked as uncovered. Either invoke it, or add explicit private constructor without arguments indicating that it is not intended to be invoked and hence won't be part of coverage analysis.

---

Topic started from your screenshot with Scala (comment #1) and was continued about Scala (comment #4), being the main question and my concern here - no concerns about Java since I use it, while don't use Scala (comment #4).
Comment 12 chidveer chinthakuntla CLA 2018-06-29 09:02:05 EDT
Created attachment 274699 [details]
Screenshot for coverage on the scala code

> Eclipse Java Compiler does not produce bytecode for dead code constructions
> such as "if (false) ...", so in this case there is no "uncovered lines"
> since there is no lines at all, hence correctly no highlighting at all.
 I didn't know that.

Now its much better.
Comment 13 Evgeny Mandrikov CLA 2018-07-02 15:40:44 EDT
Thank you for testing.

Change was merged into master and will be part of our next release.