AObuchow / Eclipse-Spectrum-Theme

Eclipse plugin which adds the Spectrum theme.
https://marketplace.eclipse.org/content/spectrum-dark-theme
Eclipse Public License 2.0
23 stars 5 forks source link

Variables view is hard to use #63

Closed PyvesB closed 4 years ago

PyvesB commented 4 years ago

Hello!

Today was a debugging session with a colleague! We noticed that the Variables view suffers from a few problems:

Screenshot 2020-06-18 at 15 52 44

Apart from that, the rest of the debugging session went fine, though I don't think I'll convince my colleague to move away from NetBeans today. 😄

AObuchow commented 4 years ago

Thanks for reporting this @PyvesB ! This is a bug usability issue and needs to be fixed before the marketplace release.

The yellow must have been left in from months ago when I first started making this theme and was doing a lot of testing, as this existed in the first version of the theme.

Will get this fixed soon.

AObuchow commented 4 years ago

@PyvesB I quickly tried to reproduced and was unable. Are you using the latest build of Modern Dark?

The new update site (in the README) is: https://raw.githubusercontent.com/AObuchow/Eclipse-Modern-Dark-Theme/updatesite/updatesite/

ingomohr commented 4 years ago
Screenshot 2020-06-18 at 22 53 55

This is what the Variables view looks on MacOS (Catalina, Eclipse 2020-06)

Modern Dark Theme: 1.0.7.202006181921

AObuchow commented 4 years ago

The fix I submitted might be invalid. @PyvesB & @ingomohr please update to the latest build and validate the fix.

PyvesB commented 4 years ago

Problem number 2 is fixed, i.e. the white area.

However, the yellow problem is still present on my machine with the latest version. Are you sure you've triggered the debug value changed functionality? Try with the following snippet:

import java.util.Random;

public class Main {

    public static void main(String[] args) {
        printHello();
        printHello();
    }

    private static void printHello() {
        int j = new Random().nextInt();
        System.out.println("hello");
    }
}

You must put the breakpoint on line System.out.println("hello");, no other line would reproduce the behaviour.

AObuchow commented 4 years ago

Thanks for the detailed report on reproducing @PyvesB, that helps a lot. Will look into it.

@ingomohr or @PyvesB, would either of you mind posting a screenshot of the variable view (when you have a moment)? It seemed less affected by my last change on GTK than both your systems. I want to verify the colour is correct/exact :)

PyvesB commented 4 years ago
Screenshot 2020-06-19 at 12 32 09
ingomohr commented 4 years ago
Screenshot 2020-06-19 at 12 37 21

... with the code provided by @PyvesB and the breakpoint on the System.out.println("hello");line.

Build. 1.0.7.202006190441

AObuchow commented 4 years ago

@PyvesB & @ingomohr thank you both that really helps. It's interesting to see the differences between both your screenshots too :P

AObuchow commented 4 years ago

Some observations:

PyvesB commented 4 years ago

@ingomohr did you try pressing "Continue"? It's only when the breakpoint is hit for a second time that the "Changed value background color" is set.

AObuchow commented 4 years ago

How it looks on Linux using a light GTK theme. image

Instead of yellow, it's #914d6f or rgb(145, 77, 111)

This is in accordance with the preference I set here: 'org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND=145,77,111'

ingomohr commented 4 years ago

@ingomohr did you try pressing "Continue"? It's only when the breakpoint is hit for a second time that the "Changed value background color" is set.

variable-view-debug

@PyvesB No - but now I did. ;) - (see gif)

AObuchow commented 4 years ago

@ingomohr's changed color seems to be correct (although I'm going to change the color to something else...)

@PyvesB maybe it's a workspace preference that's overriding the CSS preference? Might be worth trying to make a new test-workspace, enable Modern Dark theme and try reproducing.

AObuchow commented 4 years ago

Run/Debug seems to be the associated preference page: image

ingomohr commented 4 years ago

Run/Debug seems to be the associated preference page: image

The colors look the same on my machine.

PyvesB commented 4 years ago

Hmmm... Something is definitely not lining up for me. Here's what my preferences page looks like for debug options:

Screenshot 2020-06-19 at 13 02 24

I did try with a new workspace and Oomph disabled, to no avail. "Restore Defaults" does nothing either.

PyvesB commented 4 years ago

After some further analysis, there is some sort of startup task that puts the following entry in newly created workspaces: ./.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs:8:org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND=255,255,0

Not sure where that comes from yet.

AObuchow commented 4 years ago

@PyvesB if you're comfortable with it & allowed, feel free to show a screenshot of your installed plugins list (Help > About Eclipse SDK... > Installation details). I'll try to help find the cause.

PyvesB commented 4 years ago

It does seem that Oomph is doing stuff at startup even though the preference recorder is disabled. I saw this in the startup logs:

Scope Type | User
-- | --
Disabled | false
Predecessors | /instance/org.eclipse.debug.ui/org.eclipse.debug.ui.outColor = 0,0,0 (User - User Preferences - org.eclipse.debug.ui)
Key | /instance/org.eclipse.debug.ui/org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND
Value | 255,255,0
Model Class | org.eclipse.oomph.setup.PreferenceTask
PyvesB commented 4 years ago

I've disabled this specific entry in Oomph, it now gives me the correct colours on new workspaces. 👍

I'm still confused as to why I was not able to easily switch to the value provided by Modern Dark Theme. If I'm not mistaken, resetting default entries in "Colors and Fonts" switches to the values provided by CSS, but this is not the case for the Run/Debug preference window.

AObuchow commented 4 years ago

I've disabled this specific entry in Oomph, it now gives me the correct colours on new workspaces. +1

Glad to hear you fixed it :)

I'm still confused as to why I was not able to easily switch to the value provided by Modern Dark Theme. If I'm not mistaken, resetting default entries in "Colors and Fonts" switches to the values provided by CSS, but this is not the case for the Run/Debug preference window.

Might be worth making an upstream bug in platform.debug.ui? If you do so, CC me in it :)

I'm going to close this for now as I'm undecided about what the new debug colors should be right now.

If anyone finds the debug variable view colors still unpleasant to use, please reopen the bug and let me know :)