Skip to content

Commit 9095112

Browse files
author
jossonsmith
committed
Update Shell handler and use a simple console rather than old black-white console box.
1 parent b75aef9 commit 9095112

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/internal/dnd/ShellFrameDND.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public boolean dragBegan(DragEvent e) {
5252
boolean firstTime = false;
5353
if (this.frame == null) {
5454
this.frame = document.createElement ("DIV");
55-
this.frame.className = "shell-handle";
56-
this.frame.style.backgroundColor = "transparent";
55+
this.frame.className = "shell-handle shell-opacity";
56+
this.frame.style.backgroundColor = "menu";
5757
this.frame.style.left = this.sourceX + "px";
5858
this.frame.style.top = this.sourceY + "px";
5959
this.frame.style.zIndex = "" + (Integer.parseInt(window.currentTopZIndex) + 100);
@@ -68,8 +68,10 @@ public boolean dragBegan(DragEvent e) {
6868
}
6969
if (existedTitleBar) {
7070
Element titleBar = document.createElement ("DIV");
71-
titleBar.className = "shell-title-bar opacity";
72-
titleBar.style.paddingTop = "4px";
71+
titleBar.className = "shell-title-bar";
72+
titleBar.style.margin = "4px 0";
73+
titleBar.style.width = "100%";
74+
7375
this.frame.appendChild (titleBar);
7476
}
7577
firstTime = true;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
background-color:menu;
1010
z-index:10;
1111
}
12-
.opacity {
12+
.shell-opacity {
1313
width:100%;
1414
margin:0;
15-
opacity:0.25;
16-
filter:Alpha (opacity=25);
15+
opacity:0.35;
16+
filter:Alpha (opacity=35);
1717
}
1818
.shell-default {
1919
position:absolute;

0 commit comments

Comments
 (0)