panel view fixes

This commit is contained in:
umorist 2026-03-17 02:26:01 +03:00
parent 751aab6ffa
commit 3fcee4f952
2 changed files with 40 additions and 17 deletions

View file

@ -43,7 +43,7 @@ Item{
// иконки не будет без этой залупы
anchors.fill: parent
anchors.leftMargin: 0
//anchors.leftMargin: 0
activeFocusOnTab: true
hoverEnabled: true
@ -65,7 +65,8 @@ Item{
property string labelText: "yaebalrot"
text: labelText === "yaebalrot" ? "" : labelText
color: text === "error" ? "red" : Kirigami.Theme.textColor
font.pointSize: Kirigami.Theme.mediumFont.pointSize
font.pixelSize: (parent.height * 0.6) // Responsive sizing
Layout.fillHeight: true
verticalAlignment: Text.AlignVCenter
}
}
@ -74,24 +75,46 @@ Item{
RowLayout {
id: govnoLayout
anchors.fill: parent
spacing: Kirigami.Units.smallSpacing
//spacing: Kirigami.Units.smallSpacing
spacing: 0
Repeater {
model: mouseArea.configArray
Loader {
id: govnoebanoe
// Logic to choose WHICH component to spawn
sourceComponent: (modelData === "meow_icon") ? meowIconComponent : genericLabelComponent
// Logic to pass DATA to that component
Binding {
target: govnoebanoe.item // The Label we just created
property: "labelText" // The property on the Label
value: root[modelData] // The live variable in root
when: govnoebanoe.status === Loader.Ready && modelData !== "meow_icon"
}
Row {
id: entryWrapper
Layout.fillHeight: true
spacing: 0
// спс гемини
Item {
width: Kirigami.Units.smallSpacing // Adjust size as needed
height: parent.height
visible: modelData !== "meow_icon" &&
(index === 0 || mouseArea.configArray[index - 1] !== "meow_icon")
}
Loader {
id: govnoebanoe
height: parent.height
// Logic to choose WHICH component to spawn
sourceComponent: (modelData === "meow_icon") ? meowIconComponent : genericLabelComponent
// Logic to pass DATA to that component
Binding {
target: govnoebanoe.item // The Label we just created
property: "labelText" // The property on the Label
value: root[modelData] // The live variable in root
when: govnoebanoe.status === Loader.Ready && modelData !== "meow_icon"
}
//Layout.fillHeight: true
}
Item {
width: Kirigami.Units.smallSpacing // Adjust size as needed
height: parent.height
visible: modelData !== "meow_icon" &&
(index === mouseArea.configArray.length - 1)
}
}
}
}

View file

@ -13,7 +13,7 @@
"Icon": "preferences-system-network-proxy",
"Id": "com.umorist47.meowrelaygui",
"Name": "MeowRelay",
"Version": "1.1",
"Version": "1.2",
"Website": "",
"License": "GPL3"
},