aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-04-14 12:25:31 -0400
committerbobzel <zzzman@gmail.com>2022-04-14 12:25:31 -0400
commita0b30f735850d4543cf9499ebd497b9548c22e47 (patch)
treebd601f507533376644e815ca049cde592fa1294e /src/Utils.ts
parent74ef5f7a8c60dc68a1262077f7502d0535377b88 (diff)
tweaks. fixed groups to be resizable when iconified.
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 77095005b..d1d400de7 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -604,6 +604,7 @@ export function DashColor(color: string) {
export function lightOrDark(color: any) {
if (color === "transparent") return "gray";
+ if (color.startsWith?.("linear")) return "black";
const nonAlphaColor = color.startsWith("#") ? (color as string).substring(0, 7) :
color.startsWith("rgba") ? color.replace(/,.[^,]*\)/, ")").replace("rgba", "rgb") : color;
const col = DashColor(nonAlphaColor).rgb();