From 3fcee4f952cbfb0a178fb77a42f98d49a520aebb Mon Sep 17 00:00:00 2001 From: umorist47 Date: Tue, 17 Mar 2026 02:26:01 +0300 Subject: [PATCH] panel view fixes --- .../contents/ui/Compact.qml | 55 +++++++++++++------ com.umorist47.meowrelaygui/metadata.json | 2 +- 2 files changed, 40 insertions(+), 17 deletions(-) diff --git a/com.umorist47.meowrelaygui/contents/ui/Compact.qml b/com.umorist47.meowrelaygui/contents/ui/Compact.qml index 857c6b0..dc5ccfa 100644 --- a/com.umorist47.meowrelaygui/contents/ui/Compact.qml +++ b/com.umorist47.meowrelaygui/contents/ui/Compact.qml @@ -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) + } } } } diff --git a/com.umorist47.meowrelaygui/metadata.json b/com.umorist47.meowrelaygui/metadata.json index cb34d75..e969d0a 100644 --- a/com.umorist47.meowrelaygui/metadata.json +++ b/com.umorist47.meowrelaygui/metadata.json @@ -13,7 +13,7 @@ "Icon": "preferences-system-network-proxy", "Id": "com.umorist47.meowrelaygui", "Name": "MeowRelay", - "Version": "1.1", + "Version": "1.2", "Website": "", "License": "GPL3" },