mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Move filedetails button to activity top row
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
892d490101
commit
95a8ecf013
1 changed files with 25 additions and 25 deletions
|
@ -175,6 +175,30 @@ RowLayout {
|
||||||
visible: text !== ""
|
visible: text !== ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CustomButton {
|
||||||
|
id: fileDetailsButton
|
||||||
|
|
||||||
|
Layout.preferredWidth: Style.dismissButtonSize
|
||||||
|
Layout.preferredHeight: Style.dismissButtonSize
|
||||||
|
Layout.alignment: Qt.AlignTop | Qt.AlignRight
|
||||||
|
|
||||||
|
icon.source: "image://svgimage-custom-color/more.svg/" + Style.ncTextColor
|
||||||
|
|
||||||
|
NCToolTip {
|
||||||
|
text: qsTr("Open file details")
|
||||||
|
visible: parent.hovered
|
||||||
|
}
|
||||||
|
|
||||||
|
display: Button.IconOnly
|
||||||
|
padding: 0
|
||||||
|
bgColor: Style.lightHover
|
||||||
|
bgNormalOpacity: 0
|
||||||
|
|
||||||
|
visible: model.showFileDetails
|
||||||
|
|
||||||
|
onClicked: Systray.presentShareViewInTray(model.openablePath)
|
||||||
|
}
|
||||||
|
|
||||||
CustomButton {
|
CustomButton {
|
||||||
id: dismissActionButton
|
id: dismissActionButton
|
||||||
|
|
||||||
|
@ -206,7 +230,7 @@ RowLayout {
|
||||||
Layout.minimumHeight: Style.minimumActivityItemHeight
|
Layout.minimumHeight: Style.minimumActivityItemHeight
|
||||||
Layout.maximumWidth: root.width - thumbnailItem.width
|
Layout.maximumWidth: root.width - thumbnailItem.width
|
||||||
spacing: Style.trayHorizontalMargin
|
spacing: Style.trayHorizontalMargin
|
||||||
visible: activityTextInfo.visible || fileDetailsButton.visible || talkReplyMessageSent.visible || activityActions.visible
|
visible: activityTextInfo.visible || talkReplyMessageSent.visible || activityActions.visible
|
||||||
|
|
||||||
EnforcedPlainTextLabel {
|
EnforcedPlainTextLabel {
|
||||||
id: activityTextInfo
|
id: activityTextInfo
|
||||||
|
@ -232,30 +256,6 @@ RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
CustomButton {
|
|
||||||
id: fileDetailsButton
|
|
||||||
|
|
||||||
Layout.preferredWidth: Style.headerButtonIconSize
|
|
||||||
Layout.preferredHeight: Style.headerButtonIconSize
|
|
||||||
Layout.alignment: Qt.AlignTop | Qt.AlignRight
|
|
||||||
|
|
||||||
icon.source: "image://svgimage-custom-color/more.svg/" + Style.ncTextColor
|
|
||||||
|
|
||||||
NCToolTip {
|
|
||||||
text: qsTr("Open file details")
|
|
||||||
visible: parent.hovered
|
|
||||||
}
|
|
||||||
|
|
||||||
display: Button.IconOnly
|
|
||||||
padding: 0
|
|
||||||
bgColor: Style.lightHover
|
|
||||||
bgNormalOpacity: 0
|
|
||||||
|
|
||||||
visible: model.showFileDetails
|
|
||||||
|
|
||||||
onClicked: Systray.presentShareViewInTray(model.openablePath)
|
|
||||||
}
|
|
||||||
|
|
||||||
EnforcedPlainTextLabel {
|
EnforcedPlainTextLabel {
|
||||||
id: talkReplyMessageSent
|
id: talkReplyMessageSent
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue