diff --git a/public/static/manifest.json b/public/static/manifest.json index 8bf493c..cd93450 100644 --- a/public/static/manifest.json +++ b/public/static/manifest.json @@ -1,5 +1,5 @@ { - "generatedAt": "2026-06-17T08:54:58.662Z", + "generatedAt": "2026-06-18T07:58:42.060Z", "events": [ { "id": "赛事一", diff --git a/src/styles/global.css b/src/styles/global.css index 6b56789..2935b54 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -7,20 +7,47 @@ } :root { - --ui-font-sans: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; - --ui-accent: #ea580c; - --ui-accent-strong: #c2410c; - --ui-primary: #1d4ed8; - --ui-primary-soft: #dbeafe; - --ui-surface: #f8fafc; - --ui-surface-elevated: #ffffff; - --ui-border: #cbd5e1; - --ui-text: #0f172a; - --ui-text-muted: #64748b; - --ui-radius: 10px; - --ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06); - --ui-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1); - --ui-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.16); + --ui-font-sans: 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; + --ui-accent: #d97706; + --ui-accent-strong: #b45309; + --ui-primary: #2563eb; + --ui-primary-soft: #eff6ff; + --ui-surface: #f3f4f6; + --ui-surface-elevated: #fafafa; + --ui-border: #d1d5db; + --ui-text: #111827; + --ui-text-muted: #6b7280; + --ui-radius: 6px; + --ui-shadow-sm: 0 1px 2px rgba(0,0,0,0.06); + --ui-shadow-md: 0 2px 8px rgba(0,0,0,0.08); + --ui-shadow-lg: 0 6px 24px rgba(0,0,0,0.12); + + --desktop-titlebar-height: 40px; + --desktop-statusbar-height: 28px; + --desktop-panel-bg: #f5f5f5; + --desktop-border: #c4c4c4; + --desktop-text: #1a1a1a; + --desktop-muted: #6e6e6e; + --desktop-accent: #0078d4; +} + +/* 桌面应用风格滚动条 */ +::-webkit-scrollbar { + width: 6px; + height: 6px; +} +::-webkit-scrollbar-track { + background: transparent; +} +::-webkit-scrollbar-thumb { + background: #c1c1c1; + border-radius: 3px; +} +::-webkit-scrollbar-thumb:hover { + background: #a1a1a1; +} +::-webkit-scrollbar-corner { + background: transparent; } html, diff --git a/src/views/EventConfig.vue b/src/views/EventConfig.vue index 2c8c8a1..2e29e24 100644 --- a/src/views/EventConfig.vue +++ b/src/views/EventConfig.vue @@ -788,8 +788,26 @@ function toggleConfigPanel() { initFromSaved() refreshSerial() +// 桌面键盘快捷键 +function onKeydown(e) { + if ((e.ctrlKey || e.metaKey) && e.key === 'p') { + e.preventDefault() + if (!liveMode.value && canStart.value) handleProjection() + return + } + if (e.key === 'Escape') { + if (pageConfigVisible.value) { + pageConfigVisible.value = false + return + } + } +} + +window.addEventListener('keydown', onKeydown) + onUnmounted(() => { stopStageDrag() + window.removeEventListener('keydown', onKeydown) }) function debugTimeupProjectionReport(hypothesisId, location, msg, data = {}) { @@ -813,25 +831,30 @@ function debugTimeupProjectionReport(hypothesisId, location, msg, data = {}) {
- {{ - liveMode - ? '配置已收起,请在本页控制台操作比赛;投屏窗口仅作大屏展示。' - : '按流程完成资源、页面、设备配置后投屏,在本页控制台操作比赛。' - }} -
++ {{ + liveMode + ? '比赛进行中 — 投屏窗口已打开,此处为控制台' + : '配置资源与设备后点击投屏开始比赛' + }} +
+