From b15fd06a59487e0acd40e3154859b1d9024e0df1 Mon Sep 17 00:00:00 2001
From: user <user@user-ThinkPad-X60.(none)>
Date: Mon, 27 Apr 2015 22:47:24 -0400
Subject: [PATCH] added new stylesheet to the pd console

---
 pd/nw/index.html     | 5 ++++-
 pd/nw/pd_canvas.html | 1 +
 pd/nw/pdgui.js       | 6 +++---
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/pd/nw/index.html b/pd/nw/index.html
index d1e53eb6d..080219c99 100644
--- a/pd/nw/index.html
+++ b/pd/nw/index.html
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
   <head>
-    <link rel="stylesheet" type="text/css" href="index.css">
+  <link id="page_style" rel="stylesheet" type="text/css" href="css/default.css">
   </head>
   <body id="console_body">
     <input style="display:none;" id="fileDialog" type="file" nwworkingdir multiple />
@@ -22,6 +22,9 @@
         pdgui.set_pd_window(this);
         pdgui.set_app_quitfn(app_quit);
 
+        // gui preset
+        pdgui.skin.apply(this);
+
         // For translations
         var l = pdgui.get_local_string;
 
diff --git a/pd/nw/pd_canvas.html b/pd/nw/pd_canvas.html
index 4f739817e..6b97a6b2a 100644
--- a/pd/nw/pd_canvas.html
+++ b/pd/nw/pd_canvas.html
@@ -12,6 +12,7 @@
 
 
   <svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="patchsvg" height="1000" width="1000" class="noselect">
+  <rect id="bbox_rect"></rect>
   </svg>
   <script>
     'use strict';
diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 69f0f4cf1..2d2c14f8b 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -1861,9 +1861,9 @@ function gui_configure_item(cid, tag, attributes) {
 // Most of these map either to pd.tk procs, or in some cases Tk canvas subcommands
 function gui_text_create_gobj(cid, tag, type, xpos, ypos, is_toplevel) {
     gui_post("creating a gobj");
-    var svg = get_item(cid, "patchsvg"); // "patchsvg" is id for the svg in the DOM
-    // Put objects on half-pixels to make them crisp (look in to the difference between
-    // this and the object-rendering 'crispEdges' attribute)
+    var svg = get_item(cid, "patchsvg"); // "patchsvg" is id for the svg element
+    // Put objects on half-pixels to make them crisp (look in to the
+    // difference between this and the object-rendering 'crispEdges' attribute)
     xpos += 0.5;
     ypos += 0.5;
     var transform_string = 'matrix(1,0,0,1,' + xpos + ',' + ypos + ')';
-- 
GitLab