fix(qml): 修改开始菜单右侧区域按钮三态

This commit is contained in:
youdiansaodongxi 2024-05-28 19:41:14 +08:00
parent 5670dcb391
commit 594d455a38
1 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,8 @@ Item {
UkuiItems.Button {
id: fullScreenButton
visible: !isLiteMode
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -82,6 +84,8 @@ Item {
UkuiItems.Button {
id: userInfoButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -110,6 +114,8 @@ Item {
UkuiItems.Button {
id: computerButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -138,6 +144,8 @@ Item {
UkuiItems.Button {
id: setButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -167,6 +175,9 @@ Item {
UkuiItems.Button {
id: powerButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
Layout.alignment: Qt.AlignHCenter