mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: 修复osd和插件音量显示不一致的情况
分级标准不一致,统一修改为0.3和0.6 Log: 修复osd和插件音量显示不一致的情况 Bug: https://pms.uniontech.com/bug-view-159535.html Influence: 音量显示 Change-Id: Ib8245c62d8c8fca30f041602294a3764c81ced6c
This commit is contained in:
parent
5d01010b7e
commit
ac7b5d4b2d
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user