Skip to content

Commit 2b5589a

Browse files
authored
feat: Add black and white variants (#19)
Closes #17
1 parent 7e83713 commit 2b5589a

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

addons/plenticons/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="plenticons"
44
description="A library of icons for your custom nodes!"
55
author="Tamás Gálffy"
6-
version="0.8.3"
6+
version="0.9.0"
77
script="plenticons.gd"

sh/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ declare -A COLORS=(\
77
["blue"]="#8da5f3"
88
["green"]="#8eef97"
99
["yellow"]="#ffca5f"
10+
["white"]="#ffffff"
11+
["black"]="#000000"
1012
)
1113

1214
BASE_COLOR="${COLORS[red]}"
@@ -24,7 +26,7 @@ for CATEGORY in $CATEGORIES; do
2426
mkdir -p "build/bundle/icons/16x/$CATEGORY"
2527
mkdir -p "build/site/icons/$CATEGORY"
2628

27-
ICONS="$(find "icons/$CATEGORY" -type f -name *.svg)"
29+
ICONS="$(find "icons/$CATEGORY" -type f -name "*.svg")"
2830
for ICON in $ICONS; do
2931
ICON="$(basename "$ICON")"
3032
ICON="${ICON%.*}"

site/css/style.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
--variant-green: #8eef97;
1717
--variant-yellow: #ffca5f;
1818
--variant-gray: #e0e0e0;
19+
--variant-white: #ffffff;
20+
--variant-black: #000000;
1921
}
2022

2123
body {
@@ -93,6 +95,10 @@ input {
9395
border-radius: 1em;
9496
}
9597

98+
.variant-color-gray {
99+
background-color: var(--variant-gray);
100+
}
101+
96102
.variant-color-red {
97103
background-color: var(--variant-red);
98104
}
@@ -109,8 +115,12 @@ input {
109115
background-color: var(--variant-yellow);
110116
}
111117

112-
.variant-color-gray {
113-
background-color: var(--variant-gray);
118+
.variant-color-white {
119+
background-color: var(--variant-white);
120+
}
121+
122+
.variant-color-black {
123+
background-color: var(--variant-black);
114124
}
115125

116126
img.icon-inline {

site/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const VARIANTS = ['gray', 'red', 'blue', 'green', 'yellow']
1+
const VARIANTS = ['gray', 'red', 'blue', 'green', 'yellow', 'white', 'black']
22
const MANIFEST = {}
33

44
class Icon extends HTMLElement {

0 commit comments

Comments
 (0)