diff --git a/frontend/src/components/toolbar/Toolbar.vue b/frontend/src/components/toolbar/Toolbar.vue index 1f24d7f..ea94d8a 100644 --- a/frontend/src/components/toolbar/Toolbar.vue +++ b/frontend/src/components/toolbar/Toolbar.vue @@ -96,11 +96,17 @@ watch(() => configStore.configLoaded, (isLoaded) => { - - + +
+ + + +
@@ -240,21 +246,35 @@ watch(() => configStore.configLoaded, (isLoaded) => { } } - /* 窗口置顶选择框样式 */ - .always-on-top-toggle { + /* 窗口置顶图标按钮样式 */ + .pin-button { + cursor: pointer; display: flex; align-items: center; - gap: 3px; - cursor: pointer; - color: var(--text-muted); - font-size: 11px; - - input { - cursor: pointer; - } + justify-content: center; + width: 20px; + height: 20px; + padding: 2px; + border-radius: 3px; + transition: all 0.2s ease; &:hover { - color: var(--text-primary); + background-color: rgba(255, 255, 255, 0.1); + } + + &.active { + background-color: rgba(181, 206, 168, 0.2); + + .pin-icon { + fill: #b5cea8; + } + } + + .pin-icon { + width: 14px; + height: 14px; + fill: var(--text-muted); + transition: fill 0.2s ease; } }