From 398f17c50e175fdd32fd30f11ffc5a4dedffc54a Mon Sep 17 00:00:00 2001 From: "B.Melnik" Date: Mon, 30 Aug 2021 14:04:15 +0300 Subject: [PATCH] fix(StatusBaseInput): Make clear button bigger Closes: #294 --- .../src/StatusQ/Controls/StatusBaseInput.qml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml b/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml index 31ba8e5a5a..1f869b3114 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml @@ -100,7 +100,7 @@ Item { anchors.left: statusIcon.visible ? statusIcon.right : parent.left anchors.right: parent.right anchors.leftMargin: statusIcon.visible ? 8 : statusBaseInput.leftPadding - anchors.rightMargin: statusBaseInput.rightPadding + clearable ? clearButtton.width : 0 + anchors.rightMargin: statusBaseInput.rightPadding + clearable ? clearButton.width : 0 anchors.topMargin: statusBaseInput.topPadding anchors.bottomMargin: statusBaseInput.bottomPadding contentWidth: edit.paintedWidth @@ -205,20 +205,20 @@ Item { } // Rectangle StatusFlatRoundButton { - id: clearButtton + id: clearButton visible: edit.text.length != 0 && statusBaseInput.clearable && !statusBaseInput.multiline && edit.activeFocus anchors.right: parent.right - anchors.rightMargin: 11 + anchors.rightMargin: 8 anchors.verticalCenter: parent.verticalCenter type: StatusFlatRoundButton.Type.Secondary - width: 14 - height: 14 + width: 24 + height: 24 icon.name: "clear" - icon.width: 14 - icon.height: 14 + icon.width: 16 + icon.height: 16 icon.color: Theme.palette.baseColor1 onClicked: { edit.clear()