Reformatted code a bit

This commit is contained in:
Digital Artifex
2026-08-09 03:25:46 -04:00
parent a8c0b981e9
commit 2f41ad19dd
+10 -5
View File
@@ -9,7 +9,8 @@ import QtQuick.Controls
import QtQuick.Layouts import QtQuick.Layouts
import KomplexHub import KomplexHub
Item { Item
{
property string searchTerm: "" property string searchTerm: ""
property string icon: "" property string icon: ""
property color color: "transparent" property color color: "transparent"
@@ -17,15 +18,18 @@ Item {
id: searchBarRootItem id: searchBarRootItem
clip: true clip: true
Rectangle { Rectangle
{
color: searchBarRootItem.color color: searchBarRootItem.color
anchors.fill: parent anchors.fill: parent
RowLayout { RowLayout
{
id: searchContainerLayout id: searchContainerLayout
anchors.fill: parent anchors.fill: parent
LineEdit { LineEdit
{
id: searchEdit id: searchEdit
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
@@ -40,7 +44,8 @@ Item {
onAccepted: () => searchBarRootItem.searchTerm = text onAccepted: () => searchBarRootItem.searchTerm = text
} }
SquareButton { SquareButton
{
id: searchButton id: searchButton
Layout.fillHeight: searchEdit.height Layout.fillHeight: searchEdit.height