new spin box, textfield and searchbar
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 10s
Python / lint-format (pull_request) Successful in 30s
Python / test (pull_request) Successful in 43s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m38s
C++ / build (pull_request) Successful in 2m18s

This commit is contained in:
2026-06-30 13:25:12 +02:00
parent 437f935f73
commit 157bdd8fd9
19 changed files with 641 additions and 1055 deletions
@@ -16,6 +16,10 @@ VerticalFadeFlickable {
fadeAmount: 0.1
topMargin: Appearance.padding.large
TapHandler {
onTapped: root.focus = true
}
ColumnLayout {
id: content
-75
View File
@@ -1,75 +0,0 @@
import QtQuick
import QtQuick.Layouts
import qs.Modules.SettingsNew
import qs.Components
import qs.Config
CustomRect {
id: root
required property SettingsState sState
border.color: DynamicColors.palette.m3outlineVariant
color: DynamicColors.tPalette.m3surfaceContainerLowest
implicitHeight: searchLayout.implicitHeight + Appearance.padding.normal * 2
radius: Appearance.rounding.full
Behavior on border.color {
CAnim {
}
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.IBeamCursor
onClicked: searchField.focus = true
}
RowLayout {
id: searchLayout
anchors.left: parent.left
anchors.margins: Appearance.padding.large
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: Appearance.spacing.small
MaterialIcon {
color: DynamicColors.palette.m3onSurfaceVariant
text: "search"
}
CustomTextField {
id: searchField
Layout.fillHeight: true
Layout.fillWidth: true
color: DynamicColors.palette.m3onSurfaceVariant
placeholderText: qsTr("Search settings")
placeholderTextColor: DynamicColors.palette.m3onSurfaceVariant
Binding {
property: "searchOpen"
target: root.sState
value: searchField.text.length > 0
}
}
IconButton {
icon: "close"
isRound: true
opacity: searchField.text.length > 0 ? 1 : 0
padding: Appearance.padding.extraSmall
type: IconButton.Text
Behavior on opacity {
Anim {
type: Anim.DefaultEffects
}
}
onClicked: searchField.clear()
}
}
}