not referenced anymore
This commit is contained in:
parent
c3a1bb4553
commit
3d34780820
1 changed files with 0 additions and 46 deletions
|
|
@ -1,46 +0,0 @@
|
||||||
pragma ComponentBehavior: Bound
|
|
||||||
|
|
||||||
import qs.config
|
|
||||||
import qs.styled
|
|
||||||
import QtQuick
|
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell.Bluetooth
|
|
||||||
|
|
||||||
ColumnLayout {
|
|
||||||
id: root
|
|
||||||
required property var devices
|
|
||||||
signal deviceActivated(device: BluetoothDevice)
|
|
||||||
|
|
||||||
Repeater {
|
|
||||||
model: root.devices
|
|
||||||
delegate: Clickable {
|
|
||||||
id: device
|
|
||||||
required property var modelData
|
|
||||||
|
|
||||||
implicitWidth: row.width
|
|
||||||
implicitHeight: row.height
|
|
||||||
Layout.fillWidth: true
|
|
||||||
onClicked: {
|
|
||||||
root.deviceActivated(modelData);
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
id: row
|
|
||||||
|
|
||||||
StyledText {
|
|
||||||
topPadding: 8
|
|
||||||
bottomPadding: 8
|
|
||||||
leftPadding: 8
|
|
||||||
rightPadding: 8
|
|
||||||
text: device.modelData.deviceName
|
|
||||||
color: device.containsMouse ? Theme.palette.base300 : Theme.palette.basecontent
|
|
||||||
Behavior on color {
|
|
||||||
ColorAnimation {
|
|
||||||
duration: 200
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue