mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:02:29 +00:00
schedule's background fill driven by .ods/xlsx, if it exists.
also added `.border` class to default schedule css.
This commit is contained in:
@@ -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'; }
|
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(
|
self.svg.rect(
|
||||||
insert=(x, y),
|
insert=(x, y),
|
||||||
size=(width, height),
|
size=(width, height),
|
||||||
|
style=f"fill: {background_color};",
|
||||||
class_="border",
|
class_="border",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -435,6 +436,7 @@ class Scheduler:
|
|||||||
self.svg.rect(
|
self.svg.rect(
|
||||||
insert=(x, y),
|
insert=(x, y),
|
||||||
size=(width, height),
|
size=(width, height),
|
||||||
|
style=f"fill: {background_color};",
|
||||||
class_="border",
|
class_="border",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user