diff --git a/pd/nw/index.html b/pd/nw/index.html index d1e53eb6d39dfbf3891b881bc7be945b341cff55..080219c9907646a4a87de8b6a45966c034b728e2 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 4f739817ef8a57d510a94f796731caf9c98f5623..6b97a6b2a28be8894bd8a0cc9ed052098b71db39 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 69f0f4cf1d1801447204067a08b9e30392c8140f..2d2c14f8b80b7734818c7184b157541485d269f4 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 + ')';