Fix collar

This commit is contained in:
Idrees Hassan
2026-03-11 16:14:12 -07:00
parent 71b74c9b6f
commit 1d4c1a000e
9 changed files with 19 additions and 0 deletions

Binary file not shown.

BIN
dist/extension.zip vendored

Binary file not shown.

View File

@@ -416,6 +416,7 @@
EYEBROW: "eyebrow",
NOSE: "nose",
CHEEK: "cheek",
COLLAR: "collar",
BELLY: "belly",
UNDERBELLY: "underbelly",
WING: "wing",
@@ -443,6 +444,7 @@
"#ff5573": PALETTE.EYEBROW,
"#d95763": PALETTE.NOSE,
"#ff67a9": PALETTE.CHEEK,
"#ffe955": PALETTE.COLLAR,
"#f8b143": PALETTE.BELLY,
"#ec8637": PALETTE.UNDERBELLY,
"#578ae6": PALETTE.WING,
@@ -477,6 +479,7 @@
[PALETTE.EYEBROW]: colors.face,
[PALETTE.NOSE]: colors.face,
[PALETTE.CHEEK]: colors.face,
[PALETTE.COLLAR]: colors.face,
};
/** @type {Record<string, string>} */
this.colors = { ...defaultColors, ...colors, [PALETTE.THEME_HIGHLIGHT]: colors[PALETTE.THEME_HIGHLIGHT] ?? colors.hood ?? colors.face };

View File

@@ -421,6 +421,7 @@ module.exports = class PocketBird extends Plugin {
EYEBROW: "eyebrow",
NOSE: "nose",
CHEEK: "cheek",
COLLAR: "collar",
BELLY: "belly",
UNDERBELLY: "underbelly",
WING: "wing",
@@ -448,6 +449,7 @@ module.exports = class PocketBird extends Plugin {
"#ff5573": PALETTE.EYEBROW,
"#d95763": PALETTE.NOSE,
"#ff67a9": PALETTE.CHEEK,
"#ffe955": PALETTE.COLLAR,
"#f8b143": PALETTE.BELLY,
"#ec8637": PALETTE.UNDERBELLY,
"#578ae6": PALETTE.WING,
@@ -482,6 +484,7 @@ module.exports = class PocketBird extends Plugin {
[PALETTE.EYEBROW]: colors.face,
[PALETTE.NOSE]: colors.face,
[PALETTE.CHEEK]: colors.face,
[PALETTE.COLLAR]: colors.face,
};
/** @type {Record<string, string>} */
this.colors = { ...defaultColors, ...colors, [PALETTE.THEME_HIGHLIGHT]: colors[PALETTE.THEME_HIGHLIGHT] ?? colors.hood ?? colors.face };

View File

@@ -430,6 +430,7 @@
EYEBROW: "eyebrow",
NOSE: "nose",
CHEEK: "cheek",
COLLAR: "collar",
BELLY: "belly",
UNDERBELLY: "underbelly",
WING: "wing",
@@ -457,6 +458,7 @@
"#ff5573": PALETTE.EYEBROW,
"#d95763": PALETTE.NOSE,
"#ff67a9": PALETTE.CHEEK,
"#ffe955": PALETTE.COLLAR,
"#f8b143": PALETTE.BELLY,
"#ec8637": PALETTE.UNDERBELLY,
"#578ae6": PALETTE.WING,
@@ -491,6 +493,7 @@
[PALETTE.EYEBROW]: colors.face,
[PALETTE.NOSE]: colors.face,
[PALETTE.CHEEK]: colors.face,
[PALETTE.COLLAR]: colors.face,
};
/** @type {Record<string, string>} */
this.colors = { ...defaultColors, ...colors, [PALETTE.THEME_HIGHLIGHT]: colors[PALETTE.THEME_HIGHLIGHT] ?? colors.hood ?? colors.face };

View File

@@ -416,6 +416,7 @@
EYEBROW: "eyebrow",
NOSE: "nose",
CHEEK: "cheek",
COLLAR: "collar",
BELLY: "belly",
UNDERBELLY: "underbelly",
WING: "wing",
@@ -443,6 +444,7 @@
"#ff5573": PALETTE.EYEBROW,
"#d95763": PALETTE.NOSE,
"#ff67a9": PALETTE.CHEEK,
"#ffe955": PALETTE.COLLAR,
"#f8b143": PALETTE.BELLY,
"#ec8637": PALETTE.UNDERBELLY,
"#578ae6": PALETTE.WING,
@@ -477,6 +479,7 @@
[PALETTE.EYEBROW]: colors.face,
[PALETTE.NOSE]: colors.face,
[PALETTE.CHEEK]: colors.face,
[PALETTE.COLLAR]: colors.face,
};
/** @type {Record<string, string>} */
this.colors = { ...defaultColors, ...colors, [PALETTE.THEME_HIGHLIGHT]: colors[PALETTE.THEME_HIGHLIGHT] ?? colors.hood ?? colors.face };

3
dist/web/birb.js vendored
View File

@@ -416,6 +416,7 @@
EYEBROW: "eyebrow",
NOSE: "nose",
CHEEK: "cheek",
COLLAR: "collar",
BELLY: "belly",
UNDERBELLY: "underbelly",
WING: "wing",
@@ -443,6 +444,7 @@
"#ff5573": PALETTE.EYEBROW,
"#d95763": PALETTE.NOSE,
"#ff67a9": PALETTE.CHEEK,
"#ffe955": PALETTE.COLLAR,
"#f8b143": PALETTE.BELLY,
"#ec8637": PALETTE.UNDERBELLY,
"#578ae6": PALETTE.WING,
@@ -477,6 +479,7 @@
[PALETTE.EYEBROW]: colors.face,
[PALETTE.NOSE]: colors.face,
[PALETTE.CHEEK]: colors.face,
[PALETTE.COLLAR]: colors.face,
};
/** @type {Record<string, string>} */
this.colors = { ...defaultColors, ...colors, [PALETTE.THEME_HIGHLIGHT]: colors[PALETTE.THEME_HIGHLIGHT] ?? colors.hood ?? colors.face };

View File

@@ -17,6 +17,7 @@ const DEFAULT_OVERRIDES = {
"eyebrow": "face",
"nose": "face",
"cheek": "face",
"collar": "face",
};
const IGNORED_PARTS = new Set(
["transparent", "border", "heart", "heart-border", "heart-shine", "feather-spine"]

View File

@@ -17,6 +17,7 @@ export const PALETTE = {
EYEBROW: "eyebrow",
NOSE: "nose",
CHEEK: "cheek",
COLLAR: "collar",
BELLY: "belly",
UNDERBELLY: "underbelly",
WING: "wing",
@@ -44,6 +45,7 @@ export const SPRITE_SHEET_COLOR_MAP = {
"#ff5573": PALETTE.EYEBROW,
"#d95763": PALETTE.NOSE,
"#ff67a9": PALETTE.CHEEK,
"#ffe955": PALETTE.COLLAR,
"#f8b143": PALETTE.BELLY,
"#ec8637": PALETTE.UNDERBELLY,
"#578ae6": PALETTE.WING,
@@ -78,6 +80,7 @@ export class BirdType {
[PALETTE.EYEBROW]: colors.face,
[PALETTE.NOSE]: colors.face,
[PALETTE.CHEEK]: colors.face,
[PALETTE.COLLAR]: colors.face,
};
/** @type {Record<string, string>} */
this.colors = { ...defaultColors, ...colors, [PALETTE.THEME_HIGHLIGHT]: colors[PALETTE.THEME_HIGHLIGHT] ?? colors.hood ?? colors.face };