MCPcopy Create free account
hub / github.com/experdot/pointer / AppContent

Function AppContent

src/renderer/src/App.tsx:10–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import UpdateNotification from './components/common/UpdateNotification'
9
10function AppContent(): React.JSX.Element {
11 const { settings } = useSettingsStore()
12
13 // 根据字体大小设置获取基础字号
14 const getFontSize = () => {
15 switch (settings.fontSize) {
16 case 'small':
17 return 12
18 case 'large':
19 return 16
20 case 'medium':
21 default:
22 return 14
23 }
24 }
25
26 return (
27 <ConfigProvider
28 locale={zhCN}
29 theme={{
30 algorithm: theme.defaultAlgorithm,
31 token: {
32 colorPrimary: '#1890ff',
33 fontSize: getFontSize()
34 }
35 }}
36 >
37 <AntdApp>
38 <UpdateNotification />
39 <ZustandAppProvider>
40 <Layout />
41 </ZustandAppProvider>
42 </AntdApp>
43 </ConfigProvider>
44 )
45}
46
47function App(): React.JSX.Element {
48 return (

Callers

nothing calls this directly

Calls 1

getFontSizeFunction · 0.85

Tested by

no test coverage detected