Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339747

Summary: Remove border around the DateTime DropDown calendar
Product: [Eclipse Project] Platform Reporter: Arun Thondapu <arunkumar.thondapu>
Component: SWTAssignee: Alexander Kurtakov <akurtakov>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov
Version: 4.1   
Target Milestone: 4.7 M5   
Hardware: All   
OS: Linux-GTK   
See Also: https://git.eclipse.org/r/88126
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=a4b954350b6ddc86e80d6e59e0274c8421fb7f49
Whiteboard:

Description Arun Thondapu CLA 2011-03-11 13:40:35 EST
Build Identifier: I20110308-2000

The Paint code in popupShellEvent(Event event) that draws a black border around the popup calendar shell should be deleted AFTER verifying that removing the border looks better in all themes.

Here is the code that should probably be deleted, plus where the Paint listener
is added:
    case SWT.Paint:
        /* Draw black rectangle around popupCalendar */
        Rectangle bounds = popupCalendar.getBounds();
        Color black = getDisplay().getSystemColor(SWT.COLOR_BLACK);
        event.gc.setForeground(black);
        event.gc.drawRectangle(0, 0, bounds.width + 1, bounds.height + 1);
        break;

Reproducible: Always
Comment 1 Eclipse Genie CLA 2017-01-05 17:11:23 EST
New Gerrit change created: https://git.eclipse.org/r/88126