summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:57 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:57 +0000
commit8e8612913e62cd4bbd474e0bbe586f6e21c75aed (patch)
treeb01ddb094713c92bef8c707109f7a39666439495 /trunk/pdf-over-gui/src/main/java/at
parent0efb5bffe713f706523f58faadb06226fdf60afe (diff)
downloadpdf-over-8e8612913e62cd4bbd474e0bbe586f6e21c75aed.tar.gz
pdf-over-8e8612913e62cd4bbd474e0bbe586f6e21c75aed.tar.bz2
pdf-over-8e8612913e62cd4bbd474e0bbe586f6e21c75aed.zip
Mainbar backgrounds right way around
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12750 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java6
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java6
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java2
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java4
4 files changed, 9 insertions, 9 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
index 6924b435..9a0a659b 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
@@ -36,10 +36,10 @@ public class Constants {
public static final int MAINBAR_HEIGHT = 60;
/** Main bar active background - light start of gradient */
- public static final Color MAINBAR_ACTIVE_BACK_LIGHT = new Color(display, 0x6B, 0xA5, 0xD9);
+ public static final Color MAINBAR_ACTIVE_BACK_LIGHT = new Color(display, 0xB4, 0xCD, 0xEC);
/** Main bar active background - dark end of gradient */
- public static final Color MAINBAR_ACTIVE_BACK_DARK = new Color(display, 0xB4, 0xCD, 0xEC);
+ public static final Color MAINBAR_ACTIVE_BACK_DARK = new Color(display, 0x6B, 0xA5, 0xD9);
/** Main bar inactive background */
public static final Color MAINBAR_INACTIVE_BACK = new Color(display, 0xD4, 0xE7, 0xF1);
@@ -51,7 +51,7 @@ public class Constants {
public static final Color MAINBAR_INACTIVE_TEXTCOLOR = new Color(display, 0x40, 0x40, 0x40);
/** Drop border color */
- public static final Color DROP_BORDER_COLOR = MAINBAR_ACTIVE_BACK_DARK;
+ public static final Color DROP_BORDER_COLOR = MAINBAR_ACTIVE_BACK_LIGHT;
/** Normal text size */
public static final int TEXT_SIZE_NORMAL = 12;
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 b2df6296..8c3c1e25 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
@@ -150,10 +150,10 @@ public class DataSourceSelectComposite extends StateComposite {
public DataSourceSelectComposite(Composite parent, int style, State state) {
super(parent, style, state);
- this.activeBackground = Constants.MAINBAR_ACTIVE_BACK_DARK;
+ this.activeBackground = Constants.MAINBAR_ACTIVE_BACK_LIGHT;
this.inactiveBackground = Constants.MAINBAR_INACTIVE_BACK;
- this.inactiveBorder = Constants.MAINBAR_ACTIVE_BACK_DARK;
- this.activeBorder = Constants.MAINBAR_ACTIVE_BACK_LIGHT;
+ this.inactiveBorder = Constants.MAINBAR_ACTIVE_BACK_LIGHT;
+ this.activeBorder = Constants.MAINBAR_ACTIVE_BACK_DARK;
this.backgroundColor = this.inactiveBackground;
this.borderColor = Constants.DROP_BORDER_COLOR;
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java
index 3cd7372f..45fd3dff 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterNumberComposite.java
@@ -182,7 +182,7 @@ public class MobileBKUEnterNumberComposite extends StateComposite {
Rectangle clientArea = containerComposite.getClientArea();
//e.gc.setForeground();
- e.gc.setForeground(Constants.MAINBAR_ACTIVE_BACK_LIGHT);
+ e.gc.setForeground(Constants.MAINBAR_ACTIVE_BACK_DARK);
e.gc.setLineWidth(3);
e.gc.setLineStyle(SWT.LINE_SOLID);
e.gc.drawRoundRectangle(clientArea.x,
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java
index 531937b4..95935c89 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java
@@ -103,8 +103,8 @@ public abstract class MainBarButton extends Canvas {
this.inactiveBackground = Constants.MAINBAR_INACTIVE_BACK;
- this.activeBackground1 = Constants.MAINBAR_ACTIVE_BACK_LIGHT;
- this.activeBackground = Constants.MAINBAR_ACTIVE_BACK_DARK;
+ this.activeBackground1 = Constants.MAINBAR_ACTIVE_BACK_DARK;
+ this.activeBackground = Constants.MAINBAR_ACTIVE_BACK_LIGHT;
//this.textColor = this.getForeground();
this.textColor = Constants.MAINBAR_ACTIVE_TEXTCOLOR;
//this.borderColor = new Color(getDisplay(), 0xf9, 0xf9, 0xf9);