summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
index bcf6108d..51ea61e7 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/MobileBKUEnterTANComposite.java
@@ -28,7 +28,6 @@ import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.TraverseEvent;
import org.eclipse.swt.events.TraverseListener;
-import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import org.eclipse.swt.graphics.Rectangle;
@@ -38,10 +37,12 @@ import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Link;
import org.eclipse.swt.widgets.Text;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import at.asit.pdfover.gui.Constants;
import at.asit.pdfover.gui.utils.Messages;
import at.asit.pdfover.gui.workflow.states.State;
@@ -250,7 +251,7 @@ public class MobileBKUEnterTANComposite extends StateComposite {
Rectangle clientArea = containerComposite.getClientArea();
// e.gc.setForeground();
- e.gc.setForeground(new Color(getDisplay(), 0x6B, 0xA5, 0xD9));
+ e.gc.setForeground(Constants.MAINBAR_ACTIVE_BACK_DARK);
e.gc.setLineWidth(3);
e.gc.setLineStyle(SWT.LINE_SOLID);
e.gc.drawRoundRectangle(clientArea.x, clientArea.y,
@@ -345,11 +346,11 @@ public class MobileBKUEnterTANComposite extends StateComposite {
Button btn_ok = new Button(containerComposite, SWT.NATIVE);
- Button lnk_sig_data = new Button(containerComposite, SWT.NATIVE | SWT.RESIZE);
+ Link lnk_sig_data = new Link(containerComposite, SWT.NATIVE | SWT.RESIZE);
FormData fd_lnk_data = new FormData();
fd_lnk_data.right = new FormAttachment(100, -20);
- fd_lnk_data.bottom = new FormAttachment(100, -20);
+ fd_lnk_data.bottom = new FormAttachment(btn_ok, -5);
lnk_sig_data.setEnabled(true);
lnk_sig_data.setLayoutData(fd_lnk_data);
lnk_sig_data.addSelectionListener(new ShowSignatureDataListener());
@@ -366,7 +367,7 @@ public class MobileBKUEnterTANComposite extends StateComposite {
FormData fd_btn_ok = new FormData();
// fd_btn_ok.left = new FormAttachment(95, 0);
- fd_btn_ok.right = new FormAttachment(lnk_sig_data, -10);
+ fd_btn_ok.right = new FormAttachment(100, -20);
//fd_btn_ok.left = new FormAttachment(100, -70);
fd_btn_ok.bottom = new FormAttachment(100, -20);