From 38f81c0b5722de0d97ab042addf620b32ce81656 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Wed, 28 Aug 2024 20:47:28 +0200 Subject: [PATCH] Fix warning: The current style does not support customization of this control (property: "background"). Signed-off-by: Camila Ayres --- src/gui/tray/HeaderButton.qml | 5 ----- src/gui/tray/TalkReplyTextField.qml | 15 ++++++++------- src/gui/tray/UnifiedSearchInputContainer.qml | 13 +++++++------ src/gui/tray/UserLine.qml | 5 ----- src/gui/tray/Window.qml | 5 ----- 5 files changed, 15 insertions(+), 28 deletions(-) diff --git a/src/gui/tray/HeaderButton.qml b/src/gui/tray/HeaderButton.qml index 24ebb9264..d0bae5032 100644 --- a/src/gui/tray/HeaderButton.qml +++ b/src/gui/tray/HeaderButton.qml @@ -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 diff --git a/src/gui/tray/TalkReplyTextField.qml b/src/gui/tray/TalkReplyTextField.qml index 8028c7fc8..821965856 100644 --- a/src/gui/tray/TalkReplyTextField.qml +++ b/src/gui/tray/TalkReplyTextField.qml @@ -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 diff --git a/src/gui/tray/UnifiedSearchInputContainer.qml b/src/gui/tray/UnifiedSearchInputContainer.qml index 5ab1c3820..baafff588 100644 --- a/src/gui/tray/UnifiedSearchInputContainer.qml +++ b/src/gui/tray/UnifiedSearchInputContainer.qml @@ -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 diff --git a/src/gui/tray/UserLine.qml b/src/gui/tray/UserLine.qml index f19d38a89..f1ecc779c 100644 --- a/src/gui/tray/UserLine.qml +++ b/src/gui/tray/UserLine.qml @@ -146,11 +146,6 @@ AbstractButton { Accessible.onPressAction: userMoreButtonMouseArea.clicked() onClicked: userMoreButtonMenu.visible ? userMoreButtonMenu.close() : userMoreButtonMenu.popup() - background: Rectangle { - anchors.fill: parent - anchors.margins: 1 - color: userMoreButton.hovered || userMoreButton.visualFocus ? palette.highlight : palette.window - } contentItem: Image { anchors.fill: parent diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 83acce6fe..7dfe5f9d1 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -431,11 +431,6 @@ ApplicationWindow { } } - background: Rectangle { - color: currentAccountButton.hovered || currentAccountButton.visualFocus ? Style.currentUserHeaderTextColor : Style.currentUserHeaderColor - opacity: 0.2 - } - RowLayout { id: accountControlRowLayout -- 2.30.2