Files
z-bar-qt/Modules/Settings/NavPane.qml
zach 7d6f3cc275
C++ / fmt (pull_request) Successful in 4s
JS/TS / fmt (pull_request) Successful in 20s
JS/TS / lint (pull_request) Successful in 22s
Python / static (pull_request) Successful in 57s
Rust / fmt (pull_request) Successful in 1m2s
C++ / build (pull_request) Successful in 2m10s
Rust / build (pull_request) Successful in 1m50s
Rust / clippy (pull_request) Successful in 1m25s
Python / verify (pull_request) Successful in 2m58s
C++ / clang-tidy (pull_request) Successful in 7m8s
initial commit for media widget update + anim tokens restructure
2026-08-18 16:14:41 +02:00

54 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Layouts
import qs.Components
import qs.Modules.Settings.NavPane
import ZShell.Config
import qs.Services
ColumnLayout {
id: root
required property SettingsState sState
spacing: Tokens.spacing.largeIncreased
SearchBar {
id: searchField
Layout.fillWidth: true
bg.border.color: Colors.palette.m3outlineVariant
bg.color: Colors.tPalette.m3surfaceContainerLowest
clearIcon.font.pointSize: Tokens.font.size.large
clearIcon.padding: Tokens.padding.extraSmall
font.pointSize: Tokens.font.size.normal
placeholderText: qsTr("Search settings")
searchIcon.anchors.leftMargin: Tokens.padding.largeIncreased
searchIcon.font.pointSize: Tokens.font.size.large
Behavior on bg.border.color {
CAnim {
}
}
Binding {
property: "searchOpen"
target: root.sState
value: searchField.text.length > 0
}
Binding {
property: "searchText"
target: root.sState
value: searchField.text
}
}
NavLocations {
Layout.bottomMargin: -bottomMargin
Layout.fillHeight: true
Layout.fillWidth: true
Layout.topMargin: -topMargin
sState: root.sState
}
}