diff --git a/src/app/theme.ts b/src/app/theme.ts index a46121cd0..c65b7a75a 100644 --- a/src/app/theme.ts +++ b/src/app/theme.ts @@ -4,16 +4,26 @@ import { hoverColor } from "~/utils" const theme: HopeThemeConfig = { initialColorMode: "system", lightTheme: { + radii: { + xl: "14px", + "2xl": "16px", + }, colors: { // background: "$neutral2", background: "#f7f8fa", }, }, + darkTheme: { + radii: { + xl: "14px", + "2xl": "16px", + }, + }, components: { Button: { baseStyle: { root: { - rounded: "$lg", + rounded: "$xl", _active: { transform: "scale(.95)", transition: "0.2s", @@ -39,7 +49,7 @@ const theme: HopeThemeConfig = { Input: { baseStyle: { input: { - rounded: "$lg", + rounded: "$xl", _focus: { boxShadow: "unset", borderColor: "$info8", @@ -54,7 +64,7 @@ const theme: HopeThemeConfig = { }, Textarea: { baseStyle: { - rounded: "$lg", + rounded: "$xl", _focus: { boxShadow: "unset", borderColor: "$info8", @@ -69,7 +79,7 @@ const theme: HopeThemeConfig = { Select: { baseStyle: { trigger: { - rounded: "$lg", + rounded: "$2xl", _focus: { boxShadow: "unset", borderColor: "$info8", @@ -77,7 +87,14 @@ const theme: HopeThemeConfig = { }, content: { border: "none", - rounded: "$lg", + rounded: "$2xl", + }, + option: { + rounded: "$xl", + mx: "$1", + _hover: { + rounded: "$xl", + }, }, optionIndicator: { color: "$info10", @@ -107,13 +124,13 @@ const theme: HopeThemeConfig = { Menu: { baseStyle: { content: { - rounded: "$md", + rounded: "$2xl", minW: "unset", border: "unset", // py: "0", }, item: { - rounded: "$md", + rounded: "$xl", py: "$1", // mx: "0", }, @@ -122,7 +139,7 @@ const theme: HopeThemeConfig = { Notification: { baseStyle: { root: { - rounded: "$lg", + rounded: "$xl", border: "unset", }, }, @@ -130,13 +147,13 @@ const theme: HopeThemeConfig = { Alert: { baseStyle: { root: { - rounded: "$lg", + rounded: "$xl", }, }, }, Anchor: { baseStyle: { - rounded: "$lg", + rounded: "$xl", px: "$1_5", py: "$1", _hover: { @@ -152,7 +169,7 @@ const theme: HopeThemeConfig = { Modal: { baseStyle: { content: { - rounded: "$lg", + rounded: "$2xl", }, }, }, @@ -198,6 +215,16 @@ export const globalStyles = globalCss({ }, }, }, + ".solid-contextmenu, .solid-contextmenu .solid-contextmenu__submenu": { + borderRadius: "$2xl !important", + }, + ".solid-contextmenu": { + padding: "$1 0 !important", + }, + ".solid-contextmenu__item__content": { + margin: "0 $1", + borderRadius: "$xl", + }, }) export { theme } diff --git a/src/lang/en/drivers.json b/src/lang/en/drivers.json index 36ec2bb46..9ce3ca4e4 100755 --- a/src/lang/en/drivers.json +++ b/src/lang/en/drivers.json @@ -215,6 +215,12 @@ "url": "Url", "username": "Username" }, + "AliDoc": { + "cookie": "Cookie", + "cookie-tips": "DingTalk document web cookie", + "root_folder_id": "Root folder id", + "root_folder_id-tips": "The dentryUuid of the DingTalk document root folder" + }, "Alias": { "details_pass_through": "Details pass through", "download_concurrency": "Download concurrency", @@ -1472,6 +1478,9 @@ "189CloudPC": {}, "189CloudTV": {}, "AList V3": {}, + "AliDoc": { + "alert": "This driver supports accessing DingDrive through DingTalk Docs and is currently read-only." + }, "Alias": {}, "Aliyundrive": { "alert": "There may be an infinite loop bug in this driver.\nDeprecated, no longer maintained and will be removed in a future version.\nWe recommend using the official driver AliyundriveOpen." @@ -1568,6 +1577,7 @@ "189CloudPC": "189CloudPC", "189CloudTV": "189CloudTV", "AList V3": "AList V3", + "AliDoc": "AliDoc", "Alias": "Alias", "Aliyundrive": "Aliyundrive", "AliyundriveOpen": "AliyundriveOpen", diff --git a/src/pages/home/folder/ListItem.tsx b/src/pages/home/folder/ListItem.tsx index 4893a598d..382ee6222 100644 --- a/src/pages/home/folder/ListItem.tsx +++ b/src/pages/home/folder/ListItem.tsx @@ -71,7 +71,7 @@ export const ListItem = (props: { obj: StoreObj; index: number }) => { data-index={props.index} w="$full" p="$2" - rounded="$lg" + rounded="$2xl" transition="all 0.3s" _hover={{ transform: "scale(1.01)", diff --git a/src/pages/manage/storages/Storage.tsx b/src/pages/manage/storages/Storage.tsx index 53402a81d..7d9aac917 100644 --- a/src/pages/manage/storages/Storage.tsx +++ b/src/pages/manage/storages/Storage.tsx @@ -111,7 +111,7 @@ export function StorageGridItem(props: StorageProps) {