Skip to content

Commit

Permalink
add: theme red rain
Browse files Browse the repository at this point in the history
  • Loading branch information
max1mde committed Nov 28, 2024
1 parent 5e0f08c commit 65d3870
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/common/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,32 @@ class Card {
<rect x="0" y="0" width="${this.width}" height="${this.height}" fill="#000000" opacity="${this.dark_bg / 10}" />
</g>
`,

red_rain: `
<defs>
<mask id="${maskId}" x="0" y="0" width="${this.width}" height="99%">
<rect x="0" y="0" width="${this.width - 1}" height="99%" rx="${this.border_radius}" fill="white"/>
</mask>
</defs>
<g class="parallax-background" mask="url(#${maskId})">
<defs>
<linearGradient id="rainGradient" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="#003e61"/>
<stop offset="100%" stop-color="#A13C5C"/>
</linearGradient>
</defs>
<rect x="0" y="0" width="${this.width}" height="${this.height}" fill="url(#rainGradient)" class="sky"/>
<g class="rain-container">
${this.renderRainDrops()}
</g>
<rect x="0" y="0" width="${this.width}" height="${this.height}" fill="#000000" opacity="${this.dark_bg / 10}" />
</g>
`,
snow: `
Expand Down
7 changes: 7 additions & 0 deletions themes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,13 @@ export const themes = {
bg_color: "transparent",
border_color: "ffffff",
},
red_rain: {
title_color: "ffffff",
icon_color: "ffffff",
text_color: "ffffff",
bg_color: "transparent",
border_color: "ffffff",
},
snow: {
title_color: "ffffff",
icon_color: "ffffff",
Expand Down

0 comments on commit 65d3870

Please sign in to comment.