Merge pull request #155 from eneiluj/enh/default-stroke

Set default stroke to 2 instead of 0
This commit is contained in:
banglashi
2021-03-23 23:03:33 +01:00
committed by GitHub

View File

@@ -62,7 +62,7 @@ var SpacedeckSections = {
active_style: { active_style: {
border_radius: 0, border_radius: 0,
stroke: 0, stroke: 2,
font_family: "Inter", font_family: "Inter",
font_size: 36, font_size: 36,
line_height: 1.5, line_height: 1.5,
@@ -1356,7 +1356,7 @@ var SpacedeckSections = {
}, },
reset_stroke: function() { reset_stroke: function() {
this.active_style.stroke = 0; this.active_style.stroke = 2;
this.active_style.border_radius = 0; this.active_style.border_radius = 0;
this.active_style.stroke_style = "solid"; this.active_style.stroke_style = "solid";
}, },
@@ -1714,7 +1714,7 @@ var SpacedeckSections = {
h: h, h: h,
stroke_color: this.active_style.stroke_color, stroke_color: this.active_style.stroke_color,
text_color: this.active_style.text_color, text_color: this.active_style.text_color,
stroke: 0, stroke: this.active_style.stroke,
fill_color: this.active_style.fill_color, fill_color: this.active_style.fill_color,
shape: shape_type, shape: shape_type,
valign: "middle", valign: "middle",