Skip to content

Commit f521298

Browse files
author
zhourenjian
committed
Update servlet comment example;
Improve title bar in Ubuntu
1 parent 9908434 commit f521298

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,17 @@ public void run() {
21002100
}
21012101
shellTitle = document.createElement("DIV");
21022102
shellTitle.className = "shell-title-text";
2103+
2104+
/**
2105+
* Ubuntu's Firefox has different active caption background color!
2106+
* @j2sNative
2107+
* if (window["ubuntu.css.colors.fixed"] == null
2108+
* && navigator.userAgent.indexOf ("Ubuntu") != -1) {
2109+
* this.titleBar.style.backgroundColor = "highlight";
2110+
* this.shellTitle.style.color = "highlighttext";
2111+
* }
2112+
*/ {}
2113+
21032114
titleBar.appendChild(shellTitle);
21042115
if ((style & SWT.MAX) != 0) {
21052116
titleBar.ondblclick = shellMax.onclick;

0 commit comments

Comments
 (0)