From 594d455a384fa9fc790ded64283dee50717da134 Mon Sep 17 00:00:00 2001 From: youdiansaodongxi Date: Tue, 28 May 2024 19:41:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(qml):=20=E4=BF=AE=E6=94=B9=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E8=8F=9C=E5=8D=95=E5=8F=B3=E4=BE=A7=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=B8=89=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/AppUI/Sidebar.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qml/AppUI/Sidebar.qml b/qml/AppUI/Sidebar.qml index 384e337..18dda64 100644 --- a/qml/AppUI/Sidebar.qml +++ b/qml/AppUI/Sidebar.qml @@ -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