fixed bluetooth height
This commit is contained in:
@@ -11,8 +11,8 @@ import "../Services/"
|
|||||||
Container {
|
Container {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property double devicePlaqeuSpacing
|
property double devicePlaqueHeight: 60
|
||||||
property double devicePlaqueHeight
|
property double devicePlaqueSpacing: 4
|
||||||
required property HyprlandMonitor monitor
|
required property HyprlandMonitor monitor
|
||||||
property bool opened: false
|
property bool opened: false
|
||||||
|
|
||||||
@@ -50,7 +50,8 @@ Container {
|
|||||||
when: root.opened == true && root.hovered == true
|
when: root.opened == true && root.hovered == true
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
root.boxHeight: 300
|
root.boxHeight: (root.devicePlaqueHeight * BluetoothManager.getConnectedDevicesList().length) + (
|
||||||
|
root.devicePlaqueSpacing * (BluetoothManager.getConnectedDevicesList().length + 1))
|
||||||
root.boxRadius: 12
|
root.boxRadius: 12
|
||||||
root.boxWidth: 350
|
root.boxWidth: 350
|
||||||
}
|
}
|
||||||
@@ -95,8 +96,8 @@ Container {
|
|||||||
id: deviceListRoot
|
id: deviceListRoot
|
||||||
|
|
||||||
property string component: "deviceList"
|
property string component: "deviceList"
|
||||||
property double plaqueHeight: 60
|
property double plaqueHeight: root.devicePlaqueHeight
|
||||||
property double plaqueSpacing: 4
|
property double plaqueSpacing: root.devicePlaqueSpacing
|
||||||
|
|
||||||
spacing: plaqueSpacing
|
spacing: plaqueSpacing
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user