mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-19 13:44:20 +02:00
adding more opacity, cleanup
This commit is contained in:
parent
8e8ceaac47
commit
db6bf46ee7
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,14 @@ Rectangle {
|
|||
micBar.opacity = rectOpacity;
|
||||
}
|
||||
|
||||
onLevelChanged: {
|
||||
var rectOpacity = AudioScriptingInterface.muted && (level >= userSpeakingLevel)? 0.9 : 0.3;
|
||||
if (mouseArea.containsMouse) {
|
||||
rectOpacity = 0.5;
|
||||
}
|
||||
opacity = rectOpacity;
|
||||
}
|
||||
|
||||
color: "#00000000";
|
||||
border {
|
||||
width: mouseArea.containsMouse || mouseArea.containsPress ? 2 : 0;
|
||||
|
|
Loading…
Reference in a new issue