feat(i18n): Add cherrycss.com link to custom CSS settings across locales
This commit is contained in:
parent
ff55739376
commit
516315ac45
@ -677,6 +677,7 @@
|
||||
},
|
||||
"display.custom.css": "Custom CSS",
|
||||
"display.custom.css.placeholder": "/* Put custom CSS here */",
|
||||
"display.custom.css.cherrycss": "Get from cherrycss.com",
|
||||
"display.minApp.disabled": "Hidden MinApp",
|
||||
"display.minApp.empty": "Drag minApp from the left to hide them here",
|
||||
"display.minApp.title": "MinApp Settings",
|
||||
|
||||
@ -677,6 +677,7 @@
|
||||
},
|
||||
"display.custom.css": "カスタムCSS",
|
||||
"display.custom.css.placeholder": "/* ここにカスタムCSSを入力 */",
|
||||
"display.custom.css.cherrycss": "cherrycss.comから取得",
|
||||
"display.minApp.disabled": "非表示ミニプログラム",
|
||||
"display.minApp.empty": "非表示にしたいアプレットを左からここまでドラッグします",
|
||||
"display.minApp.title": "ミニプログラム表示設定",
|
||||
@ -926,4 +927,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -677,6 +677,7 @@
|
||||
},
|
||||
"display.custom.css": "Пользовательский CSS",
|
||||
"display.custom.css.placeholder": "/* Здесь введите пользовательский CSS */",
|
||||
"display.custom.css.cherrycss": "Получить из cherrycss.com",
|
||||
"display.minApp.disabled": "скрытый апплет",
|
||||
"display.minApp.empty": "Перетащите апплет, который хотите скрыть, слева сюда",
|
||||
"display.minApp.title": "Настройки отображения мини программы",
|
||||
|
||||
@ -677,6 +677,7 @@
|
||||
},
|
||||
"display.custom.css": "自定义 CSS",
|
||||
"display.custom.css.placeholder": "/* 这里写自定义CSS */",
|
||||
"display.custom.css.cherrycss": "从 cherrycss.com 获取",
|
||||
"display.minApp.disabled": "隐藏的小程序",
|
||||
"display.minApp.empty": "把要隐藏的小程序从左侧拖拽到这里",
|
||||
"display.minApp.title": "小程序显示设置",
|
||||
|
||||
@ -677,6 +677,7 @@
|
||||
},
|
||||
"display.custom.css": "自定義 CSS",
|
||||
"display.custom.css.placeholder": "/* 這裡寫自定義 CSS */",
|
||||
"display.custom.css.cherrycss": "從 cherrycss.com 獲取",
|
||||
"display.minApp.disabled": "隱藏的小程序",
|
||||
"display.minApp.empty": "把要隱藏的小程序從左側拖拽到這裡",
|
||||
"display.minApp.title": "小程序顯示設定",
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
import { SyncOutlined } from '@ant-design/icons'
|
||||
import MinApp from '@renderer/components/MinApp'
|
||||
import { isMac } from '@renderer/config/constant'
|
||||
import { AppLogo } from '@renderer/config/env'
|
||||
import { DEFAULT_MIN_APPS } from '@renderer/config/minapps'
|
||||
import { useTheme } from '@renderer/context/ThemeProvider'
|
||||
import { useMinapps } from '@renderer/hooks/useMinapps'
|
||||
@ -102,14 +100,7 @@ const DisplaySettings: FC = () => {
|
||||
],
|
||||
[t]
|
||||
)
|
||||
const onOpenCherrycss = () => {
|
||||
MinApp.start({
|
||||
id: 'cherrycss',
|
||||
name: 'Cherry Studio Theme Gallery',
|
||||
url: 'https://cherrycss.com/',
|
||||
logo: AppLogo
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<SettingContainer theme={themeMode}>
|
||||
<SettingGroup theme={theme}>
|
||||
@ -205,7 +196,9 @@ const DisplaySettings: FC = () => {
|
||||
<SettingGroup theme={theme}>
|
||||
<SettingTitle>
|
||||
{t('settings.display.custom.css')}
|
||||
<TitleExtra onClick={onOpenCherrycss}>从cherrycss获取</TitleExtra>
|
||||
<TitleExtra onClick={() => window.api.openWebsite('https://cherrycss.com/')}>
|
||||
{t('settings.display.custom.css.cherrycss')}
|
||||
</TitleExtra>
|
||||
</SettingTitle>
|
||||
<SettingDivider />
|
||||
<Input.TextArea
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user