mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
removed invalid function code
This commit is contained in:
@@ -34,6 +34,7 @@ Item {
|
|||||||
|
|
||||||
property string defaultColor: "#1C1D21"
|
property string defaultColor: "#1C1D21"
|
||||||
property string borderColor: "#2C2D30"
|
property string borderColor: "#2C2D30"
|
||||||
|
property string semitransparentColor: "#90000000"
|
||||||
|
|
||||||
property bool needCollapsed: false
|
property bool needCollapsed: false
|
||||||
|
|
||||||
@@ -57,7 +58,7 @@ Item {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
radius: 16
|
radius: 16
|
||||||
color: "transparent" //"#90000000"
|
color: "transparent"
|
||||||
border.color: "transparent"
|
border.color: "transparent"
|
||||||
border.width: 1
|
border.width: 1
|
||||||
visible: true
|
visible: true
|
||||||
@@ -264,7 +265,7 @@ Item {
|
|||||||
|
|
||||||
onRunningChanged: {
|
onRunningChanged: {
|
||||||
if (!running) {
|
if (!running) {
|
||||||
visibledMouseArea(false)
|
fullMouseArea.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -307,8 +308,8 @@ Item {
|
|||||||
|
|
||||||
onRunningChanged: {
|
onRunningChanged: {
|
||||||
if (!running) {
|
if (!running) {
|
||||||
draw2Background.color = "#90000000"
|
draw2Background.color = semitransparentColor
|
||||||
visibledMouseArea(true)
|
fullMouseArea.visible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -328,9 +329,8 @@ Item {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
draw2Background.color = "#90000000"
|
draw2Background.color = semitransparentColor
|
||||||
|
fullMouseArea.visible = true
|
||||||
visibledMouseArea(true)
|
|
||||||
|
|
||||||
root.y = 0
|
root.y = 0
|
||||||
root.state = "opened"
|
root.state = "opened"
|
||||||
@@ -359,16 +359,10 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function expand() {
|
function expand() {
|
||||||
draw2Background.color = "#90000000"
|
draw2Background.color = semitransparentColor
|
||||||
root.state = "expanded"
|
root.state = "expanded"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function visibledMouseArea(visbile) {
|
|
||||||
fullMouseArea.visible = visbile
|
|
||||||
dragArea.visible = visbile
|
|
||||||
}
|
|
||||||
|
|
||||||
function opened() {
|
function opened() {
|
||||||
return root.state === "opened" ? true : false
|
return root.state === "opened" ? true : false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user