Skip to content

Commit 0204430

Browse files
author
jossonsmith
committed
Improve dialogs
1 parent 8714976 commit 0204430

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/ColorDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public RGB open () {
336336
}
337337
}
338338

339-
dialogShell = new Shell(parent.display, style | SWT.CLOSE | SWT.BORDER | SWT.RESIZE) {
339+
dialogShell = new Shell(parent.display, style | SWT.CLOSE | SWT.APPLICATION_MODAL) {
340340

341341
protected void releaseHandle() {
342342
releaseHandles();

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Dialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public void setText (String string) {
297297

298298

299299
protected void dialogUnimplemented() {
300-
dialogShell = new Shell(parent.display, style | SWT.CLOSE | SWT.BORDER | SWT.SHELL_TRIM);
300+
dialogShell = new Shell(parent.display, style | SWT.CLOSE | SWT.APPLICATION_MODAL);
301301
dialogShell.addListener(SWT.Close, new Listener() {
302302
public void handleEvent(Event event) {
303303
//updateReturnCode();

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/FontDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public FontData open () {
493493
*/
494494
this.returnFD = null;
495495
//Display display = new Display();
496-
dialogShell = new Shell(parent.display, SWT.SHELL_TRIM | SWT.APPLICATION_MODAL);
496+
dialogShell = new Shell(parent.display, style | SWT.CLOSE | SWT.APPLICATION_MODAL);
497497
dialogShell.setText("Font");
498498
GridLayout gl = new GridLayout();
499499
dialogShell.setLayout(gl);

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/MessageBox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public int open () {
206206
}
207207
*/
208208
returnCode = -1;
209-
dialogShell = new Shell(parent.display, style | SWT.CLOSE | SWT.BORDER | SWT.SHELL_TRIM);
209+
dialogShell = new Shell(parent.display, SWT.CLOSE | SWT.APPLICATION_MODAL);
210210
dialogShell.addListener(SWT.Close, new Listener() {
211211
public void handleEvent(Event event) {
212212
updateReturnCode();

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Shell.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@
186186

187187
.shell-modal-block {
188188
background-color:white;
189-
opacity:0.2;
190-
filter:Alpha(Opacity=20);
189+
opacity:0.01;
190+
filter:Alpha(Opacity=1);
191191
position:absolute;
192192
left:0;
193193
top:0;
@@ -196,8 +196,8 @@
196196
}
197197
.over-iframe-layer {
198198
background-color:white;
199-
opacity:0.05;
200-
filter:Alpha(Opacity=5);
199+
opacity:0.01;
200+
filter:Alpha(Opacity=1);
201201
position:absolute;
202202
left:0;
203203
top:0;

0 commit comments

Comments
 (0)