Summary : modify layout of the warning detail view 38/26338/1
authorseokgil.kang <seokgil.kang@samsung.com>
Thu, 21 Aug 2014 02:20:52 +0000 (11:20 +0900)
committerseokgil.kang <seokgil.kang@samsung.com>
Thu, 21 Aug 2014 02:20:52 +0000 (11:20 +0900)
Change-Id: I7e16e31811619b7764c69a3a9b6278e0922eeb0f
Signed-off-by: seokgil.kang <seokgil.kang@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/warning/WarningDetailView.java

index 26f56ce..f956e0e 100644 (file)
@@ -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;