From 4baab60804d37efc48483fdbcd7524d1e77fa3c8 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 21 Dec 2024 13:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E5=88=97=E5=8D=A1=E7=89=87=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E5=B8=83=E5=B1=80=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/platform/linux.png | Bin 0 -> 1462 bytes plugin/platform/macos.png | Bin 0 -> 998 bytes plugin/platform/windows.png | Bin 0 -> 1832 bytes src/components/CommandCard.vue | 28 +-- src/components/card/CommandCardContent.vue | 180 ++++---------- src/components/card/CommandTypeTag.vue | 149 +++++++----- src/components/card/ControlButtons.vue | 10 +- src/components/card/layouts/DenseLayout.vue | 96 ++++++++ src/components/card/layouts/ListLayout.vue | 90 +++++++ src/components/card/layouts/MiniLayout.vue | 74 ++++++ src/css/app.css | 77 +++--- src/fonts/iconfont.ttf | Bin 3292 -> 0 bytes src/fonts/iconfont.woff | Bin 2252 -> 0 bytes src/fonts/iconfont.woff2 | Bin 1816 -> 0 bytes src/js/options/platformTypes.js | 6 +- src/js/options/programs.js | 252 ++++++++++---------- src/pages/ConfigurationPage.vue | 57 ++++- 17 files changed, 630 insertions(+), 389 deletions(-) create mode 100644 plugin/platform/linux.png create mode 100644 plugin/platform/macos.png create mode 100644 plugin/platform/windows.png create mode 100644 src/components/card/layouts/DenseLayout.vue create mode 100644 src/components/card/layouts/ListLayout.vue create mode 100644 src/components/card/layouts/MiniLayout.vue delete mode 100644 src/fonts/iconfont.ttf delete mode 100644 src/fonts/iconfont.woff delete mode 100644 src/fonts/iconfont.woff2 diff --git a/plugin/platform/linux.png b/plugin/platform/linux.png new file mode 100644 index 0000000000000000000000000000000000000000..fc1ffd38d2c477123d8be34b63ed473c9e6f704b GIT binary patch literal 1462 zcmV;n1xfmeP)!?lTSYRBX?Zownec zga4R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V#mV%M2@Ake(Z8j=v}kt!~g&Q literal 0 HcmV?d00001 diff --git a/plugin/platform/macos.png b/plugin/platform/macos.png new file mode 100644 index 0000000000000000000000000000000000000000..2a64414dd878d1b618ad7b0506282fd2d55da0c9 GIT binary patch literal 998 zcmVVHn4cS&>w_CvCa5#_ME#;5_Pll$Ecc4_>vL&ZwM(cfysY{ z3NryAKBbFg*)oU2F`l>hErxe-bdiJSJo zWU-0JMpe%#z^y(Ui2QFG^_uyO6u@FI+l>!Xmu?7%P0+c%` zfTtX-wZdi>J3#e!Fh$%x$WvZ7w+2BIS9^CReRHq^6mZV;*e3cCa(S^$)^0qqb>YpGnbswEuwtD-(0fgr_WBTgt^oQgrD-d(&0tV|o@MvQ0gl4dGcOj$M z3dONYNL;*z&N*Y%Hsn+q2DS%6%i0i|nG5-X<=h)vvJNo^&m+8`nY&K$XroOOK=+&z za{2Z{EK;6>Z0UMBhdYz^AEQ74YvM5VE5xN8`76Mk35rxq+&1lzPuJ3pz_aR)(BIJ&l@@|FMu@<+L9ym9m4+$>X#HE z`%(V^SeE7geZU>->Oaj*taUmBEvMpE3NVw$eG%zO7a^p)UtegXkU|P6q+oc)FP%LQ U;;T-KmH+?%07*qoM6N<$f?fI5LjV8( literal 0 HcmV?d00001 diff --git a/plugin/platform/windows.png b/plugin/platform/windows.png new file mode 100644 index 0000000000000000000000000000000000000000..306614963559d8f58a469eea2c6a585a76d8372c GIT binary patch literal 1832 zcmV+@2iN$CP)1*A-HN1KChU7 zU1bv`9~P1iP7xvqh!n#&kz$C86hUF62&xYXVfdg>0SEZAu)ld0!kgrt`UW zZW=;s(Eup?loGyj0)ooX0J52RhxE@Ha$cL)8|afGJ?x#;d&B#2Pm%h!NHKuUBLcwS z1q#^DC%`w%Kv?~Z1|I8v)g%O0D!U(4J`OuMGKEo)zIpF$*RuyVu-HRivI+*`{R#%y ze);`8-@Lw&wNLuMCsztSIZ{}Y)eGK_d%#eD2$2E~3JBeAB*5!YN7?;x*jYM8KfwAw zhc>d^|s)Kfa1U5fo z5+Fw^*Egu#(+Dpu3EnkPq6uKEI@?fnUK7+Q9)Zozhhfvd3<9jl?v+!)d+38tM&Vn* z^&TMrL7h-4bt>qov-!m^Y+#67(WaZl|;RzK`OR^4wyR;IKeZpp2P@d09m7`Oup z{%bSX#}L4OZUj3N{z5(2p0Cpmpnlkdm0Ud_sW#dS;(Sp~cKnc#D2xi=5UU1PcO3<9 z!oe@rgDnbwt`2N|s-+B|b)V3)S9uanIjZ@xB9UnT8oFTM=j*`cTrJp~tp)2dH97&v z_X*1Bo=LG+k&ozmZ|MhcxXPE)(Zxp9brjtC$7-Zp!rm%9uC zEQx8B)6vEHYz+pFf?J*D!J_YZ+5t4`=wHb_Nz+}kSEZ=b!MZO2mxLDj0qn0d$?51~ zg>_vCzUWjHEc~ug6Tpx<+FNZG^?+2vCrZ%n!}2=}0xZ7VD5s-~vg;^#6)Zei2@Afh z&;;<;rw-Ltn@V-+sNnBOV0pq@SoXV^egL~m4RSiVU|m;%FE~*FmdDHS0QxRO#CvqQ z?tMb3PAjgCviq>?HiH1R7wYA7biv?N;FibAz~X3`CVlDA(go|f3Y;7OSBG?D z64iM?nzlsm)#{+#za;{v8v^F*wDs`@Tgy}B8y23dIAnRe?7ZdC@>GkXWzQ_4xDxZI zQUw`aD*#y?I@30hLLC(TrU;y_8xg=@Mf0pJqq*xX4s#EgALd*zKf*~jKf){L z>Z;?aqmEdq4hkPHgiqu6ANE4ylilm>`KWuZS7y&?&y21V_l&N;-P1b7t5Z9t4Xe|F ztD}a$Aq2-b!Tf*VFs1@y;1iFeb~m@=jv&|MwqveIlG`qclD}N;N*b2mX_0BE6E9N2 zUl)KwEdRrPVluW|68KI|H$?$UZ;8Hkx-N`$jN?CXh!Z5+T@!sgANfpWDpQ%wTm1*x W%kE|5@!&830000 @@ -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; +} + +/* ... 其他样式保持不变 ... */