Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339747 - Remove border around the DateTime DropDown calendar
Summary: Remove border around the DateTime DropDown calendar
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.1   Edit
Hardware: All Linux-GTK
: P3 normal (vote)
Target Milestone: 4.7 M5   Edit
Assignee: Alexander Kurtakov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-11 13:40 EST by Arun Thondapu CLA
Modified: 2017-01-05 17:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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