Skip to content

Commit

Permalink
chore(version): 0.8.16
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Nov 20, 2024
1 parent 697c3b1 commit 75e396e
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 21 deletions.
11 changes: 3 additions & 8 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ electronDownload:
afterSign: scripts/notarize.js
releaseInfo:
releaseNotes: |
话题搜索修改为弹窗模式
设置界面样式调整
增加APP数据目录显示
增加代码折叠功能
修复编辑消息后没有保存的问题
修复一些视觉模型不能识别问题
修复一些特殊的数据会导致APP启动后崩溃问题
修复备份文件在某些情况下无法恢复问题
修复系统代理默认设置问题
恢复设置面板模型参数选项
界面样式微调
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CherryStudio",
"version": "0.8.15",
"version": "0.8.16",
"private": true,
"description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/main/services/AppUpdater.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BrowserWindow, dialog } from 'electron'
import { app, BrowserWindow, dialog } from 'electron'
import logger from 'electron-log'
import { AppUpdater as _AppUpdater, autoUpdater, UpdateInfo } from 'electron-updater'

Expand Down Expand Up @@ -47,6 +47,7 @@ export default class AppUpdater {
})
.then(({ response }) => {
if (response === 1) {
app.isQuitting = true
setImmediate(() => autoUpdater.quitAndInstall())
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--color-white-soft: rgba(255, 255, 255, 0.8);
--color-white-mute: rgba(255, 255, 255, 0.94);

--color-black: #121212;
--color-black: #0f0f0f;
--color-black-soft: #191919;
--color-black-mute: #242424;

Expand Down
11 changes: 5 additions & 6 deletions src/renderer/src/context/AntdProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,20 @@ const AntdProvider: FC<PropsWithChildren> = ({ children }) => {
trackBg: 'transparent',
itemSelectedBg: isDarkTheme ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)',
boxShadowTertiary: undefined,
borderRadiusLG: 6,
borderRadiusSM: 6,
borderRadiusXS: 6
borderRadiusLG: 12,
borderRadiusSM: 12,
borderRadiusXS: 12
},
Menu: {
activeBarBorderWidth: 0,
darkItemBg: 'transparent'
},
Modal: {
colorBgMask: isDarkTheme ? 'rgba(0, 0, 0, 0.85)' : 'rgba(255, 255, 255, 0.9)'
colorBgMask: isDarkTheme ? 'rgba(0, 0, 0, 0.85)' : 'rgba(255, 255, 255, 0.8)'
}
},
token: {
colorPrimary: '#00b96b',
borderRadius: 6
colorPrimary: '#00b96b'
}
}}>
{children}
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/pages/home/Tabs/AssistantsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const Assistants: FC<Props> = ({
suffix={<CommandKey>⌘+K</CommandKey>}
value={search}
onChange={(e) => setSearch(e.target.value)}
style={{ borderWidth: 0.5 }}
style={{ borderRadius: 16, borderWidth: 0.5 }}
onKeyDown={onSearch}
ref={searchRef}
onFocus={() => dispatch(setSearching(true))}
Expand Down Expand Up @@ -251,7 +251,7 @@ const AssistantItem = styled.div`
margin: 0 10px;
padding-right: 35px;
font-family: Ubuntu;
border-radius: 6px;
border-radius: 17px;
cursor: pointer;
.iconfont {
opacity: 0;
Expand Down
9 changes: 7 additions & 2 deletions src/renderer/src/pages/home/Tabs/TopicsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
const generating = useAppSelector((state) => state.runtime.generating)
const { showTopicTime, topicPosition } = useSettings()

const borderRadius = showTopicTime ? 12 : 17

const onDeleteTopic = useCallback(
(topic: Topic) => {
if (generating) {
Expand Down Expand Up @@ -190,7 +192,10 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
const isActive = topic.id === activeTopic?.id
return (
<Dropdown menu={{ items: getTopicMenuItems(topic) }} trigger={['contextMenu']} key={topic.id}>
<TopicListItem className={isActive ? 'active' : ''} onClick={() => onSwitchTopic(topic)}>
<TopicListItem
className={isActive ? 'active' : ''}
style={{ borderRadius }}
onClick={() => onSwitchTopic(topic)}>
<TopicName className="name">{topic.name.replace('`', '')}</TopicName>
{showTopicTime && <TopicTime>{dayjs(topic.createdAt).format('MM/DD HH:mm')}</TopicTime>}
{isActive && (
Expand Down Expand Up @@ -225,7 +230,7 @@ const Container = styled(Scrollbar)`
const TopicListItem = styled.div`
padding: 7px 12px;
margin: 0 10px;
border-radius: 6px;
border-radius: 17px;
font-family: Ubuntu;
font-size: 13px;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const DropdownButton = styled(Button)`
border-radius: 15px;
padding: 12px 8px 12px 3px;
-webkit-app-region: none;
box-shadow: none;
`

const ModelName = styled.span`
Expand Down

0 comments on commit 75e396e

Please sign in to comment.