launcher v1
This commit is contained in:
parent
8504f8ddd2
commit
d71c9604a6
12 changed files with 1608 additions and 4 deletions
51
modules/launcher/AppList.qml
Normal file
51
modules/launcher/AppList.qml
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import "items"
|
||||
import "services"
|
||||
import qs.config
|
||||
import qs.widgets
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
StyledListView {
|
||||
id: root
|
||||
|
||||
required property TextField search
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
model: ScriptModel {
|
||||
id: model
|
||||
|
||||
onValuesChanged: root.currentIndex = 0
|
||||
values: Apps.query(search.text)
|
||||
}
|
||||
|
||||
spacing: 12
|
||||
|
||||
implicitWidth: 500
|
||||
implicitHeight: 500
|
||||
highlightMoveDuration: 100
|
||||
highlightResizeDuration: 0
|
||||
highlight: Rectangle {
|
||||
radius: 8
|
||||
color: Theme.palette.primary
|
||||
}
|
||||
|
||||
header: StyledText {
|
||||
text: "Apps"
|
||||
font.pixelSize: 18
|
||||
padding: 8
|
||||
}
|
||||
delegate: appItem
|
||||
|
||||
Component {
|
||||
id: appItem
|
||||
|
||||
AppItem {
|
||||
active: ListView.isCurrentItem
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue