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.fill: parent
anchors.leftMargin: 0 //anchors.leftMargin: 0
activeFocusOnTab: true activeFocusOnTab: true
hoverEnabled: true hoverEnabled: true
@ -65,7 +65,8 @@ Item{
property string labelText: "yaebalrot" property string labelText: "yaebalrot"
text: labelText === "yaebalrot" ? "" : labelText text: labelText === "yaebalrot" ? "" : labelText
color: text === "error" ? "red" : Kirigami.Theme.textColor 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 verticalAlignment: Text.AlignVCenter
} }
} }
@ -74,13 +75,27 @@ Item{
RowLayout { RowLayout {
id: govnoLayout id: govnoLayout
anchors.fill: parent anchors.fill: parent
spacing: Kirigami.Units.smallSpacing //spacing: Kirigami.Units.smallSpacing
spacing: 0
Repeater { Repeater {
model: mouseArea.configArray model: mouseArea.configArray
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 { Loader {
id: govnoebanoe id: govnoebanoe
height: parent.height
// Logic to choose WHICH component to spawn // Logic to choose WHICH component to spawn
sourceComponent: (modelData === "meow_icon") ? meowIconComponent : genericLabelComponent sourceComponent: (modelData === "meow_icon") ? meowIconComponent : genericLabelComponent
@ -91,7 +106,15 @@ Item{
value: root[modelData] // The live variable in root value: root[modelData] // The live variable in root
when: govnoebanoe.status === Loader.Ready && modelData !== "meow_icon" when: govnoebanoe.status === Loader.Ready && modelData !== "meow_icon"
} }
Layout.fillHeight: true //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", "Icon": "preferences-system-network-proxy",
"Id": "com.umorist47.meowrelaygui", "Id": "com.umorist47.meowrelaygui",
"Name": "MeowRelay", "Name": "MeowRelay",
"Version": "1.1", "Version": "1.2",
"Website": "", "Website": "",
"License": "GPL3" "License": "GPL3"
}, },