Fix warning: The current style does not support customization of this control (proper...
authorCamila Ayres <hello@camilasan.com>
Thu, 29 Aug 2024 14:46:07 +0000 (16:46 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 6 Sep 2024 08:42:08 +0000 (10:42 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/filedetails/NCInputTextEdit.qml
src/gui/filedetails/NCInputTextField.qml
src/gui/tray/TalkReplyTextField.qml
src/gui/tray/UnifiedSearchInputContainer.qml

index d0dac6608ba93d6b001bf6606181ca24a564502c..0598a1110e74233f96ec2f905bd700fb5430edbc 100644 (file)
@@ -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
index e0344270207c30a4946fa5b5f147a3ae5ba1297c..658ed031ff4f56e868a17d110d2161d8442e0531 100644 (file)
@@ -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
 
index 821965856d70ef63f6a8ea3635f68d3400a34eeb..259e28154ed650acee6ef307066c8e8df4673246 100644 (file)
@@ -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
 
index baafff588dd013eb3ed32410d3aeda02877c5b75..0db524a8d6b2beab5bcd4fd1a5bbea48895629bd 100644 (file)
@@ -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