Fix warning: The current style does not support customization of this control (proper...
authorCamila Ayres <hello@camilasan.com>
Wed, 28 Aug 2024 18:47:28 +0000 (20:47 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 6 Sep 2024 08:55:42 +0000 (10:55 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/tray/HeaderButton.qml
src/gui/tray/TalkReplyTextField.qml
src/gui/tray/UnifiedSearchInputContainer.qml
src/gui/tray/UserLine.qml
src/gui/tray/Window.qml

index 24ebb92645114ee969e082e18ce9abacaf58491a..d0bae5032569a0a3fd98c45e1229e080b7e5649e 100644 (file)
@@ -37,11 +37,6 @@ Button {
     Layout.preferredWidth:  Style.trayWindowHeaderHeight
     Layout.preferredHeight: Style.trayWindowHeaderHeight
 
-    background: Rectangle {
-        color: root.hovered || root.visualFocus ? Style.currentUserHeaderTextColor : Style.currentUserHeaderColor
-        opacity: 0.2
-    }
-
     contentItem: Item {
         anchors.fill: parent
         
index 8028c7fc82cdeac8c75bc405d0770d4e0ae898f4..821965856d70ef63f6a8ea3635f68d3400a34eeb 100644 (file)
@@ -17,13 +17,14 @@ TextField {
 
     onAccepted: sendReplyMessage()
 
-    background: Rectangle {
-        id: replyMessageTextFieldBorder
-        radius: width / 2
-        border.width: Style.normalBorderWidth
-        border.color: replyMessageTextField.activeFocus ? UserModel.currentUser.accentColor : palette.dark
-        color: palette.window
-    }
+    // TODO
+    // background: Rectangle {
+    //     id: replyMessageTextFieldBorder
+    //     radius: width / 2
+    //     border.width: Style.normalBorderWidth
+    //     border.color: replyMessageTextField.activeFocus ? UserModel.currentUser.accentColor : palette.dark
+    //     color: palette.window
+    // }
 
     Button {
         id: sendReplyMessageButton
index 5ab1c3820182a6bca710fe86400de2ddea55646a..baafff588dd013eb3ed32410d3aeda02877c5b75 100644 (file)
@@ -45,12 +45,13 @@ TextField {
 
     selectByMouse: true
 
-    background: Rectangle {
-        radius: Style.slightlyRoundedButtonRadius
-        border.color: parent.activeFocus ? UserModel.currentUser.accentColor : palette.dark
-        border.width: Style.normalBorderWidth
-        color: palette.window
-    }
+    // TODO
+    // background: Rectangle {
+    //     radius: Style.slightlyRoundedButtonRadius
+    //     border.color: parent.activeFocus ? UserModel.currentUser.accentColor : palette.dark
+    //     border.width: Style.normalBorderWidth
+    //     color: palette.window
+    // }
 
     Image {
         id: trayWindowUnifiedSearchTextFieldSearchIcon
index f19d38a892b2fa4801424e703fef855df27516f4..f1ecc779c611a39c86e6ad5871376e7671156333 100644 (file)
@@ -146,11 +146,6 @@ AbstractButton {
             Accessible.onPressAction: userMoreButtonMouseArea.clicked()\r
 \r
             onClicked: userMoreButtonMenu.visible ? userMoreButtonMenu.close() : userMoreButtonMenu.popup()\r
-            background: Rectangle {\r
-                anchors.fill: parent\r
-                anchors.margins: 1\r
-                color: userMoreButton.hovered || userMoreButton.visualFocus ? palette.highlight : palette.window\r
-            }\r
 \r
             contentItem: Image {\r
                 anchors.fill: parent\r
index 83acce6feb16b18637b0f7ec24089ba75f34c35f..7dfe5f9d12d9b57512b421cca7af4f1363fbf9ef 100644 (file)
@@ -431,11 +431,6 @@ ApplicationWindow {
                         }\r
                     }\r
 \r
-                    background: Rectangle {\r
-                        color: currentAccountButton.hovered || currentAccountButton.visualFocus ? Style.currentUserHeaderTextColor : Style.currentUserHeaderColor\r
-                        opacity: 0.2\r
-                    }\r
-\r
                     RowLayout {\r
                         id: accountControlRowLayout\r
 \r