From: Camila Ayres Date: Thu, 29 Aug 2024 14:46:07 +0000 (+0200) Subject: Fix warning: The current style does not support customization of this control (proper... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~34^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0001a15244feabd1026c5329d0540236752a2b1a;p=nextcloud-desktop.git Fix warning: The current style does not support customization of this control (property: "background"). Signed-off-by: Camila Ayres --- diff --git a/src/gui/filedetails/NCInputTextEdit.qml b/src/gui/filedetails/NCInputTextEdit.qml index d0dac6608..0598a1110 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 e03442702..658ed031f 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 821965856..259e28154 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 baafff588..0db524a8d 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