Compare commits

..

No commits in common. "244a1b002d01a8306612473edf49ff7cf89dfc4d" and "63c1a25f53b9ac7a4060b985847bab39f7d3d6a8" have entirely different histories.

2 changed files with 9 additions and 19 deletions

View File

@ -4,8 +4,6 @@ import {
Center, Center,
Flex, Flex,
HStack, HStack,
Icon,
IconButton,
Menu, Menu,
MenuButton, MenuButton,
MenuItem, MenuItem,
@ -23,7 +21,7 @@ import {
} from '@chakra-ui/react'; } from '@chakra-ui/react';
import { PanelQMCv2Key } from './panels/PanelQMCv2Key'; import { PanelQMCv2Key } from './panels/PanelQMCv2Key';
import { useState } from 'react'; import { useState } from 'react';
import { MdExpandMore, MdMenu, MdOutlineSettingsBackupRestore } from 'react-icons/md'; import { MdExpandMore, MdMenu } from 'react-icons/md';
import { useAppDispatch } from '~/hooks'; import { useAppDispatch } from '~/hooks';
import { commitStagingChange, discardStagingChanges } from './settingsSlice'; import { commitStagingChange, discardStagingChanges } from './settingsSlice';
@ -106,14 +104,9 @@ export function Settings() {
</Center> </Center>
<Spacer /> <Spacer />
<HStack gap="2" justifyContent="flex-end"> <HStack gap="2" justifyContent="flex-end">
<IconButton <Button onClick={handleResetSettings} colorScheme="red" variant="ghost" title="还原为更改前的状态">
icon={<Icon as={MdOutlineSettingsBackupRestore} />}
onClick={handleResetSettings} </Button>
colorScheme="red"
variant="ghost"
title="放弃未储存的更改,将设定还原为储存前的状态。"
aria-label="放弃未储存的更改"
/>
<Button onClick={handleApplySettings}></Button> <Button onClick={handleApplySettings}></Button>
</HStack> </HStack>
</Flex> </Flex>

View File

@ -45,25 +45,22 @@ export function PanelQMCv2Key() {
QMCv2 QMCv2
</Heading> </Heading>
<Text> <Text>QQ QMCv2 Mac </Text>
QQ QMCv2使QQ Mac iOS
线
</Text>
<Box pb={2} pt={2}> <Box pb={2} pt={2}>
<ButtonGroup isAttached colorScheme="purple" variant="outline"> <ButtonGroup isAttached variant="outline">
<Button onClick={addKey} leftIcon={<Icon as={MdAdd} />}> <Button onClick={addKey} leftIcon={<Icon as={MdAdd} />}>
</Button> </Button>
<Menu> <Menu>
<MenuButton as={IconButton} icon={<MdExpandMore />}></MenuButton> <MenuButton as={IconButton} icon={<MdExpandMore />}></MenuButton>
<MenuList> <MenuList>
<MenuItem onClick={() => setShowImportModal(true)} icon={<Icon as={MdFileUpload} boxSize={5} />}> <MenuItem onClick={() => setShowImportModal(true)} icon={<Icon as={MdFileUpload} boxSize={5} />}>
</MenuItem> </MenuItem>
<MenuDivider /> <MenuDivider />
<MenuItem color="red" onClick={clearAll} icon={<Icon as={MdDeleteForever} boxSize={5} />}> <MenuItem color="red" onClick={clearAll} icon={<Icon as={MdDeleteForever} boxSize={5} />}>
</MenuItem> </MenuItem>
</MenuList> </MenuList>
</Menu> </Menu>