mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 09:27:31 +01:00
set default stroke to 2 instead of 0, fixes first drawn shapes being invisible
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
@@ -62,7 +62,7 @@ var SpacedeckSections = {
|
||||
|
||||
active_style: {
|
||||
border_radius: 0,
|
||||
stroke: 0,
|
||||
stroke: 2,
|
||||
font_family: "Inter",
|
||||
font_size: 36,
|
||||
line_height: 1.5,
|
||||
@@ -1368,7 +1368,7 @@ var SpacedeckSections = {
|
||||
},
|
||||
|
||||
reset_stroke: function() {
|
||||
this.active_style.stroke = 0;
|
||||
this.active_style.stroke = 2;
|
||||
this.active_style.border_radius = 0;
|
||||
this.active_style.stroke_style = "solid";
|
||||
},
|
||||
@@ -1726,7 +1726,7 @@ var SpacedeckSections = {
|
||||
h: h,
|
||||
stroke_color: this.active_style.stroke_color,
|
||||
text_color: this.active_style.text_color,
|
||||
stroke: 0,
|
||||
stroke: this.active_style.stroke,
|
||||
fill_color: this.active_style.fill_color,
|
||||
shape: shape_type,
|
||||
valign: "middle",
|
||||
|
||||
Reference in New Issue
Block a user