Skip to content

Commit 9863f74

Browse files
authored
[hotCards] added silver and bronze default card style (#516)
* added silver and bronze default card style * bump yml-version to 1.2.2
1 parent 01ff1d6 commit 9863f74

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

plugins/hotCards/hotCards.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const CRITERIA = { tag: "t", rating: "r", disabled: "d" };
77
const STYLES = {
88
default: getDefaultStylePreset(),
99
hot: getHotStylePreset(),
10+
bronze: getBronzeStylePreset(),
11+
silver: getSilverStylePreset(),
1012
gold: getGoldStylePreset(),
1113
holo: getHoloStylePreset(),
1214
};
@@ -778,6 +780,46 @@ function getHotStylePreset() {
778780
); // 'blur(2.0rem)'
779781
}
780782

783+
function getBronzeStylePreset() {
784+
return createCardStyle(
785+
"#7f4f28",
786+
"6s ease-in-out infinite",
787+
"linear",
788+
"45deg",
789+
[
790+
"hsl(30, 20%, 40%)",
791+
"hsl(40, 25%, 30%)",
792+
"hsl(35, 20%, 25%)",
793+
"hsl(40, 35%, 40%)",
794+
"hsl(20, 35%, 20%)",
795+
"hsl(25, 20%, 35%)",
796+
"hsl(15, 30%, 45%)",
797+
"hsl(10, 35%, 25%)"
798+
],
799+
"8s ease-in-out infinite"
800+
);
801+
}
802+
803+
function getSilverStylePreset() {
804+
return createCardStyle(
805+
"#c0c0c0",
806+
"6s ease-in-out infinite",
807+
"linear",
808+
"45deg",
809+
[
810+
"hsl(200, 5%, 80%)",
811+
"hsl(200, 8%, 65%)",
812+
"hsl(200, 10%, 55%)",
813+
"hsl(200, 8%, 72%)",
814+
"hsl(200, 10%, 40%)",
815+
"hsl(200, 5%, 58%)",
816+
"hsl(200, 3%, 85%)",
817+
"hsl(200, 5%, 48%)"
818+
],
819+
"8s ease-in-out infinite"
820+
);
821+
}
822+
781823
function getGoldStylePreset() {
782824
return createCardStyle(
783825
"#d4af37",

plugins/hotCards/hotCards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Hot Cards
22
description: Adds custom styling to card elements that match a Tag ID or a Rating Threshold.
3-
version: 1.2.1
3+
version: 1.2.2
44
url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/hotCards
55
# requires: CommunityScriptsUILibrary
66
ui:

0 commit comments

Comments
 (0)