schedule's background fill driven by .ods/xlsx, if it exists.

also added `.border` class to default schedule css.
This commit is contained in:
Ryan Schultz
2024-08-11 12:14:55 -05:00
parent a791abe23e
commit ab8710bd1e
2 changed files with 8 additions and 0 deletions
@@ -43,3 +43,9 @@
}
text, tspan { /* 2.5mm */ fill: black; stroke: none; font-family: 'OpenGost Type B TT', 'DejaVu Sans Condensed', 'Liberation Sans', 'Arial Narrow', 'Arial'; }
.border {
stroke: #000000;
stroke-width:.125;
fill: none; /* will be overriden if background color is set in .ods, or .xlsx */
}
@@ -159,6 +159,7 @@ class Scheduler:
self.svg.rect(
insert=(x, y),
size=(width, height),
style=f"fill: {background_color};",
class_="border",
)
)
@@ -435,6 +436,7 @@ class Scheduler:
self.svg.rect(
insert=(x, y),
size=(width, height),
style=f"fill: {background_color};",
class_="border",
)
)