mirror of
https://github.com/overte-org/overte.git
synced 2025-05-08 01:29:08 +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;
|
micBar.opacity = rectOpacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onLevelChanged: {
|
||||||
|
var rectOpacity = AudioScriptingInterface.muted && (level >= userSpeakingLevel)? 0.9 : 0.3;
|
||||||
|
if (mouseArea.containsMouse) {
|
||||||
|
rectOpacity = 0.5;
|
||||||
|
}
|
||||||
|
opacity = rectOpacity;
|
||||||
|
}
|
||||||
|
|
||||||
color: "#00000000";
|
color: "#00000000";
|
||||||
border {
|
border {
|
||||||
width: mouseArea.containsMouse || mouseArea.containsPress ? 2 : 0;
|
width: mouseArea.containsMouse || mouseArea.containsPress ? 2 : 0;
|
||||||
|
|
Loading…
Reference in a new issue