From 4f7b73cb70162529a85648abb510463c321e3ff9 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 29 Aug 2024 16:46:07 +0200 Subject: [PATCH] Fix warning: The current style does not support customization of this control (property: "background"). Signed-off-by: Camila Ayres --- src/gui/filedetails/NCInputTextEdit.qml | 6 ------ src/gui/filedetails/NCInputTextField.qml | 9 --------- src/gui/tray/TalkReplyTextField.qml | 9 --------- src/gui/tray/UnifiedSearchInputContainer.qml | 8 -------- 4 files changed, 32 deletions(-) diff --git a/src/gui/filedetails/NCInputTextEdit.qml b/src/gui/filedetails/NCInputTextEdit.qml index d0dac6608b..0598a1110e 100644 --- a/src/gui/filedetails/NCInputTextEdit.qml +++ b/src/gui/filedetails/NCInputTextEdit.qml @@ -53,12 +53,6 @@ TextEdit { width: height height: parent.height - // TODO: the current style does not support customization of this control - Rectangle { - radius: width / 2 - color: textFieldBorder.color - } - flat: true icon.source: "image://svgimage-custom-color/confirm.svg" + "/" + root.secondaryColor icon.color: hovered && enabled ? UserModel.currentUser.accentColor : root.secondaryColor diff --git a/src/gui/filedetails/NCInputTextField.qml b/src/gui/filedetails/NCInputTextField.qml index e034427020..658ed031ff 100644 --- a/src/gui/filedetails/NCInputTextField.qml +++ b/src/gui/filedetails/NCInputTextField.qml @@ -33,15 +33,6 @@ TextField { selectByMouse: true - // TODO: the current style does not support customization of this control - background: Rectangle { - id: textFieldBorder - radius: Style.slightlyRoundedButtonRadius - border.width: Style.normalBorderWidth - border.color: root.activeFocus ? root.validInput ? root.accentColor : Style.errorBoxBackgroundColor : root.secondaryColor - color: palette.base - } - Button { id: submitButton diff --git a/src/gui/tray/TalkReplyTextField.qml b/src/gui/tray/TalkReplyTextField.qml index 821965856d..259e28154e 100644 --- a/src/gui/tray/TalkReplyTextField.qml +++ b/src/gui/tray/TalkReplyTextField.qml @@ -17,15 +17,6 @@ TextField { onAccepted: sendReplyMessage() - // 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 baafff588d..0db524a8d6 100644 --- a/src/gui/tray/UnifiedSearchInputContainer.qml +++ b/src/gui/tray/UnifiedSearchInputContainer.qml @@ -45,14 +45,6 @@ TextField { selectByMouse: true - // 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 width: Style.trayListItemIconSize - anchors.leftMargin