menu: bluetooth settings
This commit is contained in:
@@ -2,6 +2,7 @@ import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.Services.Mpris
|
||||
import Quickshell.Bluetooth
|
||||
|
||||
FloatingWindow {
|
||||
title: "Quickshell debugger"
|
||||
@@ -43,6 +44,29 @@ FloatingWindow {
|
||||
font.pixelSize: 32
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: Bluetooth.devices
|
||||
Item {
|
||||
y: 16 * index
|
||||
Text {
|
||||
text: "bt" + index + modelData.name
|
||||
color: "#04047C"
|
||||
font.family: "Determination Mono"
|
||||
font.pixelSize: 16
|
||||
y: 64 + 128 + 1
|
||||
x: 64 + 1 + 512
|
||||
}
|
||||
Text {
|
||||
text: "bt" + index + modelData.name
|
||||
color: "#ff0000"
|
||||
font.family: "Determination Mono"
|
||||
font.pixelSize: 16
|
||||
y: 64 + 128
|
||||
x: 64 + 512
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: Mpris.players
|
||||
Item {
|
||||
@@ -54,7 +78,7 @@ FloatingWindow {
|
||||
asynchronous: true
|
||||
}
|
||||
Text {
|
||||
text: "mpris" + index + JSON.stringify(modelData.metadata, undefined, "\t")
|
||||
text: "mpris" + index + JSON.stringify(modelData, undefined, "\t")
|
||||
color: "#04047C"
|
||||
font.family: "Determination Mono"
|
||||
font.pixelSize: 16
|
||||
@@ -62,7 +86,7 @@ FloatingWindow {
|
||||
x: 64 + 1
|
||||
}
|
||||
Text {
|
||||
text: "mpris" + index + JSON.stringify(modelData.metadata, undefined, "\t")
|
||||
text: "mpris" + index + JSON.stringify(modelData, undefined, "\t")
|
||||
color: "#ff0000"
|
||||
font.family: "Determination Mono"
|
||||
font.pixelSize: 16
|
||||
|
||||
Reference in New Issue
Block a user