添加高亮图标

This commit is contained in:
qiqi 2023-03-27 17:35:18 +08:00 committed by hewenfei
parent c82c70a662
commit ef6de37942
2 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,7 @@ MouseArea {
id: buttonMouseArea
hoverEnabled: true
property string buttonIcon: ""
property bool highlight: false
StyleBackground {
useStyleTransparent: false
@ -18,6 +19,6 @@ MouseArea {
anchors.centerIn: parent
width: 16; height: width
source: buttonIcon
highLight: mainWindow.isFullScreen
highLight: buttonMouseArea.highlight
}
}

View File

@ -74,10 +74,8 @@ Item {
anchors.left: parent.left
anchors.bottom: parent.bottom
radius: 12
state: mainWindow.isFullScreen ? "fullScreen" : "normalScreen"
Component.onCompleted: {
state = mainWindow.isFullScreen ? "fullScreen" : "normalScreen"
}
onHeightChanged: {
if (root.transparency <= 0.6 && root.onComlpeted) {
mainWindow.changeWindowBlurRegion(0, root.height - height, width, height)