Skip to content
This repository was archived by the owner on Jan 3, 2026. It is now read-only.

Commit 107d685

Browse files
authored
Merge pull request #38 from CKylinMC:dev
Fix feedback link and theme initialization in light mode
2 parents 989fc68 + cf9c877 commit 107d685

File tree

9 files changed

+32
-52
lines changed

9 files changed

+32
-52
lines changed

components.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ declare module 'vue' {
2020
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
2121
NIcon: typeof import('naive-ui')['NIcon']
2222
NInput: typeof import('naive-ui')['NInput']
23-
NInputvFocus: typeof import('naive-ui')['NInputvFocus']
2423
NList: typeof import('naive-ui')['NList']
2524
NListItem: typeof import('naive-ui')['NListItem']
2625
NModal: typeof import('naive-ui')['NModal']

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "pasteme",
33
"private": true,
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pasteme"
3-
version = "1.2.1"
3+
version = "1.2.2"
44
description = "A simple clipboard manager"
55
authors = ["CKylinMC"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "PasteMe",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"identifier": "in.ckyl.pasteme",
66
"build": {
77
"beforeDevCommand": "yarn dev",

src/AppInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const AppInfo = {
2-
version: "1.2.1",
2+
version: "1.2.2",
33
};

src/components/KeySelector.vue

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const props = defineProps({
1414
},
1515
keytip: {
1616
type: String,
17-
default: '请按键...',
17+
default: '请按键...(ESC取消,退格清空)',
1818
},
1919
hovertip: {
2020
type: String,
@@ -209,31 +209,37 @@ onBeforeUnmount(() => {
209209
margin: 1px 5px;
210210
display: inline-block;
211211
transition: 0.3s;
212+
background: #b9b9b91a;
213+
color: rgb(0, 0, 0);
214+
border: 2px solid rgba(128, 128, 128, 0.116);
215+
}
216+
.dark .keyBox {
212217
background: #383838;
213218
color: white;
214219
border: 2px solid rgba(128, 128, 128, 0.116);
215220
}
216221
.keyBox:hover {
222+
background: rgba(97, 97, 97, 0.13);
223+
border: 2px solid rgba(128, 128, 128, 0.216);
224+
}
225+
.dark .keyBox:hover {
217226
background: rgb(104, 104, 104);
218227
border: 2px solid rgba(128, 128, 128, 0.216);
219228
}
220229
.keyBox.editMode {
221-
border: 2px solid rgb(19, 151, 245);
230+
border: 2px solid #18a058;
222231
animation: blink 1.5s infinite;
223232
}
224-
.keyBox.editMode:hover {
233+
.dark .keyBox.editMode:hover {
225234
background: rgb(126, 126, 126);
226-
border: 2px solid rgb(19, 151, 245);
235+
border: 2px solid #18a058;
227236
}
228237
@keyframes blink {
229-
0% {
230-
border: 2px solid rgb(19, 151, 245);
238+
0%, 100% {
239+
border: 2px solid #18a058;
231240
}
232241
50% {
233242
border: 2px solid rgba(19, 151, 245, 0);
234243
}
235-
100% {
236-
border: 2px solid rgb(19, 151, 245);
237-
}
238244
}
239245
</style>

src/pages/Home.vue

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const { config, loadConfig, saveConfig } = useConfig();
2727
const { autoStart, toggleAutoStart, refreshAutoStart } = useAutoStart();
2828
const { mountShortcut, unregisterAll } = useShortcut();
2929
30-
const modalShortcutSetter = ref(false);
3130
const panelview = new webviewWindow.WebviewWindow('context', {
3231
url: '/panel',
3332
});
@@ -118,14 +117,6 @@ function handleShortcutChange(shortcut: string) {
118117
config.value.globalShortcut = shortcut;
119118
}
120119
121-
function openShortcutSetter() {
122-
modalShortcutSetter.value = true;
123-
}
124-
125-
function closeShortcutSetter() {
126-
modalShortcutSetter.value = false;
127-
}
128-
129120
function closeApp() {
130121
exit(0);
131122
}
@@ -165,7 +156,7 @@ function openProjectPage() {
165156
}
166157
167158
function openFeedbackPage() {
168-
return openUrl('https://github.com/CKylinMC/PasteMe/issues/new');
159+
return openUrl('https://github.com/CKylinMC/PasteMe/issues/new/choose');
169160
}
170161
function openCloseConfirm() {
171162
closeConfirm.value = true;
@@ -176,7 +167,9 @@ const updateSuffix =
176167
</script>
177168

178169
<template>
179-
<div class="text-black p-5 align-left relative select-none dark:bg-transparent dark:text-white">
170+
<div
171+
class="text-black p-5 align-left relative select-none bg-white/95 dark:bg-transparent dark:text-white"
172+
>
180173
<div
181174
data-tauri-drag-region
182175
class="absolute top-0 right-0 h-10 w-full flex flex-row justify-end items-start"
@@ -273,12 +266,12 @@ const updateSuffix =
273266
</n-list-item>
274267
<n-list-item>
275268
<template #suffix>
276-
<n-button @click="openShortcutSetter">{{
277-
config.globalShortcut?.replace(
278-
'CommandOrControl',
279-
'Ctrl'
280-
) || '未设置'
281-
}}</n-button>
269+
<div class="w-60 text-right">
270+
<KeySelector
271+
@set="handleShortcutChange"
272+
:shortcut="config.globalShortcut"
273+
/>
274+
</div>
282275
</template>
283276
<n-thing
284277
title="全局快捷键"
@@ -737,25 +730,7 @@ const updateSuffix =
737730
</n-tab-pane>
738731
</n-tabs>
739732
</div>
740-
741-
<n-modal :show="modalShortcutSetter">
742-
<n-card
743-
style="width: 400px"
744-
title="设置全局快捷键"
745-
:bordered="false"
746-
size="huge"
747-
role="dialog"
748-
aria-modal="true"
749-
>
750-
<KeySelector
751-
@set="handleShortcutChange"
752-
v-model:shortcut="config.globalShortcut"
753-
/>
754-
<template #footer>
755-
<n-button @click="closeShortcutSetter">确定</n-button>
756-
</template>
757-
</n-card>
758-
</n-modal>
733+
759734
<n-modal
760735
v-model:show="closeConfirm"
761736
preset="dialog"

src/pages/Panel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ onBeforeUnmount(() => {
674674

675675
<template>
676676
<div
677-
class="flex flex-col size-full select-none dark:bg-transparent dark:text-white"
677+
class="flex flex-col size-full select-none bg-white/95 dark:bg-transparent dark:text-white"
678678
@mouseover="mouseInRange = true"
679679
@mouseleave="mouseInRange = false"
680680
>

0 commit comments

Comments
 (0)