-
+
@@ -24,8 +25,8 @@
icon="play_arrow"
v-show="isRunButtonVisible"
@click="runCommand"
+ size="12px"
>
-
运行
- 设置
- 删除
@@ -121,6 +122,7 @@ export default {
isActivated: Boolean,
commandInfo: Object,
isRunButtonVisible: Boolean,
+ toggleBtnSize: String,
},
emits: ["update:isVisible", "commandChanged"],
data() {
diff --git a/src/components/card/layouts/DenseLayout.vue b/src/components/card/layouts/DenseLayout.vue
new file mode 100644
index 0000000..98ea31e
--- /dev/null
+++ b/src/components/card/layouts/DenseLayout.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
+
+
{{ programName }}
+
+
+
+
+
+
+
diff --git a/src/components/card/layouts/ListLayout.vue b/src/components/card/layouts/ListLayout.vue
new file mode 100644
index 0000000..49de627
--- /dev/null
+++ b/src/components/card/layouts/ListLayout.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
|
+
+
{{ program.name }}
+
+
+
+
+
+
+
diff --git a/src/components/card/layouts/MiniLayout.vue b/src/components/card/layouts/MiniLayout.vue
new file mode 100644
index 0000000..919b355
--- /dev/null
+++ b/src/components/card/layouts/MiniLayout.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/css/app.css b/src/css/app.css
index 0e95073..7a09a2b 100644
--- a/src/css/app.css
+++ b/src/css/app.css
@@ -1,31 +1,4 @@
/* app global css */
-@font-face {
- font-family: "iconfont";
- src: url("../fonts/iconfont.woff2?t=1649900426635") format("woff2"),
- url("../fonts/iconfont.woff?t=1649900426635") format("woff"),
- url("../fonts/iconfont.ttf?t=1649900426635") format("truetype");
-}
-
-.iconfont {
- font-family: "iconfont" !important;
- font-size: 16px;
- font-style: normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-.icon-linux:before {
- content: "\e6c1";
-}
-
-.icon-macos1:before {
- content: "\e6b2";
-}
-
-.icon-windows1:before {
- content: "\e6bb";
-}
-
:root {
--q-dark: #464646;
--q-dark-page: #303133;
@@ -221,3 +194,53 @@ body.body--dark.glass-effect-menu .q-menu {
.body--dark .q-menu .q-field__control {
background: rgba(0, 0, 0, 0.3) !important;
}
+
+/* 添加图标光晕效果 */
+.featureIco {
+ transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
+ will-change: transform;
+ position: relative;
+ z-index: 1;
+}
+
+.featureIcoHover {
+ transform: scale(1.08) translateY(-2px);
+}
+
+.featureIco::after {
+ content: "";
+ position: absolute;
+ z-index: -1;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
+ opacity: 0;
+ background-image: var(--icon-url);
+ background-size: contain;
+ background-position: center;
+ background-repeat: no-repeat;
+ filter: blur(8px) brightness(1.1);
+ transform: scale(1.05);
+ pointer-events: none;
+}
+
+.featureIcoHover::after {
+ opacity: 0.8;
+ transform: scale(1.1);
+}
+
+.feature-disabled,
+.platform-icons-disabled {
+ opacity: 0.5;
+ filter: grayscale(100%);
+}
+
+.platform-icons {
+ display: flex;
+ gap: 2px;
+ align-items: center;
+ justify-content: flex-end;
+ font-size: 12px;
+}
diff --git a/src/fonts/iconfont.ttf b/src/fonts/iconfont.ttf
deleted file mode 100644
index 0df3f7a..0000000
Binary files a/src/fonts/iconfont.ttf and /dev/null differ
diff --git a/src/fonts/iconfont.woff b/src/fonts/iconfont.woff
deleted file mode 100644
index d82031c..0000000
Binary files a/src/fonts/iconfont.woff and /dev/null differ
diff --git a/src/fonts/iconfont.woff2 b/src/fonts/iconfont.woff2
deleted file mode 100644
index 94d0c99..0000000
Binary files a/src/fonts/iconfont.woff2 and /dev/null differ
diff --git a/src/js/options/platformTypes.js b/src/js/options/platformTypes.js
index 64baf0d..7881e61 100644
--- a/src/js/options/platformTypes.js
+++ b/src/js/options/platformTypes.js
@@ -2,17 +2,17 @@ const platformTypes = {
win32: {
name: "win32",
label: "Windows",
- icon: "windows1"
+ icon: "platform/windows.png"
},
darwin: {
name: "darwin",
label: "MacOS",
- icon: "macos1"
+ icon: "platform/macos.png"
},
linux: {
name: "linux",
label: "Linux",
- icon: "linux"
+ icon: "platform/linux.png"
}
}
diff --git a/src/js/options/programs.js b/src/js/options/programs.js
index d8f6b06..82904de 100644
--- a/src/js/options/programs.js
+++ b/src/js/options/programs.js
@@ -3,127 +3,133 @@
*/
const programs = {
- quickcommand: {
- name: "quickcommand",
- highlight: "javascript",
- bin: "",
- argv: "",
- ext: "",
- color: "primary",
- icon: "logo/quickcommand.png",
- },
- html: {
- name: "html",
- bin: "",
- argv: "",
- ext: "",
- color: "deep-orange",
- icon: "logo/html.png",
- },
- shell: {
- name: "shell",
- bin: "bash",
- argv: "",
- ext: "sh",
- color: "green-6",
- icon: "logo/shell.png",
- },
- applescript: {
- name: "applescript",
- bin: "osascript",
- argv: "",
- ext: "scpt",
- color: "cyan-10",
- icon: "logo/applescript.png",
- },
- cmd: {
- name: "cmd",
- highlight: "bat",
- bin: "",
- argv: "",
- ext: "bat",
- color: "orange-10",
- icon: "logo/cmd.png",
- },
- powershell: {
- name: "powershell",
- bin: "powershell",
- argv: "-NoProfile -File",
- ext: "ps1",
- color: "amber-14",
- icon: "logo/powershell.png",
- },
- python: {
- name: "python",
- bin: "python",
- argv: "-u",
- ext: "py",
- color: "light-blue-10",
- icon: "logo/python.png",
- },
- javascript: {
- name: "javascript",
- bin: "node",
- argv: "",
- ext: "js",
- color: "teal",
- icon: "logo/javascript.png",
- },
- ruby: {
- name: "ruby",
- bin: "ruby",
- argv: "",
- ext: "rb",
- color: "red-10",
- icon: "logo/ruby.png",
- },
- php: {
- name: "php",
- bin: "php",
- argv: "",
- ext: "php",
- color: "deep-purple",
- icon: "logo/php.png",
- },
- c: {
- name: "c",
- bin: "gcc",
- argv: "-o",
- ext: "c",
- color: "blue-7",
- icon: "logo/c.png",
- },
- csharp: {
- name: "csharp",
- bin: "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe",
- argv: "/Nologo",
- ext: "cs",
- color: "light-blue-13",
- icon: "logo/csharp.png",
- },
- lua: {
- name: "lua",
- bin: "lua",
- argv: "",
- ext: "lua",
- color: "light-green-8",
- icon: "logo/lua.png",
- },
- perl: {
- name: "perl",
- bin: "perl",
- argv: "",
- ext: "pl",
- color: "purple",
- icon: "logo/perl.png"
- },
- custom: {
- name: "custom",
- bin: "",
- argv: "",
- ext: "",
- color: "indigo-6",
- icon: "logo/custom.png",
- },
+ quickcommand: {
+ name: "quickcommand",
+ highlight: "javascript",
+ bin: "",
+ argv: "",
+ ext: "",
+ color: "primary",
+ icon: "logo/quickcommand.png",
+ shortName: "qc",
+ },
+ html: {
+ name: "html",
+ bin: "",
+ argv: "",
+ ext: "",
+ color: "deep-orange",
+ icon: "logo/html.png",
+ },
+ shell: {
+ name: "shell",
+ bin: "bash",
+ argv: "",
+ ext: "sh",
+ color: "green-6",
+ icon: "logo/shell.png",
+ },
+ applescript: {
+ name: "applescript",
+ bin: "osascript",
+ argv: "",
+ ext: "scpt",
+ color: "cyan-10",
+ icon: "logo/applescript.png",
+ shortName: "ascpt",
+ },
+ cmd: {
+ name: "cmd",
+ highlight: "bat",
+ bin: "",
+ argv: "",
+ ext: "bat",
+ color: "orange-10",
+ icon: "logo/cmd.png",
+ },
+ powershell: {
+ name: "powershell",
+ bin: "powershell",
+ argv: "-NoProfile -File",
+ ext: "ps1",
+ color: "amber-14",
+ icon: "logo/powershell.png",
+ shortName: "ps",
+ },
+ python: {
+ name: "python",
+ bin: "python",
+ argv: "-u",
+ ext: "py",
+ color: "light-blue-10",
+ icon: "logo/python.png",
+ shortName: "py",
+ },
+ javascript: {
+ name: "javascript",
+ bin: "node",
+ argv: "",
+ ext: "js",
+ color: "teal",
+ icon: "logo/javascript.png",
+ shortName: "js",
+ },
+ ruby: {
+ name: "ruby",
+ bin: "ruby",
+ argv: "",
+ ext: "rb",
+ color: "red-10",
+ icon: "logo/ruby.png",
+ },
+ php: {
+ name: "php",
+ bin: "php",
+ argv: "",
+ ext: "php",
+ color: "deep-purple",
+ icon: "logo/php.png",
+ },
+ c: {
+ name: "c",
+ bin: "gcc",
+ argv: "-o",
+ ext: "c",
+ color: "blue-7",
+ icon: "logo/c.png",
+ },
+ csharp: {
+ name: "csharp",
+ bin: "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe",
+ argv: "/Nologo",
+ ext: "cs",
+ color: "light-blue-13",
+ icon: "logo/csharp.png",
+ shortName: "c#",
+ },
+ lua: {
+ name: "lua",
+ bin: "lua",
+ argv: "",
+ ext: "lua",
+ color: "light-green-8",
+ icon: "logo/lua.png",
+ },
+ perl: {
+ name: "perl",
+ bin: "perl",
+ argv: "",
+ ext: "pl",
+ color: "purple",
+ icon: "logo/perl.png",
+ },
+ custom: {
+ name: "custom",
+ bin: "",
+ argv: "",
+ ext: "",
+ color: "indigo-6",
+ icon: "logo/custom.png",
+ },
};
-export default programs
+export default programs;
diff --git a/src/pages/ConfigurationPage.vue b/src/pages/ConfigurationPage.vue
index e7da790..ac360c0 100644
--- a/src/pages/ConfigurationPage.vue
+++ b/src/pages/ConfigurationPage.vue
@@ -20,7 +20,7 @@
- 按两列排列的基础视图
+ 双列视图
- 按三列排列的紧凑视图,但不会显示适用的操作系统
+ 三列视图
按四列排列的面板视图
- 老版本的「快捷面板」已被弃用,取而代之的是新版的「面板视图」
- 注意:
- 1.未启用、匹配类型为窗口的命令在此视图下不显示
- 2.只显示图标描述和匹配类型
- 3.点击卡片时会直接运行命令而不是编辑命令五列面板视图
+ 未启用、匹配类型为窗口的命令在此视图下不显示
@@ -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;
+}
+
+/* ... 其他样式保持不变 ... */