Skip to content

Commit 297223a

Browse files
authored
Merge pull request 0l1v3rr#465 from rahulkumarpahwa/master
While selecting three themes "Windows, Hacker and Android" we will get a validation error saying : "Please match the requested format."
2 parents 2e0abc7 + 20c1b17 commit 297223a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/const/themes.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type Theme } from "@/types";
22

3+
34
/**
45
* This `Map` stores all the themes that are currently available.
56
* In order to add a new theme, use the `set` method.
@@ -140,21 +141,21 @@ themes.set("blood_dark", {
140141
});
141142
themes.set("hacker", {
142143
backgroundColor: "#101010",
143-
borderColor: "#222",
144+
borderColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
144145
titleColor: "#1DDB07",
145-
badgeColor: "#222",
146+
badgeColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
146147
});
147148
themes.set("android", {
148149
backgroundColor: "#101010",
149-
borderColor: "#222",
150+
borderColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
150151
titleColor: "#3ADD85",
151-
badgeColor: "#222",
152+
badgeColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
152153
});
153154
themes.set("windows", {
154155
backgroundColor: "#101010",
155-
borderColor: "#222",
156+
borderColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
156157
titleColor: "#00A3EE",
157-
badgeColor: "#222",
158+
badgeColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
158159
});
159160
themes.set("halloween", {
160161
backgroundColor: "#1C1A2B",
@@ -301,4 +302,4 @@ themes.set("dark_minimalist", {
301302
*/
302303
export const getThemeByName = (name: string): Theme => {
303304
return themes.get(name.toLowerCase()) ?? Array.from(themes).at(0)![1];
304-
};
305+
};

0 commit comments

Comments
 (0)