-
+
+
+
+
+
+
+
+
+
+
diff --git a/renderer/components/layouts/account.tsx b/renderer/components/layouts/account.tsx
index eba6f62e..3496cb52 100644
--- a/renderer/components/layouts/account.tsx
+++ b/renderer/components/layouts/account.tsx
@@ -1,4 +1,4 @@
-import { useContext, useEffect, useRef, useState } from 'react'
+import { CSSProperties, useContext, useEffect, useRef, useState } from 'react'
import { FaGear, FaPlus } from 'react-icons/fa6'
import { Account, db } from '@/db'
import NewAccount from '@/components/accounts/New'
@@ -18,6 +18,7 @@ export default function Layout({ children }: LayoutProps) {
const [accounts, setAccounts] = useState
>([])
const [openNewModal, setOpenNewModal] = useState(false)
const [openSettings, setOpenSettings] = useState(false)
+ const [style, setStyle] = useState({})
const { switchLang } = useContext(Context)
const router = useRouter()
const { formatMessage } = useIntl()
@@ -104,11 +105,17 @@ export default function Layout({ children }: LayoutProps) {
if (typeof localStorage !== 'undefined') {
const lang = localStorage.getItem('language')
switchLang(lang)
+ const fontSize = localStorage.getItem('fontSize')
+ if (parseInt(fontSize)) {
+ setStyle({
+ fontSize: `${fontSize}px`
+ })
+ }
}
}
return (
-
+