-
Notifications
You must be signed in to change notification settings - Fork 3
[FEAT] Add Plant Theme #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -7,6 +7,7 @@ export interface ThemeStyle { | |||||||||||||||||||||||||||||||||
label: string; | ||||||||||||||||||||||||||||||||||
emoji?: string; | ||||||||||||||||||||||||||||||||||
background?: string; | ||||||||||||||||||||||||||||||||||
backgroundPattern?: string; | ||||||||||||||||||||||||||||||||||
showBaseDot?: boolean; | ||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
@@ -61,9 +62,54 @@ export const FireTheme: ThemeStyle = { | |||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
export const PlantTheme: ThemeStyle = { | ||||||||||||||||||||||||||||||||||
label: "Plant", | ||||||||||||||||||||||||||||||||||
emoji: "πΏ", | ||||||||||||||||||||||||||||||||||
background: "#f0fdf4", | ||||||||||||||||||||||||||||||||||
backgroundPattern: ` | ||||||||||||||||||||||||||||||||||
<pattern patternUnits="userSpaceOnUse" width="40" height="40"> | ||||||||||||||||||||||||||||||||||
<rect width="40" height="40" fill="#7B4A22" /> | ||||||||||||||||||||||||||||||||||
<ellipse cx="8.2" cy="7.1" rx="5.1" ry="2.2" fill="#A97C50" opacity="0.65"/> | ||||||||||||||||||||||||||||||||||
<ellipse cx="30.5" cy="15.7" rx="3.8" ry="2.9" fill="#C69C6D" opacity="0.55"/> | ||||||||||||||||||||||||||||||||||
<ellipse cx="20.1" cy="35.2" rx="4.2" ry="1.7" fill="#8D6748" opacity="0.60"/> | ||||||||||||||||||||||||||||||||||
<ellipse cx="12.7" cy="28.3" rx="2.9" ry="1.2" fill="#BCA17A" opacity="0.70"/> | ||||||||||||||||||||||||||||||||||
<circle cx="5.2" cy="5.8" r="1.7" fill="#F9E4B7" opacity="0.80"/> | ||||||||||||||||||||||||||||||||||
<circle cx="13.1" cy="11.2" r="1.1" fill="#F6D28B" opacity="0.60"/> | ||||||||||||||||||||||||||||||||||
<circle cx="32.3" cy="8.4" r="1.3" fill="#F9E4B7" opacity="0.90"/> | ||||||||||||||||||||||||||||||||||
<circle cx="18.7" cy="25.6" r="1.2" fill="#BCA17A" opacity="0.70"/> | ||||||||||||||||||||||||||||||||||
<circle cx="36.2" cy="36.1" r="1.5" fill="#A97C50" opacity="0.80"/> | ||||||||||||||||||||||||||||||||||
</pattern> | ||||||||||||||||||||||||||||||||||
`, | ||||||||||||||||||||||||||||||||||
showBaseDot: true, | ||||||||||||||||||||||||||||||||||
getEmoji: (level: CommitLevel): string | null => { | ||||||||||||||||||||||||||||||||||
switch (level) { | ||||||||||||||||||||||||||||||||||
case "none": | ||||||||||||||||||||||||||||||||||
return null; | ||||||||||||||||||||||||||||||||||
case "low": | ||||||||||||||||||||||||||||||||||
return "π«"; // μ¨μ | ||||||||||||||||||||||||||||||||||
case "medium": | ||||||||||||||||||||||||||||||||||
return "π±"; // μμΉ | ||||||||||||||||||||||||||||||||||
case "high": | ||||||||||||||||||||||||||||||||||
return "πΏ"; // νμ | ||||||||||||||||||||||||||||||||||
case "max": | ||||||||||||||||||||||||||||||||||
return "π»"; // κ½ | ||||||||||||||||||||||||||||||||||
default: | ||||||||||||||||||||||||||||||||||
return null; | ||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||
colorMap: { | ||||||||||||||||||||||||||||||||||
none: "#f0fdf4", | ||||||||||||||||||||||||||||||||||
low: "#bbf7d0", | ||||||||||||||||||||||||||||||||||
medium: "#86efac", | ||||||||||||||||||||||||||||||||||
high: "#4ade80", | ||||||||||||||||||||||||||||||||||
max: "#f472b6", | ||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π οΈ Refactor suggestion μμ λ§€νμμ μΌκ΄μ± λ¬Έμ κ° μμ΅λλ€.
λ€μκ³Ό κ°μ΄ μμ μ μ μν©λλ€: colorMap: {
none: "#f0fdf4",
low: "#bbf7d0",
medium: "#86efac",
high: "#4ade80",
- max: "#f472b6",
+ max: "#16a34a", // λ μ§ν λ
Ήμ λλ ν©κΈμ "#fbbf24"
}, π Committable suggestion
Suggested change
π€ Prompt for AI Agents
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
export const themes: Record<string, ThemeStyle> = { | ||||||||||||||||||||||||||||||||||
hair: HairTheme, | ||||||||||||||||||||||||||||||||||
fire: FireTheme, | ||||||||||||||||||||||||||||||||||
plant: PlantTheme, | ||||||||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
export function getCommitLevel(commitCount: number): CommitLevel { | ||||||||||||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.