-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5574 from opengisch/search-in-projects
Search cloud projects list functionality
- Loading branch information
Showing
6 changed files
with
112 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import QtQuick | ||
import QtQuick.Controls | ||
import org.qfield | ||
import Theme | ||
|
||
Item { | ||
property alias searchTerm: searchBar.text | ||
|
||
Rectangle { | ||
width: parent.width | ||
height: 40 | ||
radius: 6 | ||
border.width: 1 | ||
color: Theme.mainBackgroundColor | ||
border.color: searchBar.activeFocus ? Theme.mainColor : "transparent" | ||
|
||
QfToolButton { | ||
id: clearButton | ||
anchors.right: parent.right | ||
width: 40 | ||
height: 40 | ||
iconSource: Theme.getThemeIcon('ic_close_black_24dp') | ||
iconColor: Theme.mainTextColor | ||
bgcolor: "transparent" | ||
visible: searchBar.text !== "" | ||
onClicked: { | ||
searchBar.text = ''; | ||
} | ||
} | ||
|
||
QfToolButton { | ||
id: searchButton | ||
width: 40 | ||
height: 40 | ||
anchors.left: parent.left | ||
bgcolor: "transparent" | ||
iconSource: Theme.getThemeIcon("ic_baseline_search_black") | ||
iconColor: Theme.mainTextColor | ||
onClicked: { | ||
searchBar.focus = true; | ||
} | ||
} | ||
|
||
TextField { | ||
id: searchBar | ||
rightPadding: 7 | ||
anchors.left: searchButton.right | ||
anchors.right: clearButton.left | ||
anchors.leftMargin: -16 | ||
anchors.rightMargin: 4 | ||
height: 40 | ||
selectByMouse: true | ||
placeholderText: (!searchBar.activeFocus && text === "" && displayText === "") ? qsTr("Search for project") : "" | ||
background: Item { | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0ddc4d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Ta-daaa, freshly created APKs are available: arm64-android
Other architectures