Skip to content

Commit 6c32b25

Browse files
committed
fix: blueprint list global item bg follows theme
1 parent 28c9f19 commit 6c32b25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extension/src/sidebarProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ ${commonRules}`;
21742174
21752175
// 全局蓝本选项(固定在顶部)
21762176
var globalItem = document.createElement("label");
2177-
globalItem.style.cssText = "display:flex;align-items:center;gap:4px;padding:4px 4px;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;background:var(--bg-secondary,#1e1e1e);border:1px solid var(--border);margin-bottom:4px";
2177+
globalItem.style.cssText = "display:flex;align-items:center;gap:4px;padding:4px 4px;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;background:var(--editor-bg);border:1px solid var(--input-border);margin-bottom:4px";
21782178
globalItem.title = "勾选后将测试当前项目所有蓝本";
21792179
21802180
var globalCb = document.createElement("input");
@@ -2215,7 +2215,7 @@ ${commonRules}`;
22152215
var item = document.createElement("label");
22162216
item.className = "local-blueprint-item";
22172217
item.style.cssText = "display:flex;align-items:flex-start;gap:4px;padding:3px 4px;border-radius:4px;cursor:pointer;font-size:12px;line-height:1.4;overflow:hidden;width:100%;box-sizing:border-box";
2218-
item.addEventListener("mouseenter", function() { item.style.background = "var(--hover-bg,#2a2d2e)"; });
2218+
item.addEventListener("mouseenter", function() { item.style.background = "var(--input-bg)"; });
22192219
item.addEventListener("mouseleave", function() { item.style.background = "transparent"; });
22202220
22212221
// 复选框区域(独立tooltip:操作提示)

0 commit comments

Comments
 (0)