Skip to content

Commit 45de3f8

Browse files
committed
💄 更新部分按钮icon图标
1 parent 1c069ba commit 45de3f8

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

app/src/pages/_app.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { LogicalSize } from "@tauri-apps/api/dpi";
22
import { useAtom } from "jotai";
3-
import { ChevronDown, ChevronLeft, ChevronUp, Cpu, Diamond, Menu, SquareArrowUp, Tag, X, Zap } from "lucide-react";
3+
import { ChevronLeft, Copy, Cpu, Menu, Minus, PanelTop, Square, Tag, X, Zap } from "lucide-react";
44
import React from "react";
55
import { useTranslation } from "react-i18next";
66
import { Outlet, useLocation, useNavigate } from "react-router-dom";
@@ -404,7 +404,7 @@ export default function App() {
404404
}}
405405
tooltip={isWindowCollapsing ? "展开并取消顶置窗口" : "进入迷你窗口模式"}
406406
>
407-
<SquareArrowUp className={cn("cursor-pointer", isWindowCollapsing ? "rotate-180 scale-125" : "")} />
407+
<PanelTop className={cn("cursor-pointer", isWindowCollapsing ? "rotate-180 scale-125" : "")} />
408408
</IconButton>
409409
)}
410410

@@ -413,23 +413,26 @@ export default function App() {
413413
<Button
414414
className={cn("right-4 top-4 flex items-center gap-1 active:scale-100", isClassroomMode && "opacity-0")}
415415
>
416-
<ChevronDown
416+
{/* 最小化 */}
417+
<Minus
417418
onClick={() => getCurrentWindow().minimize()}
418419
className="transition hover:opacity-80 active:scale-75"
419420
/>
421+
{/* 最大化/取消窗口最大化 */}
420422
{maxmized ? (
421-
<Diamond
423+
<Copy
422424
onClick={() => setMaxmized(false)}
423425
size={16}
424426
strokeWidth={3}
425427
className="transition hover:opacity-80 active:scale-75"
426428
/>
427429
) : (
428-
<ChevronUp
430+
<Square
429431
onClick={() => setMaxmized(true)}
430-
className="transition hover:opacity-80 active:scale-75"
432+
className="scale-75 transition hover:opacity-80 active:scale-75"
431433
/>
432434
)}
435+
{/* 退出 */}
433436
<X onClick={() => getCurrentWindow().close()} className="transition hover:opacity-80 active:scale-75" />
434437
</Button>
435438
)}

app/src/pages/_app_menu.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ import {
77
Dock,
88
File,
99
FileCode,
10-
FilePlus,
11-
FileText,
1210
FileType,
1311
Folder,
1412
FolderCog,
1513
FolderOpen,
1614
Fullscreen,
1715
Info,
18-
Laugh,
1916
Monitor,
2017
MonitorX,
2118
MoreHorizontal,
@@ -33,6 +30,11 @@ import {
3330
Undo,
3431
View,
3532
Image as ImageIcon,
33+
FileClock,
34+
FileInput,
35+
FilePlus2,
36+
FileDown,
37+
Rabbit,
3638
} from "lucide-react";
3739
import React, { useEffect } from "react";
3840
import { useNavigate } from "react-router-dom";
@@ -379,23 +381,23 @@ export default function AppMenu({ className = "", open = false }: { className?:
379381
onPointerDown={(e) => e.stopPropagation()}
380382
>
381383
<Row icon={<File />} title={t("file.title")}>
382-
<Col icon={<FilePlus />} onClick={onNewDraft}>
384+
<Col icon={<FilePlus2 />} onClick={onNewDraft}>
383385
{t("file.items.new")}
384386
</Col>
385-
<Col icon={<FileText />} onClick={onOpen}>
387+
<Col icon={<FileInput />} onClick={onOpen}>
386388
{t("file.items.open")}
387389
</Col>
388390
{!isWeb && (
389391
<>
390-
<Col icon={<FileText />} onClick={() => setRecentFilePanelOpen(true)}>
392+
<Col icon={<FileClock />} onClick={() => setRecentFilePanelOpen(true)}>
391393
{t("file.items.recent")}
392394
</Col>
393395
<Col icon={<Save />} onClick={onSave}>
394396
{t("file.items.save")}
395397
</Col>
396398
</>
397399
)}
398-
<Col icon={<Save />} onClick={onSaveNew}>
400+
<Col icon={<FileDown />} onClick={onSaveNew}>
399401
{t("file.items.saveAs")}
400402
</Col>
401403

@@ -552,7 +554,7 @@ export default function AppMenu({ className = "", open = false }: { className?:
552554
{isClassroomMode ? "退出专注" : "专注模式"}
553555
</Col>
554556
<Col
555-
icon={<Laugh />}
557+
icon={<Rabbit />}
556558
className="opacity-20 hover:opacity-50"
557559
onClick={() => {
558560
navigate("/secret");

app/src/pages/secret.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function SecretPage() {
2626
<div className="h-full overflow-x-auto px-4 py-24">
2727
<h2 className="text-center text-xl font-bold">
2828
<span>秘籍键列表</span>
29-
{conflictKeys.length === 0 && <span>😺</span>}
29+
{conflictKeys.length === 0 && <span>🐇</span>}
3030
{conflictKeys.length > 0 && <span> 出现冲突</span>}
3131
</h2>
3232
{conflictKeys.length > 0 && (

0 commit comments

Comments
 (0)