From: seokgil.kang Date: Thu, 21 Aug 2014 02:20:52 +0000 (+0900) Subject: Summary : modify layout of the warning detail view X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56b31531017144c891d4f6c883eb9ba667cd48cc;p=sdk%2Ftools%2Fdynamic-analyzer.git Summary : modify layout of the warning detail view Change-Id: I7e16e31811619b7764c69a3a9b6278e0922eeb0f Signed-off-by: seokgil.kang --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/warning/WarningDetailView.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/warning/WarningDetailView.java index 26f56ce..f956e0e 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/warning/WarningDetailView.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/warning/WarningDetailView.java @@ -60,9 +60,12 @@ public class WarningDetailView extends DAViewComposite { public WarningDetailView(Composite parent, int style) { super(parent, style, false); this.setLayout(new FillLayout()); - canvas = new Canvas(this, SWT.NONE); + + Composite contents = getContentArea(); + contents.setBackground(ColorResources.VIEW_BG_COLOR); + contents.setLayout(new FillLayout()); + canvas = new Canvas(contents, SWT.TRANSPARENT); canvas.addPaintListener(detailPaintListener); - canvas.setBackground(ColorResources.DIALOG_BG_UPPER); selectionViewId = SummaryPage.warningListViewID; } @@ -72,8 +75,11 @@ public class WarningDetailView extends DAViewComposite { public void paintControl(PaintEvent e) { Rectangle rect = canvas.getBounds(); int width = rect.width - 20; - e.gc.setFont(FontResources.TABLE_CELL_FONT); - e.gc.setForeground(ColorResources.DEFAULT_FONT_COLOR); + e.gc.setBackground(ColorResources.VIEW_BG_COLOR); + e.gc.fillRectangle(rect.x, rect.y, rect.width, rect.height); + e.gc.setForeground(ColorResources.TABLE_CONTENTS_FONT_COLOR); + e.gc.setFont(FontResources.DETAIL_INFO_FONT); + String text = warningMessage; Point titleSize = e.gc.textExtent(titleText, SWT.DRAW_MNEMONIC); int fontHeight = titleSize.y + 5;