From 2be4113a70dd32cc354f2033016d52fe74f79a2c Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Thu, 8 Nov 2012 22:07:24 +0100 Subject: Make logo preview larger --- .../asit/pdfover/gui/composites/SimpleConfigurationComposite.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trunk/pdf-over-gui/src/main/java') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java index f3e5485e..aaeafe9c 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java @@ -232,7 +232,6 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { fd_controlComposite.bottom = new FormAttachment(100, -20); controlComposite.setLayoutData(fd_controlComposite); controlComposite.addPaintListener(new PaintListener() { - @Override public void paintControl(PaintEvent e) { e.gc.setForeground(Constants.DROP_BORDER_COLOR); @@ -248,7 +247,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { this.btnBrowseLogo = new Button(controlComposite, SWT.NONE); - this.lblDropLogo = new Label(controlComposite, SWT.NATIVE); + this.lblDropLogo = new Label(controlComposite, SWT.NATIVE | SWT.CENTER); this.lblLogo = new Label(controlComposite, SWT.NATIVE); this.lblLogo.setAlignment(SWT.CENTER); @@ -257,7 +256,8 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { fd_lbl_logo.right = new FormAttachment(100, -20); fd_lbl_logo.top = new FormAttachment(0, 20); fd_lbl_logo.bottom = new FormAttachment(this.lblDropLogo, -20); - + fd_lbl_logo.height = 40; + fd_lbl_logo.width = 40; this.lblLogo.setLayoutData(fd_lbl_logo); this.btnClearImage = new Button(controlComposite, SWT.NATIVE); -- cgit v1.2.3