From dbb80a41b3eb4f09b79e9c39d1c79bde3947c214 Mon Sep 17 00:00:00 2001 From: lingbopro Date: Thu, 19 Sep 2024 21:23:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E7=90=83=E6=A0=B7=E5=BC=8F=E5=BA=94=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 起因是安全中心的一个图标在转动,原因是语音球的选择器范围没做限制 Issue: #466 --- apps/style/recognition.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/style/recognition.css b/apps/style/recognition.css index ccddbd3..c75ba42 100755 --- a/apps/style/recognition.css +++ b/apps/style/recognition.css @@ -60,13 +60,13 @@ border-radius: 50%; } - .green { + .rainbow-container .green { background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 60%, rgba(115, 213, 186, 0.8) 100%); transform: rotateY(0) skew(14deg) rotate3d(1.1, 1, 0.9, 0); animation: curve-rotate-green 6s infinite linear; } - .pink { + .rainbow-container .pink { background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, rgba(215, 115, 229, 0.8) 100%); transform: rotateY(180deg) skew(14deg) rotate3d(1.1, 1, 0.9, 0); animation: curve-rotate-pink 3s infinite linear; From ce6a2c136d4223e9b7aa2a218f9ea9b1de0537b3 Mon Sep 17 00:00:00 2001 From: lingbopro Date: Thu, 19 Sep 2024 21:25:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E7=90=83=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化语音球在设置中更改后需要重启才能生效的问题 Issue: #472 --- desktop.html | 2 +- desktop.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/desktop.html b/desktop.html index 5fff18d..398f861 100755 --- a/desktop.html +++ b/desktop.html @@ -1586,7 +1586,7 @@

请求记录

语音输入球

是否启用语音输入球

- +
diff --git a/desktop.js b/desktop.js index 03c8cb0..10179d4 100755 --- a/desktop.js +++ b/desktop.js @@ -2957,6 +2957,10 @@ function startSpeechRecognition() { } +function updateVoiceBallStatus() { + document.getElementById('voiceBall').style.setProperty('display', use_mic_voice ? 'block' : 'none'); +} + // 小组件功能 let widgets = { widgets: { @@ -4193,7 +4197,7 @@ document.getElementsByTagName('body')[0].onload = () => { } } }); - document.getElementById('voiceBall').style.setProperty('display', use_mic_voice ? 'block' : 'none'); + updateVoiceBallStatus(); // loadlang(); };