Fixed PopUpWindow

This commit is contained in:
Hannes
2026-06-19 15:55:51 +02:00
parent 52408627ef
commit 8888b84b0a
3 changed files with 22 additions and 9 deletions
+16 -5
View File
@@ -38,13 +38,14 @@ MouseArea {
id: clockPopup
anchorItem: networkButton
anchorHovered: networkButton.containsMouse
property int count: 17
property var texts: [text1, text2, text3, text4, text5, text6, text7, text8, text9, text10, text11, text12, text13, text14, text15, text16, text17]
implicitWidth: Config.maxTextWidth(count, texts) + (Config.spacing_fun(networkButton.height) * 3)
implicitHeight: (text1.height*count)+(Config.spacing_fun(networkButton.height) * (count + 4))
popupWidth: 500
// property int count: 17
// property var texts: [text1, text2, text3, text4, text5, text6, text7, text8, text9, text10, text11, text12, text13, text14, text15, text16, text17]
// implicitWidth: Config.maxTextWidth(count, texts) + (Config.spacing_fun(networkButton.height) * 3)
// implicitHeight: text1.height*count+(Config.spacing_fun(networkButton.height) * (count + 2))
Column {
width: parent.width
// width: parent.width
spacing: Config.spacing_fun(networkButton.height)
Text {
id: text1
@@ -86,6 +87,16 @@ MouseArea {
font.family: Config.font
}
Text {
id: text45
text: "wifiName: " + NetworkState.wifiName
wrapMode: Text.WordWrap
color: Colors.primary
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: Config.font_size_tiny(bar.height)
font.family: Config.font
}
Text {
id: text5
text: "signalStrength: " + NetworkState.signalStrength