Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 38 additions & 11 deletions src/app/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -39,7 +49,7 @@ const theme: HopeThemeConfig = {
Input: {
baseStyle: {
input: {
rounded: "$lg",
rounded: "$xl",
_focus: {
boxShadow: "unset",
borderColor: "$info8",
Expand All @@ -54,7 +64,7 @@ const theme: HopeThemeConfig = {
},
Textarea: {
baseStyle: {
rounded: "$lg",
rounded: "$xl",
_focus: {
boxShadow: "unset",
borderColor: "$info8",
Expand All @@ -69,15 +79,22 @@ const theme: HopeThemeConfig = {
Select: {
baseStyle: {
trigger: {
rounded: "$lg",
rounded: "$2xl",
_focus: {
boxShadow: "unset",
borderColor: "$info8",
},
},
content: {
border: "none",
rounded: "$lg",
rounded: "$2xl",
},
option: {
rounded: "$xl",
mx: "$1",
_hover: {
rounded: "$xl",
},
},
optionIndicator: {
color: "$info10",
Expand Down Expand Up @@ -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",
},
Expand All @@ -122,21 +139,21 @@ const theme: HopeThemeConfig = {
Notification: {
baseStyle: {
root: {
rounded: "$lg",
rounded: "$xl",
border: "unset",
},
},
},
Alert: {
baseStyle: {
root: {
rounded: "$lg",
rounded: "$xl",
},
},
},
Anchor: {
baseStyle: {
rounded: "$lg",
rounded: "$xl",
px: "$1_5",
py: "$1",
_hover: {
Expand All @@ -152,7 +169,7 @@ const theme: HopeThemeConfig = {
Modal: {
baseStyle: {
content: {
rounded: "$lg",
rounded: "$2xl",
},
},
},
Expand Down Expand Up @@ -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 }
10 changes: 10 additions & 0 deletions src/lang/en/drivers.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -1568,6 +1577,7 @@
"189CloudPC": "189CloudPC",
"189CloudTV": "189CloudTV",
"AList V3": "AList V3",
"AliDoc": "AliDoc",
"Alias": "Alias",
"Aliyundrive": "Aliyundrive",
"AliyundriveOpen": "AliyundriveOpen",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/folder/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/manage/storages/Storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function StorageGridItem(props: StorageProps) {
<VStack
w="$full"
spacing="$2"
rounded="$lg"
rounded="$2xl"
border="1px solid $neutral7"
background={useColorModeValue("$neutral2", "$neutral3")()}
// alignItems="start"
Expand Down