Compare commits

...

4 Commits

2 changed files with 10 additions and 5 deletions

View File

@ -1,12 +1,12 @@
# Universal AppleCommander version number. Used for:
# - Naming JAR file.
# - The build will insert this into a file that is read at run time as well.
version=1.9.0-SNAPSHOT
version=1.9.0
# Dependency versions
shkVersion=1.2.2
asVersion=1.2.2
btVersion=0.3.1
btVersion=0.4.0
swtVersion=3.123.0
piSwtVersion=3.8.2
junitVersion=4.13.1
@ -16,4 +16,4 @@ commonsCsvVersion=1.8
gsonVersion=2.8.9
picocliVersion=4.6.2
springBoot=2.6.1
acdasmVersion=0.4.0
acdasmVersion=0.5.0

View File

@ -21,6 +21,7 @@ package com.webcodepro.applecommander.ui.swt.wizard;
import java.util.Stack;
import com.webcodepro.applecommander.util.Host;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@ -68,7 +69,11 @@ public abstract class Wizard {
* Create the dialog.
*/
private void createDialog() {
dialog = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
int styles = SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL;
if (Host.isMacosx()) {
styles |= SWT.SHEET;
}
dialog = new Shell(parent, styles);
dialog.setText(title);
RowLayout layout = new RowLayout(SWT.VERTICAL);
layout.justify = true;
@ -85,7 +90,7 @@ public abstract class Wizard {
rowData.height = logo.getImageData().height;
imageCanvas = new ImageCanvas(dialog, SWT.BORDER, logo, rowData);
// Starting pane
// Content pane
rowData = new RowData();
rowData.width = logo.getImageData().width;
contentPane = new Composite(dialog, SWT.BORDER);