From 929ef384a174b747d864249f6798fd2f99358e29 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:08:36 +0000 Subject: Fixed Background color of drop area git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@155 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../asit/pdfover/gui/composites/DataSourceSelectComposite.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java index feb350bf..530e0f03 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java +++ b/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; -- cgit v1.2.3