hide/show reply element
This commit is contained in:
parent
ddf0d4d065
commit
0446eda9d0
2 changed files with 18 additions and 7 deletions
|
@ -104,10 +104,10 @@ Page {
|
||||||
PullDownMenu {
|
PullDownMenu {
|
||||||
id: pulleyConversation
|
id: pulleyConversation
|
||||||
visible: type === "reply"
|
visible: type === "reply"
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr("Copy Link to Clipboard")
|
text: qsTr("Copy Link to Clipboard")
|
||||||
onClicked: if (toot_url === "") {
|
onClicked: if (toot_url === "") {
|
||||||
|
|
||||||
var test = toot_uri.split("/")
|
var test = toot_uri.split("/")
|
||||||
console.log(toot_uri)
|
console.log(toot_uri)
|
||||||
console.log(JSON.stringify(test))
|
console.log(JSON.stringify(test))
|
||||||
|
@ -117,9 +117,17 @@ Page {
|
||||||
Clipboard.text = urialt
|
Clipboard.text = urialt
|
||||||
}
|
}
|
||||||
else Clipboard.text = toot_uri
|
else Clipboard.text = toot_uri
|
||||||
|
} else Clipboard.text = toot_url
|
||||||
} else onClicked: Clipboard.text = toot_url
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuItem {
|
||||||
|
text: !panel.open ? qsTr("Reply") : qsTr("Hide Reply")
|
||||||
|
visible: type == "reply"
|
||||||
|
onClicked: if (!panel.open) {
|
||||||
|
panel.open = true
|
||||||
|
} else panel.open = false
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,8 +185,11 @@ Page {
|
||||||
+ btnContentWarning.height + Theme.paddingMedium
|
+ btnContentWarning.height + Theme.paddingMedium
|
||||||
+ (warningContent.visible ? warningContent.height : 0)
|
+ (warningContent.visible ? warningContent.height : 0)
|
||||||
dock: Dock.Bottom
|
dock: Dock.Bottom
|
||||||
open: true
|
open: if (type == "new") {
|
||||||
animationDuration: 200
|
true
|
||||||
|
} else false
|
||||||
|
|
||||||
|
animationDuration: 300
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -520,7 +531,7 @@ Page {
|
||||||
BackgroundItem {
|
BackgroundItem {
|
||||||
id: hiddenPanel
|
id: hiddenPanel
|
||||||
visible: !panel.open
|
visible: !panel.open
|
||||||
height: Theme.paddingLarge * 0.5
|
height: Theme.paddingLarge * 0.7
|
||||||
width: parent.width
|
width: parent.width
|
||||||
opacity: enabled ? 0.6 : 0.0
|
opacity: enabled ? 0.6 : 0.0
|
||||||
Behavior on opacity { FadeAnimator { duration: 400 } }
|
Behavior on opacity { FadeAnimator { duration: 400 } }
|
||||||
|
|
|
@ -301,7 +301,7 @@ Page {
|
||||||
Button {
|
Button {
|
||||||
id: btnMention
|
id: btnMention
|
||||||
preferredWidth: Theme.buttonWidthSmall
|
preferredWidth: Theme.buttonWidthSmall
|
||||||
text: "Mention"
|
text: qsTr("Mention")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
pageStack.push(Qt.resolvedUrl("ConversationPage.qml"), {
|
pageStack.push(Qt.resolvedUrl("ConversationPage.qml"), {
|
||||||
headerTitle: qsTr("Mention"),
|
headerTitle: qsTr("Mention"),
|
||||||
|
|
Loading…
Reference in a new issue