mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
Code review and tidying
This commit is contained in:
parent
7e9122e3d1
commit
ee8449712c
3 changed files with 7 additions and 9 deletions
|
@ -17,8 +17,6 @@ Dialog {
|
|||
id: root
|
||||
HifiConstants { id: hifi }
|
||||
|
||||
property bool destroyOnInvisible: true
|
||||
|
||||
Component.onCompleted: {
|
||||
enabled = true
|
||||
}
|
||||
|
|
|
@ -39,14 +39,14 @@ Dialog {
|
|||
implicitWidth: isCircular() ? circularBackground.width : rectangularBackground.width
|
||||
implicitHeight: isCircular() ? circularBackground.height : rectangularBackground.height
|
||||
|
||||
property int inputWidth: 500
|
||||
property int inputHeight: 60
|
||||
readonly property int inputWidth: 500
|
||||
readonly property int inputHeight: 60
|
||||
readonly property int borderWidth: 30
|
||||
readonly property int closeMargin: 16
|
||||
readonly property real tan30: 0.577 // tan(30°)
|
||||
property int inputSpacing: isCircular() ? 24 : 16
|
||||
property int borderWidth: 30
|
||||
property int closeMargin: 16
|
||||
property int maximumX: parent ? parent.width - width : 0
|
||||
property int maximumY: parent ? parent.height - height : 0
|
||||
property real tan30: 0.577 // tan(30°)
|
||||
|
||||
Rectangle {
|
||||
id: circularBackground
|
||||
|
|
|
@ -15,7 +15,7 @@ import "../styles"
|
|||
Item {
|
||||
id: root
|
||||
|
||||
property int animationDuration: hifi.effects.fadeInDuration
|
||||
property bool destroyOnInvisible: true
|
||||
|
||||
|
||||
// The UI enables an object, rather than manipulating its visibility, so that we can do animations in both directions.
|
||||
|
@ -32,7 +32,7 @@ Item {
|
|||
Behavior on opacity {
|
||||
// Animate opacity.
|
||||
NumberAnimation {
|
||||
duration: animationDuration
|
||||
duration: hifi.effects.fadeInDuration
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue