feat: added border_color option (#1000)

* feat: Allow customization of border color

* docs: Update readme
This commit is contained in:
Rishi Suresh
2021-04-28 00:28:44 +05:30
committed by GitHub
parent f9abae804b
commit 7a096acf66
15 changed files with 56 additions and 12 deletions
@@ -69,7 +69,7 @@ exports[`Test Render Wakatime Card should render correctly 1`] = `
y=\\"0.5\\"
rx=\\"4.5\\"
height=\\"99%\\"
stroke=\\"#E4E2E2\\"
stroke=\\"#e4e2e2\\"
width=\\"494\\"
fill=\\"#fffefe\\"
stroke-opacity=\\"1\\"
@@ -220,7 +220,7 @@ exports[`Test Render Wakatime Card should render correctly with compact layout 1
y=\\"0.5\\"
rx=\\"4.5\\"
height=\\"99%\\"
stroke=\\"#E4E2E2\\"
stroke=\\"#e4e2e2\\"
width=\\"494\\"
fill=\\"#fffefe\\"
stroke-opacity=\\"1\\"
+5
View File
@@ -71,6 +71,7 @@ describe("Test utils.js", () => {
text_color: "0f0",
icon_color: "00f",
bg_color: "fff",
border_color: "fff",
theme: "dark",
});
expect(colors).toStrictEqual({
@@ -78,6 +79,7 @@ describe("Test utils.js", () => {
textColor: "#0f0",
iconColor: "#00f",
bgColor: "#fff",
borderColor: "#fff",
});
});
@@ -87,6 +89,7 @@ describe("Test utils.js", () => {
text_color: "0f0",
icon_color: "00f",
bg_color: "fff",
border_color: "invalidColor",
theme: "dark",
});
expect(colors).toStrictEqual({
@@ -94,6 +97,7 @@ describe("Test utils.js", () => {
textColor: "#0f0",
iconColor: "#00f",
bgColor: "#fff",
borderColor: "#e4e2e2",
});
});
@@ -106,6 +110,7 @@ describe("Test utils.js", () => {
textColor: "#9f9f9f",
iconColor: "#79ff97",
bgColor: "#151515",
borderColor: "#e4e2e2",
});
});
});