Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ishan Kumar Kaler
purr-data
Commits
996bac73
Commit
996bac73
authored
Apr 14, 2021
by
Jonathan Wilkes
Browse files
add Albert's defaults when parsing the stylesheet
parent
38460464
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
996bac73
...
...
@@ -6326,12 +6326,16 @@ function gui_lib_properties(dummy, defeat_rt, flag_string, lib_array) {
}
function
set_bg_style
(
w
)
{
var
rule
;
// grid stroke
bg_style
.
svg_grid
=
get_style_by_selector
(
w
,
"
#svg_grid
"
).
stroke
;
rule
=
get_style_by_selector
(
w
,
"
#svg_grid
"
);
bg_style
.
svg_grid
=
rule
?
rule
.
stroke
:
"
#bbb
"
;
// cell stroke
bg_style
.
svg_cell
=
get_style_by_selector
(
w
,
"
#svg_cell
"
).
stroke
;
rule
=
get_style_by_selector
(
w
,
"
#svg_cell
"
);
bg_style
.
svg_cell
=
rule
?
rule
.
stroke
:
"
#ddd
"
;
// color for the little "lock" icon
bg_style
.
svg_fg
=
get_style_by_selector
(
w
,
"
#svg_fg
"
).
fill
;
rule
=
get_style_by_selector
(
w
,
"
#svg_fg
"
);
bg_style
.
svg_fg
=
rule
?
rule
.
fill
:
"
#bbb
"
;
return
true
;
}
...
...
Write
Preview
Supports
Markdown
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