forked from openkylin/ukui-menu
添加高亮图标
This commit is contained in:
parent
c82c70a662
commit
ef6de37942
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue