From 00d435b78f69393f4df1b0ad5af066ad3e21e46e Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:36:54 +0000 Subject: 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 --- .../asit/pdfover/gui/composites/DataSourceSelectComposite.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'trunk/pdf-over-gui/src/main/java/at/asit') 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; -- cgit v1.2.3