feat(layout): 添加 SVG 图标系统并更新侧边栏导航
- 引入 Sprite 组件统一管理 SVG 图标 - 创建 Icon 组件支持动态加载图标- 定义 icon-ids 类型确保图标引用安全- 更新 Sidebar 使用新图标组件替换 emoji - 添加 HomeIcon 和 network 图标资源- 调整侧边栏样式和宽度 - 修复 Header 按钮 title 属性替代 aria-label - 新增 IP 工具页面路由 - 添加全局阴影变量 --main-border-shadow
This commit is contained in:
@@ -11,22 +11,21 @@
|
||||
</script>
|
||||
|
||||
<header class="custom-titlebar" data-tauri-drag-region>
|
||||
<div class="app-title" data-tauri-drag-region>
|
||||
|
||||
</div>
|
||||
<div class="app-title" data-tauri-drag-region></div>
|
||||
|
||||
<div class="window-controls">
|
||||
<button type="button" aria-label="最小化窗口" data-tauri-drag-region="false" class="h-btn btn-minimize" on:click={minimize}></button>
|
||||
<button type="button" title="最小化窗口" data-tauri-drag-region="false" class="h-btn btn-minimize" on:click={minimize}></button>
|
||||
<button
|
||||
type="button"
|
||||
data-tauri-drag-region="false"
|
||||
class="h-btn btn-max"
|
||||
aria-label="最大化窗口"
|
||||
title="最大化窗口"
|
||||
on:click={maximize}></button>
|
||||
<button type="button"
|
||||
data-tauri-drag-region="false"
|
||||
class="h-btn btn-close"
|
||||
aria-label="关闭窗口"
|
||||
title="关闭应用"
|
||||
on:click={closeWindow}></button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user