Bug 531820 - [Dark Theme] Breakpoints View has white part if it has no focus
Summary: [Dark Theme] Breakpoints View has white part if it has no focus
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 4.23 RC1   Edit
Assignee: Sarika Sinha CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 576103 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-28 15:54 EST by Lars Vogel CLA
Modified: 2022-02-22 02:49 EST (History)
6 users (show)

See Also:
Lars.Vogel: pmc_approved+
lshanmug: review+


Attachments
Screenshot (250.60 KB, image/png)
2018-02-28 15:54 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2018-02-28 15:54:58 EST
Created attachment 272944 [details]
Screenshot

See screenshot, in the Breakpoints view I frequently see a white stripe. If I select this view, this part of the view gets re-styled.

I suspect a hard-coded color or an error in SWT.
Comment 1 Lars Vogel CLA 2018-02-28 15:55:19 EST
Till, do you also see this on Mac?
Comment 2 Till Brychcy CLA 2018-03-01 07:05:38 EST
(In reply to Lars Vogel from comment #1)
> Till, do you also see this on Mac?

I've never previously noticed, but yes I have something similar.

There are some breakpoints which keep the current (styled or unstyled) state from the previous breakpoint and some that make it switch to white or styled.

I think it is not a matter of focus, but whether the condition checkbox is enabled or something like that.
Comment 3 Lakshmi P Shanmugam CLA 2022-02-15 07:08:23 EST
*** Bug 576103 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2022-02-19 05:06:45 EST
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/190973
Comment 5 Sarika Sinha CLA 2022-02-19 05:08:34 EST
(In reply to Eclipse Genie from comment #4)
> New Gerrit change created:
> https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/190973

JDT debug was using SWT.COLOR_WIDGET_BACKGROUND to get the colour to set, but this constant gives white instead of grey for dark theme.

Using AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND looks ok on light and sark themes.
Comment 6 Lars Vogel CLA 2022-02-21 09:07:44 EST
Sarika, something for RC1 or do you want to wait until 4.24 opens?
Comment 7 Sarika Sinha CLA 2022-02-21 10:18:11 EST
(In reply to Lars Vogel from comment #6)
> Sarika, something for RC1 or do you want to wait until 4.24 opens?

Ideally SWT.COLOR_WIDGET_BACKGROUND should have given the correct colour.
So if SWT has plans to correct that we don't need to release Debug workaround patch but if SWT is not fixing in near time I am ok to release this fix for RC1.

@Lakshmi,
WDYT?
Comment 8 Lars Vogel CLA 2022-02-21 10:45:50 EST
(In reply to Lars Vogel from comment #6)

> Ideally SWT.COLOR_WIDGET_BACKGROUND should have given the correct colour.
> So if SWT has plans to correct that we don't need to release Debug
> workaround patch but if SWT is not fixing in near time I am ok to release
> this fix for RC1.
> 
> @Lakshmi,
> WDYT?

I think the colors issue with SWT late / wrong initialization is Bug 577912, which is IMHO too complex to include it into 4.23.
Comment 9 Lakshmi P Shanmugam CLA 2022-02-21 11:01:29 EST
(In reply to Lars Vogel from comment #8)
> (In reply to Lars Vogel from comment #6)
> 
> > Ideally SWT.COLOR_WIDGET_BACKGROUND should have given the correct colour.
> > So if SWT has plans to correct that we don't need to release Debug
> > workaround patch but if SWT is not fixing in near time I am ok to release
> > this fix for RC1.
> > 
> > @Lakshmi,
> > WDYT?
> 
> I think the colors issue with SWT late / wrong initialization is Bug 577912,
> which is IMHO too complex to include it into 4.23.

@Lars, thanks for pointing to the bug. I was seeing another problem with selection colors and could be same root cause.

@Sarika, I checked with ControlExample and SWT.COLOR_WIDGET_BACKGROUND is having the correct value for dark theme. So, it seems like the initialization problem as Lars pointed out. If possible, please release this for RC1.
Comment 11 Sarika Sinha CLA 2022-02-21 14:05:42 EST
(In reply to Eclipse Genie from comment #10)
> Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/190973 was
> merged to [master].
> Commit:
> http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/
> ?id=32039d271ae35c499864a36d83f38d0f0f5b2705

This patch removes the setting of background colour as currently SWT constant returns white instead of grey for background colour in dark theme.
Comment 12 Niraj Modi CLA 2022-02-22 02:49:50 EST
Verified on Win10 using Build id: I20220221-1800