forked from Shinonome/dots-hyprland
anime: fix anchors in layout
This commit is contained in:
@@ -513,25 +513,22 @@ Item {
|
|||||||
text: "•"
|
text: "•"
|
||||||
}
|
}
|
||||||
|
|
||||||
Item { // NSFW toggle
|
MouseArea { // NSFW toggle
|
||||||
visible: width > 0
|
visible: width > 0
|
||||||
implicitWidth: switchesRow.implicitWidth
|
implicitWidth: switchesRow.implicitWidth
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
hoverEnabled: true
|
||||||
|
PointingHandInteraction {}
|
||||||
|
onPressed: {
|
||||||
|
nsfwSwitch.checked = !nsfwSwitch.checked
|
||||||
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: switchesRow
|
id: switchesRow
|
||||||
spacing: 5
|
spacing: 5
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
hoverEnabled: true
|
|
||||||
PointingHandInteraction {}
|
|
||||||
onPressed: {
|
|
||||||
nsfwSwitch.checked = !nsfwSwitch.checked
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.leftMargin: 10
|
Layout.leftMargin: 10
|
||||||
@@ -552,6 +549,7 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item { Layout.fillWidth: true }
|
Item { Layout.fillWidth: true }
|
||||||
|
|||||||
Reference in New Issue
Block a user