Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
f1c55d44
Commit
f1c55d44
authored
Jul 25, 2015
by
Jonathan Wilkes
Browse files
added more default styles
parent
44563d9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/nw/css/default.css
View file @
f1c55d44
...
...
@@ -50,11 +50,13 @@
}
.cord.signal
{
stroke-width
:
2
stroke-width
:
2
;
stroke
:
#808095
;
}
.cord.control
{
stroke-width
:
1
stroke-width
:
1
;
stroke
:
#565
;
}
#new_object_textentry
{
...
...
@@ -71,7 +73,7 @@
}
#new_object_textentry
.obj
{
outline
:
1px
solid
#000
;
outline
:
1px
solid
blue
;
}
#new_object_textentry
.msg
{
...
...
@@ -102,11 +104,27 @@ text {
stroke-width
:
1
;
}
.msg
.border
{
stroke
:
#ccc
;
fill
:
#f8f8f6
;
}
/* state of msg box when clicking it */
.msg.flashed
.border
{
stroke-width
:
4
;
}
/* atom box */
.atom
.border
{
stroke
:
#ccc
;
fill
:
#eee
;
}
.obj
.border
{
fill
:
#f6f8f8
;
stroke
:
#ccc
;
}
/* border color for selected objects
* an element with the class 'border'
* the element is contained within a parent element of class 'selected'
...
...
@@ -126,7 +144,7 @@ text {
}
/* for an object that didn't create */
.broken_border
{
.obj
.border
.broken_border
{
fill
:
#f7f7f7
;
stroke
:
red
;
stroke-dasharray
:
3
2
;
...
...
@@ -225,7 +243,6 @@ input[type="number"]{
width
:
3em
;
}
label
{
text-align
:
right
;
}
...
...
pd/nw/pdgui.js
View file @
f1c55d44
...
...
@@ -1952,8 +1952,8 @@ function gui_text_drawborder(cid, tag, bgcolor, isbroken, x1, y1, x2, y2) {
var
rect
=
create_item
(
cid
,
'
rect
'
,
{
width
:
x2
-
x1
,
height
:
y2
-
y1
,
stroke
:
'
black
'
,
fill
:
'
none
'
,
//
stroke: 'black',
// done in css now
//
fill: 'none',
// done in css now
'
shape-rendering
'
:
'
crispEdges
'
,
class
:
'
border
'
});
...
...
@@ -2110,7 +2110,7 @@ function gui_canvas_line(cid,tag,type,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10) {
var
path
=
create_item
(
cid
,
'
path
'
,
{
d
:
d_array
.
join
(
"
"
),
fill
:
'
none
'
,
stroke
:
'
gray
'
,
//
stroke: 'gray',
// done in css now
// 'stroke-width': 1,
'
shape-rendering
'
:
'
optimizeSpeed
'
,
id
:
tag
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment