panel view fixes
This commit is contained in:
parent
751aab6ffa
commit
3fcee4f952
2 changed files with 40 additions and 17 deletions
|
|
@ -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,24 +75,46 @@ 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 {
|
||||||
Loader {
|
id: entryWrapper
|
||||||
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"
|
|
||||||
}
|
|
||||||
Layout.fillHeight: true
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue