summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:08:36 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:08:36 +0000
commit929ef384a174b747d864249f6798fd2f99358e29 (patch)
tree1f30d74f3ee73fd671afbcda5af0b50f67ae9698 /pdf-over-gui/src/main/java/at/asit/pdfover/gui
parentd85d2490ec89ac1b115de02326a220605ca9b635 (diff)
downloadmocca-929ef384a174b747d864249f6798fd2f99358e29.tar.gz
mocca-929ef384a174b747d864249f6798fd2f99358e29.tar.bz2
mocca-929ef384a174b747d864249f6798fd2f99358e29.zip
Fixed Background color of drop area
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@155 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java9
1 files changed, 6 insertions, 3 deletions
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;