From 739048044cccbd08dfb24781d8086b3cf11ffa3a Mon Sep 17 00:00:00 2001 From: Vikeo Date: Wed, 22 May 2024 10:49:03 +0200 Subject: [PATCH] update colors --- package.json | 2 +- src/Components/Dialogs/Dialog.tsx | 6 +-- src/Components/Dialogs/SettingsDialog.tsx | 4 +- src/Components/Players/PlayerMenu.tsx | 6 +-- src/Components/PreStartGame/Games/Trivia.tsx | 4 +- src/Icons/generated/Close.tsx | 45 ++++++++++++++++++++ src/Icons/generated/index.ts | 1 + src/Icons/svgs/Close.svg | 5 +++ tailwind.config.ts | 19 ++++----- 9 files changed, 70 insertions(+), 22 deletions(-) create mode 100644 src/Icons/generated/Close.tsx create mode 100644 src/Icons/svgs/Close.svg diff --git a/package.json b/package.json index 66894ee..6f2bc12 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "life-trinket", "private": true, - "version": "0.9.91", + "version": "0.9.92", "type": "commonjs", "engines": { "node": ">=20", diff --git a/src/Components/Dialogs/Dialog.tsx b/src/Components/Dialogs/Dialog.tsx index 0a88ce7..66c3643 100644 --- a/src/Components/Dialogs/Dialog.tsx +++ b/src/Components/Dialogs/Dialog.tsx @@ -1,5 +1,5 @@ import { useEffect } from 'react'; -import { Cross } from '../../Icons/generated'; +import { Close } from '../../Icons/generated'; import { useAnalytics } from '../../Hooks/useAnalytics'; import { Separator } from '../Misc/Separator'; @@ -42,9 +42,9 @@ export const Dialog: React.FC<{ analytics.trackEvent(`${id}_cross_clicked`); dialogRef.current?.close(); }} - className="flex absolute -top-2 right-2 z-10 w-10 h-10 bg-primary-main items-center justify-center rounded-full border-solid border-primary-dark border-2" + className="flex absolute -top-2 right-2 z-10 w-10 h-10 bg-background-default rounded-full" > - +
diff --git a/src/Components/Dialogs/SettingsDialog.tsx b/src/Components/Dialogs/SettingsDialog.tsx index 58eb5f0..332c4d9 100644 --- a/src/Components/Dialogs/SettingsDialog.tsx +++ b/src/Components/Dialogs/SettingsDialog.tsx @@ -135,7 +135,7 @@ export const SettingsDialog = ({ name="pre-start-modes" id="pre-start-modes" value={settings.preStartMode} - className="bg-primary-main border-none outline-none text-text-primary rounded-md p-1 text-xs disabled:bg-primary-dark" + className="bg-secondary-main border-none outline-none text-text-primary rounded-md p-1 text-xs disabled:saturate-50 font-semibold" onChange={(e) => { setSettings({ ...settings, @@ -223,7 +223,7 @@ export const SettingsDialog = ({
diff --git a/src/Components/PreStartGame/Games/Trivia.tsx b/src/Components/PreStartGame/Games/Trivia.tsx index f49b549..beb4245 100644 --- a/src/Components/PreStartGame/Games/Trivia.tsx +++ b/src/Components/PreStartGame/Games/Trivia.tsx @@ -122,7 +122,7 @@ export const Trivia = () => { return (
setPlaying(true)} >