From 9c3d803a8dfdb9280610d523d448aaea670ee3d6 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 19 Nov 2020 15:15:18 +0000 Subject: [PATCH] Remove spectral style from autocomplete list --- imports/NeoChat/Component/ChatTextInput.qml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/imports/NeoChat/Component/ChatTextInput.qml b/imports/NeoChat/Component/ChatTextInput.qml index 0af6dd8f3..147c30bf2 100644 --- a/imports/NeoChat/Component/ChatTextInput.qml +++ b/imports/NeoChat/Component/ChatTextInput.qml @@ -115,16 +115,7 @@ ToolBar { property bool isEmoji: modelData.unicode != null readonly property bool highlighted: autoCompleteListView.currentIndex == index - height: 36 - padding: 6 - - background: Rectangle { - visible: !isEmoji - color: highlighted ? border.color : "transparent" - border.color: isEmoji ? Kirigami.Theme.focusColor : modelData.color - border.width: 2 - radius: height / 2 - } + padding: Kirigami.Units.smallSpacing contentItem: RowLayout { spacing: Kirigami.Units.largeSpacing @@ -151,6 +142,7 @@ ToolBar { visible: !isEmoji text: autoCompleteText color: highlighted ? Kirigami.Theme.highlightTextColor : Kirigami.Theme.textColor + font.underline: highlighted verticalAlignment: Text.AlignVCenter rightPadding: Kirigami.Units.largeSpacing }