Skip to content

Commit

Permalink
feat: modify tray icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ayangweb committed Mar 13, 2023
1 parent 4839914 commit f100efe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Binary file added src-tauri/assets/tray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}
],
"systemTray": {
"iconPath": "icons/icon.png",
"iconPath": "assets/tray.png",
"iconAsTemplate": true
}
}
Expand Down
9 changes: 8 additions & 1 deletion src/components/Input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ const { currentRole, roleList } = storeToRefs(useRoleStore())
<!-- 角色选择 -->
<div class="w-10">
<a-popover title="请选择对话的角色" trigger="click">
<Avatar :value="currentRole?.name" />
<template #title>
<div class="flex items-center justify-between">
<span>请选择对话的角色</span>
<a-button type="outline">添加角色</a-button>
</div>
</template>

<Avatar class="cursor-pointer" :value="currentRole?.name" />
<template #content>
<a-list>
Expand Down

0 comments on commit f100efe

Please sign in to comment.