From 2ba7cce4fd8a7ed1bad4840011cb5e587d7f9882 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:00:23 +0000 Subject: Merge branch 'master' of abyss:12PDF-OVER-4.0 git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@76 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../at/asit/pdfover/gui/controls/MainBarButton.java | 20 ++++++++++++-------- pdf-over-gui/src/main/resources/img/config.png | Bin 2722 -> 1370 bytes pdf-over-gui/src/main/resources/img/icon.png | Bin 0 -> 2749 bytes .../src/main/resources/img/pdf-over-icon-1.png | Bin 0 -> 10335 bytes .../src/main/resources/img/pdf-over-icon.png | Bin 0 -> 13796 bytes 5 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 pdf-over-gui/src/main/resources/img/icon.png create mode 100644 pdf-over-gui/src/main/resources/img/pdf-over-icon-1.png create mode 100644 pdf-over-gui/src/main/resources/img/pdf-over-icon.png (limited to 'pdf-over-gui/src/main') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java index 576c1216..5ee261f1 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java @@ -42,7 +42,7 @@ public abstract class MainBarButton extends Canvas { /** * If borders are drawn with a gradient effect this sets the size */ - public static final int GradientFactor = 4; + public static final int GradientFactor = 5; /** * Number of pixel of the altitude of the triangle representing the arrow within the button shapes @@ -79,16 +79,19 @@ public abstract class MainBarButton extends Canvas { this.setCursor(hand); - this.inactiveBackground = new Color(getDisplay(), 0xC7, 0xDD, 0xE7); - this.activeBackground = new Color(getDisplay(), 0x7A, 0xC2, 0xD3); + + this.inactiveBackground = new Color(getDisplay(),0xD4, 0xE7, 0xF1); + this.activeBackground1 = new Color(getDisplay(),0x6B, 0xA5, 0xD9); + this.activeBackground = new Color(getDisplay(),0xB4, 0xCD, 0xEC); this.textColor = this.getForeground(); - this.borderColor = new Color(getDisplay(), 0x7E, 0x9F, 0xA5); - this.inactiveText = new Color(getDisplay(), 0x6E, 0x6C, 0x6E); + this.borderColor = new Color(getDisplay(), 0xf9, 0xf9, 0xf9); + this.inactiveText = new Color(getDisplay(), 0x40, 0x40, 0x40); this.textsize = StateComposite.TEXT_SIZE_BUTTON; } private Color inactiveBackground = null; + private Color activeBackground1 = null; /** * @param inactiveBackground @@ -153,6 +156,7 @@ public abstract class MainBarButton extends Canvas { public void setBorderColor(Color borderColor) { this.borderColor = borderColor; } + private Color borderColor = null; @@ -243,12 +247,12 @@ public abstract class MainBarButton extends Canvas { */ protected void paintBackground(PaintEvent e) { Point size = this.getSize(); - int height = size.y - 2; + int height = size.y - 4; int width = size.x; - e.gc.setForeground(this.activeBackground); - e.gc.setBackground(this.inactiveBackground); + e.gc.setForeground(this.activeBackground1); + e.gc.setBackground(this.activeBackground); e.gc.fillGradientRectangle(0, height, width, -1 * height, true); diff --git a/pdf-over-gui/src/main/resources/img/config.png b/pdf-over-gui/src/main/resources/img/config.png index 4da048a6..71783015 100644 Binary files a/pdf-over-gui/src/main/resources/img/config.png and b/pdf-over-gui/src/main/resources/img/config.png differ diff --git a/pdf-over-gui/src/main/resources/img/icon.png b/pdf-over-gui/src/main/resources/img/icon.png new file mode 100644 index 00000000..24f46564 Binary files /dev/null and b/pdf-over-gui/src/main/resources/img/icon.png differ diff --git a/pdf-over-gui/src/main/resources/img/pdf-over-icon-1.png b/pdf-over-gui/src/main/resources/img/pdf-over-icon-1.png new file mode 100644 index 00000000..a040b547 Binary files /dev/null and b/pdf-over-gui/src/main/resources/img/pdf-over-icon-1.png differ diff --git a/pdf-over-gui/src/main/resources/img/pdf-over-icon.png b/pdf-over-gui/src/main/resources/img/pdf-over-icon.png new file mode 100644 index 00000000..ceffae90 Binary files /dev/null and b/pdf-over-gui/src/main/resources/img/pdf-over-icon.png differ -- cgit v1.2.3