summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:54 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:54 +0000
commit00d435b78f69393f4df1b0ad5af066ad3e21e46e (patch)
tree7897b96e65b9f84c0be3a5cebc061b60d9703105
parente8a0b36a623982dc2f06872e42164bdb94ac49f0 (diff)
downloadpdf-over-00d435b78f69393f4df1b0ad5af066ad3e21e46e.tar.gz
pdf-over-00d435b78f69393f4df1b0ad5af066ad3e21e46e.tar.bz2
pdf-over-00d435b78f69393f4df1b0ad5af066ad3e21e46e.zip
Fixed Background color of drop area
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12741 3a0b52a2-8410-0410-bc02-ff6273a87459
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
index feb350bf..530e0f03 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java
@@ -119,7 +119,7 @@ public class DataSourceSelectComposite extends StateComposite {
}
void MarkDragLeave() {
- this.backgroundColor = this.getBackground();
+ this.backgroundColor = this.inactiveBackground;
this.borderColor = this.inactiveBorder;
this.redrawDrop();
}
@@ -133,6 +133,7 @@ public class DataSourceSelectComposite extends StateComposite {
}
Color activeBackground;
+ Color inactiveBackground;
Color inactiveBorder;
Color activeBorder;
Color borderColor;
@@ -148,10 +149,11 @@ public class DataSourceSelectComposite extends StateComposite {
public DataSourceSelectComposite(Composite parent, int style, State state) {
super(parent, style, state);
- this.activeBackground = new Color(getDisplay(),0xD4, 0xE7, 0xF1);
+ this.activeBackground = new Color(getDisplay(),0xB4, 0xCD, 0xEC);
+ this.inactiveBackground = new Color(getDisplay(),0xD4, 0xE7, 0xF1);
this.inactiveBorder = new Color(getDisplay(),0xB4, 0xCD, 0xEC);
this.activeBorder = new Color(getDisplay(),0x6B, 0xA5, 0xD9);
- this.backgroundColor = this.getBackground();
+ this.backgroundColor = this.inactiveBackground;
this.borderColor = this.inactiveBorder;
this.setLayout(new FormLayout());
@@ -335,6 +337,7 @@ public class DataSourceSelectComposite extends StateComposite {
// btn_open.setBackground(back);
this.btn_open.addSelectionListener(new FileBrowseDialogListener());
this.drop_area.pack();
+ this.redrawDrop();
}
private boolean press = false;