You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/03/16 10:45:36 UTC

[GitHub] dukescript closed pull request #458: LookAndFeel improvemnets for HTML UI on Windows

dukescript closed pull request #458: LookAndFeel improvemnets for HTML UI on Windows
URL: https://github.com/apache/incubator-netbeans/pull/458
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/api.htmlui/src/org/netbeans/modules/htmlui/NbBrowsers.java b/api.htmlui/src/org/netbeans/modules/htmlui/NbBrowsers.java
index ddf0d4922..9936ef4e3 100644
--- a/api.htmlui/src/org/netbeans/modules/htmlui/NbBrowsers.java
+++ b/api.htmlui/src/org/netbeans/modules/htmlui/NbBrowsers.java
@@ -18,6 +18,7 @@
  */
 package org.netbeans.modules.htmlui;
 
+import java.awt.Font;
 import java.net.URL;
 import java.util.ResourceBundle;
 import javafx.application.Platform;
@@ -37,6 +38,7 @@
 import javafx.stage.Modality;
 import javafx.stage.Stage;
 import javafx.util.Callback;
+import javax.swing.JOptionPane;
 import javax.swing.LookAndFeel;
 import javax.swing.UIManager;
 import net.java.html.boot.fx.FXBrowsers;
@@ -44,11 +46,14 @@
 import org.openide.util.NbBundle;
 
 final class NbBrowsers {
+
     static {
         Platform.setImplicitExit(false);
     }
+
     public static void load(WebView view, URL page, final Runnable onPageLoad, ClassLoader loader, Object... args) {
         class ApplySkin implements Runnable {
+
             @Override
             public void run() {
                 applyNbSkin();
@@ -85,15 +90,15 @@ static void applyNbSkin() {
         loadCss(resource);
     }
 
-    @JavaScriptBody(args = { "css" }, body =
-"  if (!document.head || document.head.getAttribute(\"data-netbeans-css\") == \"false\") {\n" +
-"     return;\n" +
-"  }\n" +
-"  var link = document.createElement(\"link\");\n" +
-"  link.rel = \"stylesheet\";\n" +
-"  link.type = \"text/css\";\n" +
-"  link.href = css;\n" +
-"  document.head.appendChild(link);"
+    @JavaScriptBody(args = {"css"}, body
+            = "  if (!document.head || document.head.getAttribute(\"data-netbeans-css\") == \"false\") {\n"
+            + "     return;\n"
+            + "  }\n"
+            + "  var link = document.createElement(\"link\");\n"
+            + "  link.rel = \"stylesheet\";\n"
+            + "  link.type = \"text/css\";\n"
+            + "  link.href = css;\n"
+            + "  document.head.appendChild(link);"
     )
     private static native void loadCss(String css);
 
@@ -195,6 +200,7 @@ public String call(PromptData prompt) {
 
         FXBrowsers.load(view, page, onPageLoad, loader, args);
     }
+
     private static final class CloseDialogHandler implements EventHandler<ActionEvent> {
 
         private final Stage dialogStage;
diff --git a/api.htmlui/src/org/netbeans/modules/htmlui/css/wizard-win.css b/api.htmlui/src/org/netbeans/modules/htmlui/css/wizard-win.css
index 143485826..5ed04f04f 100644
--- a/api.htmlui/src/org/netbeans/modules/htmlui/css/wizard-win.css
+++ b/api.htmlui/src/org/netbeans/modules/htmlui/css/wizard-win.css
@@ -17,7 +17,7 @@ limitations under the License.
 */
 
 body#body{
-    font-family: Dialog;
+    font-family: Tahoma;
     font-weight: 100;
 }
 
@@ -67,9 +67,7 @@ input[type=checkbox]:hover:checked {
 }
 
 input[type=radio]{
-    position: relative;
     background: #ffffff;
-    top: 4px;
     width: 16px;
     height: 16px;
     border-radius: 10px;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists