skin: Set the background color of the shaft
authorgiwoong.kim <giwoong.kim@samsung.com>
Thu, 27 Jun 2013 03:43:07 +0000 (12:43 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Thu, 27 Jun 2013 05:35:02 +0000 (14:35 +0900)
Set the background color of the shaft in CustomScrollBar

Change-Id: I0e4c14d7bb8eeb24d287d42af73984adab6b4854
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/custom/ColorTag.java
tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomProgressBar.java
tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomScrollBar.java
tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomScrolledComposite.java
tizen/src/skin/client/src/org/tizen/emulator/skin/custom/CustomScrolledCompositeLayout.java

index 1e4654ddfddfeabbe92d348252ffec9743678a22..68927d5e4fab0927036d491bdb80120b3cbce73b 100644 (file)
@@ -1,5 +1,5 @@
 /**
- *
+ * Pair Tag
  *
  * Copyright (C) 2013 Samsung Electronics Co., Ltd. All rights reserved.
  *
@@ -10,7 +10,7 @@
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
- * of the License, or ( at your option ) any later version.
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
index a07c3f8e797bf9ea362aaa71ecb5f6d8455a22d2..6a994efe1eadd30cbf25208925e9481ee5d766a3 100644 (file)
@@ -10,7 +10,7 @@
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
- * of the License, or ( at your option ) any later version.
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
index 49e28761392fa141004531d7e03256ba1b3ae5ec..1478f9f672779a9aefa8688cadea95fda6f89b54 100644 (file)
@@ -48,8 +48,6 @@ import org.eclipse.swt.layout.RowLayout;
 import org.eclipse.swt.widgets.Canvas;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
 import org.tizen.emulator.skin.log.SkinLogger;
 
 
@@ -172,6 +170,7 @@ public class CustomScrollBar {
 
                /* shaft */
                canvasShaft = new Canvas(composite, SWT.NONE);
+               canvasShaft.setBackground(parent.getBackground());
 
                dataShaft.widthShaft = width;
                dataShaft.heightShaft = heightScrollBar - (height * 2);
index 9f2c4ab5d967e02efb0263b6776df848a5cd2c44..870e4b02b555ced05e90778c09e343f37e3383c7 100644 (file)
@@ -10,7 +10,7 @@
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
- * of the License, or ( at your option ) any later version.
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -64,8 +64,9 @@ public class CustomScrolledComposite extends Composite {
        public boolean expandHorizontal = false;
        public boolean expandVertical = false;
 
-       private int value;
-
+       /**
+        *  Constructor
+        */
        public CustomScrolledComposite(Composite parent, int style,
                        Image[] imagesArrowUp, Image[] imagesArrowDown,
                        Image imageThumb, Image imageShaft) {
@@ -86,8 +87,6 @@ public class CustomScrolledComposite extends Composite {
                this.imagesArrowDown = imagesArrowDown;
                this.imageThumb = imageThumb;
                this.imageShaft = imageShaft;
-
-               value = 0;
        }
 
        public CustomScrollBar getScrollBar() {
index 2b36253b9e8bb890e42238de2e1f9c58df45bb9d..6377a53c28864aae070922c9b6216e896df778c9 100644 (file)
@@ -10,7 +10,7 @@
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
- * of the License, or ( at your option ) any later version.
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -74,6 +74,8 @@ class ScrolledCompositeLayout extends Layout {
                        return;
                }
 
+               logger.info("layouting");
+
                CustomScrolledComposite sc = (CustomScrolledComposite)composite;
                if (sc.content == null) {
                        return;