From ac7b5d4b2d217acb9e682b941470c9796a5f0d98 Mon Sep 17 00:00:00 2001 From: lichangze Date: Mon, 19 Sep 2022 16:14:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dosd=E5=92=8C=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E9=9F=B3=E9=87=8F=E6=98=BE=E7=A4=BA=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 分级标准不一致,统一修改为0.3和0.6 Log: 修复osd和插件音量显示不一致的情况 Bug: https://pms.uniontech.com/bug-view-159535.html Influence: 音量显示 Change-Id: Ib8245c62d8c8fca30f041602294a3764c81ced6c --- plugins/sound/sounditem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sound/sounditem.cpp b/plugins/sound/sounditem.cpp index 3238a3a1c..cda16a180 100644 --- a/plugins/sound/sounditem.cpp +++ b/plugins/sound/sounditem.cpp @@ -188,9 +188,9 @@ void SoundItem::refreshIcon() volumeString = "muted"; else if (int(volmue) == 0) volumeString = "off"; - else if (volmue / maxVolmue > double(2) / 3) + else if (volmue / maxVolmue > 0.6) volumeString = "high"; - else if (volmue / maxVolmue > double(1) / 3) + else if (volmue / maxVolmue > 0.3) volumeString = "medium"; else volumeString = "low";