Skip to content

Commit

Permalink
Merge pull request #474 from lingbopro/voice_ball_changes
Browse files Browse the repository at this point in the history
语音球优化和修复
  • Loading branch information
NB-Group authored Sep 20, 2024
2 parents ba6dd8a + ce6a2c1 commit 9b4ff39
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/style/recognition.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion desktop.html
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ <h2>请求记录</h2>
</div>
<div class="border-radius"><icon><i class="bi bi-mic-fill"></i></icon><div><p>语音输入球</p><p>是否启用语音输入球</p></div>
<div class="alr">
<a class="a checkbox checked" id="sys_setting_7" onclick="sys_setting[6]=1-sys_setting[6];document.querySelector('.rainbow-container-main').setAttribute('style', 'display:' + (sys_setting[6] ? 'block' : 'none')+ ';');document.getElementById('sys_setting_7').setAttribute('class', 'a checkbox' + (sys_setting[6]?' checked':''));saveDesktop();"></a>
<a class="a checkbox checked" id="sys_setting_7" onclick="sys_setting[6]=1-sys_setting[6];document.querySelector('.rainbow-container-main').setAttribute('style', 'display:' + (sys_setting[6] ? 'block' : 'none')+ ';');document.getElementById('sys_setting_7').setAttribute('class', 'a checkbox' + (sys_setting[6]?' checked':''));updateVoiceBallStatus();saveDesktop();"></a>
</div>
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,10 @@ function startSpeechRecognition() {

}

function updateVoiceBallStatus() {
document.getElementById('voiceBall').style.setProperty('display', use_mic_voice ? 'block' : 'none');
}

// 小组件功能
let widgets = {
widgets: {
Expand Down Expand Up @@ -4193,7 +4197,7 @@ document.getElementsByTagName('body')[0].onload = () => {
}
}
});
document.getElementById('voiceBall').style.setProperty('display', use_mic_voice ? 'block' : 'none');
updateVoiceBallStatus();
// loadlang();
};

Expand Down

0 comments on commit 9b4ff39

Please sign in to comment.