Skip to content

Commit 2c102d7

Browse files
committed
Omny: Fix star for custom palettes
1 parent cc1c436 commit 2c102d7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/games/omny.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,11 @@ export class OmnyGame extends GameBase {
797797
name: "star-solid",
798798
colour: {
799799
func: "flatten",
800-
fg: "_context_fill",
800+
fg: {
801+
func: "bestContrast",
802+
bg: 1,
803+
fg: ["#ffffff", "#000000"]
804+
},
801805
bg: 1,
802806
opacity: 0.25,
803807
},
@@ -813,7 +817,11 @@ export class OmnyGame extends GameBase {
813817
name: "star-solid",
814818
colour: {
815819
func: "flatten",
816-
fg: "_context_fill",
820+
fg: {
821+
func: "bestContrast",
822+
bg: 2,
823+
fg: ["#ffffff", "#000000"]
824+
},
817825
bg: 2,
818826
opacity: 0.25,
819827
},

0 commit comments

Comments
 (0)