From 50bcd292717d8d25d160fbd48227b1ba20366a57 Mon Sep 17 00:00:00 2001 From: ajnart Date: Fri, 6 Jan 2023 01:07:09 +0900 Subject: [PATCH] Buttons styling --- .../header/Actions/AddElementAction/AddElementAction.tsx | 6 ++++-- src/components/layout/header/SettingsMenu.tsx | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/layout/header/Actions/AddElementAction/AddElementAction.tsx b/src/components/layout/header/Actions/AddElementAction/AddElementAction.tsx index 3c64032e2..b2b7af4c2 100644 --- a/src/components/layout/header/Actions/AddElementAction/AddElementAction.tsx +++ b/src/components/layout/header/Actions/AddElementAction/AddElementAction.tsx @@ -2,6 +2,7 @@ import { ActionIcon, Button, Tooltip } from '@mantine/core'; import { openContextModal } from '@mantine/modals'; import { IconApps } from '@tabler/icons'; import { useTranslation } from 'next-i18next'; +import { useColorTheme } from '../../../../../tools/color'; interface AddElementActionProps { type: 'action-icon' | 'button'; @@ -9,15 +10,16 @@ interface AddElementActionProps { export const AddElementAction = ({ type }: AddElementActionProps) => { const { t } = useTranslation('layout/element-selector/selector'); + const { primaryColor, secondaryColor } = useColorTheme(); switch (type) { case 'button': return (