添加高亮图标
This commit is contained in:
parent
c82c70a662
commit
ef6de37942
|
@ -5,6 +5,7 @@ MouseArea {
|
||||||
id: buttonMouseArea
|
id: buttonMouseArea
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
property string buttonIcon: ""
|
property string buttonIcon: ""
|
||||||
|
property bool highlight: false
|
||||||
|
|
||||||
StyleBackground {
|
StyleBackground {
|
||||||
useStyleTransparent: false
|
useStyleTransparent: false
|
||||||
|
@ -18,6 +19,6 @@ MouseArea {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: 16; height: width
|
width: 16; height: width
|
||||||
source: buttonIcon
|
source: buttonIcon
|
||||||
highLight: mainWindow.isFullScreen
|
highLight: buttonMouseArea.highlight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,10 +74,8 @@ Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
radius: 12
|
radius: 12
|
||||||
|
state: mainWindow.isFullScreen ? "fullScreen" : "normalScreen"
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
state = mainWindow.isFullScreen ? "fullScreen" : "normalScreen"
|
|
||||||
}
|
|
||||||
onHeightChanged: {
|
onHeightChanged: {
|
||||||
if (root.transparency <= 0.6 && root.onComlpeted) {
|
if (root.transparency <= 0.6 && root.onComlpeted) {
|
||||||
mainWindow.changeWindowBlurRegion(0, root.height - height, width, height)
|
mainWindow.changeWindowBlurRegion(0, root.height - height, width, height)
|
||||||
|
|
Loading…
Reference in New Issue