feat:给编辑面板标签页替换icon + 编辑页面新增icon

This commit is contained in:
Roe-xin
2025-12-11 14:33:19 +08:00
parent 49b3e34101
commit 95342ecbec
2 changed files with 15 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/**
* 获取 WebView 面板的 HTML 内容
*/
export function getWebviewContent(): string {
export function getWebviewContent(iconUri?: string): string {
return `<!DOCTYPE html>
<html lang="zh-CN">
<head>
@ -149,7 +149,10 @@ export function getWebviewContent(): string {
</head>
<body>
<div class="header">
<h1>IC Coder</h1>
<div style="display: flex; align-items: center; justify-content: center; gap: 10px;">
<img src="${iconUri}" alt="IC Coder" style="width: 28px; height: 28px;" />
<h1 style="margin: 0;">IC Coder</h1>
</div>
<p>专注于真实FPGA研发的Verilog智能体编程平台</p>
</div>