From 96d5906ded38b7f7695eac98dea1f8ed3c4f468a Mon Sep 17 00:00:00 2001 From: Pierre Lamot <pierre@videolabs.io> Date: Fri, 10 Sep 2021 10:24:30 +0200 Subject: [PATCH] qml: remove the 3 char limit warning in SearchBox the limit no longer exists in the medialibrary --- modules/gui/qt/widgets/qml/SearchBox.qml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/gui/qt/widgets/qml/SearchBox.qml b/modules/gui/qt/widgets/qml/SearchBox.qml index 04a7b6802c58..780b56719bc4 100644 --- a/modules/gui/qt/widgets/qml/SearchBox.qml +++ b/modules/gui/qt/widgets/qml/SearchBox.qml @@ -109,14 +109,7 @@ FocusScope { width: 0 implicitHeight: searchBox.height - border.color: { - if ( searchBox.text.length < 3 && searchBox.text.length !== 0 ) - return VLCStyle.colors.alert - else if ( searchBox.activeFocus ) - return VLCStyle.colors.accent - else - return VLCStyle.colors.buttonBorder - } + border.color: searchBox.activeFocus ? VLCStyle.colors.accent : VLCStyle.colors.buttonBorder TextField { id: searchBox -- GitLab