diff --git a/plugin/platform/linux.png b/plugin/platform/linux.png new file mode 100644 index 0000000..fc1ffd3 Binary files /dev/null and b/plugin/platform/linux.png differ diff --git a/plugin/platform/macos.png b/plugin/platform/macos.png new file mode 100644 index 0000000..2a64414 Binary files /dev/null and b/plugin/platform/macos.png differ diff --git a/plugin/platform/windows.png b/plugin/platform/windows.png new file mode 100644 index 0000000..3066149 Binary files /dev/null and b/plugin/platform/windows.png differ diff --git a/src/components/CommandCard.vue b/src/components/CommandCard.vue index d7c7698..8488ab6 100644 --- a/src/components/CommandCard.vue +++ b/src/components/CommandCard.vue @@ -5,7 +5,7 @@ 'card-wrapper': 1, 'card-wrapper-hover': isWarpperHover, }" - v-show="!cardStyleVars.hideCard" + v-show="canRunInConfigurationPage || cardStyle.code > 1" :id="commandInfo.features.code" @mouseenter="isWarpperHover = true" @mouseleave="if (!$refs.controlButtons?.isMenuOpen) isWarpperHover = false;" @@ -14,7 +14,8 @@ @@ -46,20 +47,6 @@ export default { }; }, computed: { - // 控制卡片样式的具体参数 - cardStyleVars() { - return { - showButtons: this.cardStyle.code > 1, - showPlatforms: this.cardStyle.code > 2, - showLanguages: this.cardStyle.code > 1, - showBiggerTitle: this.cardStyle.code > 2, - logoPosition: - this.cardStyle.code > 1 ? "justify-start" : "justify-center", - fontPosition: - this.cardStyle.code > 1 ? "justify-end" : "justify-center", - hideCard: this.cardStyle.code === 1 && !this.canRunInConfigurationPage, - }; - }, isPlatformSupported() { let { platform } = this.commandInfo.features; return !_.isEmpty(platform) && !platform.includes(window.processPlatform) @@ -85,7 +72,7 @@ export default { methods: { // 命令卡片点击事件 handleCardClick() { - // 视图模式直接运行命令 + // mini视图模式直接运行命令 if (this.cardStyle.code === 1) { return this.$refs.controlButtons.runCommand(); } @@ -125,8 +112,9 @@ export default { } .card-wrapper { - transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); - will-change: transform; + transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); + will-change: transform, width; + transform-origin: center center; } .card-wrapper-hover { diff --git a/src/components/card/CommandCardContent.vue b/src/components/card/CommandCardContent.vue index b23a9da..35e051c 100644 --- a/src/components/card/CommandCardContent.vue +++ b/src/components/card/CommandCardContent.vue @@ -4,169 +4,73 @@ v-ripple :class="{ [`text-${disabledColor}`]: !isActivated, command: 1 }" > - - -
- - - -
- - -
-
-
- - -
-
- - - -
-
- - -
- - {{ commandInfo.program }} - -
- -
-
- + diff --git a/src/components/card/CommandTypeTag.vue b/src/components/card/CommandTypeTag.vue index 2c020fe..23c2a8d 100644 --- a/src/components/card/CommandTypeTag.vue +++ b/src/components/card/CommandTypeTag.vue @@ -1,64 +1,69 @@ diff --git a/src/components/card/ControlButtons.vue b/src/components/card/ControlButtons.vue index 0e44d13..6728af2 100644 --- a/src/components/card/ControlButtons.vue +++ b/src/components/card/ControlButtons.vue @@ -1,12 +1,13 @@ @@ -739,7 +733,7 @@ export default { /* 面板过渡效果 */ .q-tab-panels { - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); + transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); background: none !important; } @@ -804,4 +798,41 @@ body.body--dark.glass-effect-menu .absolute-bottom { position: absolute; z-index: 1; } + +/* 底栏过渡动画 */ +.footer-bar { + transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); + will-change: left; +} + +/* 底栏输入框样式 */ +.absolute-bottom .q-field__control { + background: rgba(255, 255, 255, 0.15) !important; + border-radius: 4px; +} + +.body--dark .absolute-bottom .q-field__control { + background: rgba(0, 0, 0, 0.2) !important; +} + +/* 标签栏过渡动画 */ +.tag-bar { + transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); + will-change: width, opacity; + opacity: 1; +} + +/* 标签栏隐藏时的样式 */ +.tag-bar[style*="display: none"] { + opacity: 0; + width: 0 !important; +} + +/* 面板过渡效果 */ +.q-tab-panels { + transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); + background: none !important; +} + +/* ... 其他样式保持不变 ... */