Commit b15fd06a authored by user's avatar user
Browse files

added new stylesheet to the pd console

parent c3c2f1be
<!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;
......
......@@ -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';
......
......@@ -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 + ')';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment