Skip to content

Commit

Permalink
Build index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 15, 2024
1 parent f44aa6e commit 1fb60c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73817,7 +73817,7 @@ async function draw(game) {
{
x: 8,
y: 84,
fill: "#c9d1d9",
fill: TEXT_WHITE,
"font-family": "Arial",
"dominant-baseline": "text-top",
"text-anchor": "start",
Expand All @@ -73831,7 +73831,7 @@ async function draw(game) {
{
x: 8,
y: 97,
fill: "#c9d1d9",
fill: TEXT_WHITE,
"font-family": "Arial",
"dominant-baseline": "text-top",
"text-anchor": "start",
Expand All @@ -73858,7 +73858,7 @@ async function drawOther({ id, name, time2w, timeTotal, imgIco }, positionY) {
`http://media.steampowered.com/steamcommunity/public/images/apps/${id}/${imgIco}.jpg`,
);
const dominantColor = await getDominantColor(imgBuffer);
const textColor = dominantColor.isDark() ? "#c9d1d9" : "#24292f";
const textColor = dominantColor.isDark() ? TEXT_WHITE : TEXT_BLACK;

const playtimeText = `${mapTime(time2w)} / ${mapTime(timeTotal)}`;
const playtimeWidth = measureText(playtimeText, "Arial", 11);
Expand Down

0 comments on commit 1fb60c9

Please sign in to comment.