style(titleBar): 使用 Font Awesome 图标集替代字符形式窗口控制标识

This commit is contained in:
2026-08-18 11:35:07 +08:00
parent e4540252b3
commit 08038e6be0
+5 -6
View File
@@ -75,30 +75,28 @@
<div class="mx-1 h-6 w-px bg-slate-300/70 dark:bg-slate-700/70"></div> <div class="mx-1 h-6 w-px bg-slate-300/70 dark:bg-slate-700/70"></div>
<button <button
type="button" type="button"
class="rounded-md px-3 py-1.5 text-base transition hover:bg-slate-200/80 dark:hover:bg-slate-800" class="fas fa-window-minimize rounded-md px-3 py-1.5 text-base transition hover:bg-slate-200/80 dark:hover:bg-slate-800"
aria-label="最小化" aria-label="最小化"
title="最小化" title="最小化"
@click="minimize" @click="minimize"
> >
</button> </button>
<button <button
type="button" type="button"
class="rounded-md px-3 py-1.5 text-base transition hover:bg-slate-200/80 dark:hover:bg-slate-800" class="fas rounded-md px-3 py-1.5 text-base transition hover:bg-slate-200/80 dark:hover:bg-slate-800"
:class="isMaximized ? 'fa-window-restore' : 'fa-window-maximize'"
aria-label="最大化或还原" aria-label="最大化或还原"
title="最大化或还原" title="最大化或还原"
@click="toggleMaximize" @click="toggleMaximize"
> >
</button> </button>
<button <button
type="button" type="button"
class="rounded-md px-3 py-1 text-sm transition hover:bg-red-500 hover:text-white" class="fas fa-times rounded-md px-3 py-1.5 text-base transition hover:bg-red-500 hover:text-white"
aria-label="关闭" aria-label="关闭"
title="关闭" title="关闭"
@click="close" @click="close"
> >
×
</button> </button>
</div> </div>
</header> </header>
@@ -110,6 +108,7 @@ import ThemeToggle from "./ThemeToggle.vue";
defineProps<{ defineProps<{
searchQuery: string; searchQuery: string;
themeMode: "light" | "dark" | "auto"; themeMode: "light" | "dark" | "auto";
isMaximized: boolean
}>(); }>();
const emit = defineEmits<{ const emit = defineEmits<{