Skip to content

Commit

Permalink
Updated screen for Accepted Invitation.
Browse files Browse the repository at this point in the history
Applied review comments.
  • Loading branch information
iiLubos committed Dec 12, 2023
1 parent 755ef4b commit 432ae90
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 47 deletions.
2 changes: 0 additions & 2 deletions app/qml/components/MMDrawer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ Drawer {
id: closeButton

source: __style.closeButtonIcon
//anchors.right: parent.right
//anchors.rightMargin: 20 * __dp

MouseArea {
anchors.fill: parent
Expand Down
2 changes: 1 addition & 1 deletion app/qml/components/MMLink.qml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Button {

background: Rectangle {
width: control.width
height: control,height
height: control.height
color: __style.transparentColor
}
}
125 changes: 84 additions & 41 deletions app/qml/onboarding/MMAcceptInvitation.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,68 +11,111 @@ import QtQuick.Layouts
import QtQuick.Controls

import "../components"
import "../inputs"

Page {
id: root

required property string user
required property string workspace

signal backClicked
signal continueClicked
signal createWorkspaceClicked

Column {
spacing: 20
Rectangle {
anchors.fill: parent
color: __style.lightGreenColor
}

MMHeader {
headerTitle: qsTr("Accept Invitation")
ScrollView {
width: parent.width
height: parent.height

onBackClicked: root.backClicked()
}
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AlwaysOff

Column {
id: mainColumn

width: root.width
spacing: 20 * __dp
leftPadding: 20 * __dp
rightPadding: 20 * __dp
topPadding: 100 * __dp
bottomPadding: 20 * __dp

Item {
width: bg.width
height: bg.height
Item {
width: parent.width - mainColumn.leftPadding - mainColumn.rightPadding
height: bg.height

MMIcon {
id: bg
source: __style.acceptInvitationImage
}
Image {
id: bg

MMIcon {
id: fg
x: ( bg.width - fg.width ) / 2 + 7
y: ( bg.height - fg.height ) / 2 + 5
source: __style.acceptInvitationLogoImage
}
}
anchors.horizontalCenter: parent.horizontalCenter
source: __style.acceptInvitationImage

Label {
Image {
id: fg
x: ( bg.width - fg.width ) / 2 + 7
y: ( bg.height - fg.height ) / 2 + 5
source: __style.acceptInvitationLogoImage
}
}
}

Text {
width: parent.width - mainColumn.leftPadding - mainColumn.rightPadding
text: qsTr("You have been invited to workspace")
font: __style.t1
font: __style.h3
color: __style.forestColor
}
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
lineHeight: 1.2
}

Label {
text: qsTr("User %1 has invited you to join his workspace").arg("andrej")
font: __style.p2
}
Text {
width: parent.width - mainColumn.leftPadding - mainColumn.rightPadding
text: qsTr("User %1 has invited you to join his workspace").arg(root.user)
font: __style.p5
color: __style.nightColor
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
lineHeight: 1.5
}

Label {
text: "my-workspace-funny"
font: __style.p2
}
Item { width: 1; height: 1 }

MMButton {
onClicked: root.continueClicked()
text: qsTr("Join workspace")
}
Text {
width: parent.width - mainColumn.leftPadding - mainColumn.rightPadding
text: root.workspace
font: __style.t1
color: __style.nightColor
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
lineHeight: 1.5
}

MMHlineText {
title: qsTr("or")
}
Item { width: 1; height: 50 }

MMButton {
width: parent.width - mainColumn.leftPadding - mainColumn.rightPadding
text: qsTr("Join workspace")

onClicked: root.continueClicked()
}

MMHlineText {
width: parent.width - mainColumn.leftPadding - mainColumn.rightPadding
title: qsTr("or")
}

MMLinkButton {
width: parent.width - mainColumn.leftPadding - mainColumn.rightPadding
text: qsTr("Create new workspace")

MMLinkButton {
onClicked: root.createWorkspaceClicked()
text: qsTr("Create new workspace")
onClicked: root.createWorkspaceClicked()
}
}
}
}
11 changes: 8 additions & 3 deletions gallery/qml/pages/OnboardingPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,21 @@ Page {
onBackClicked: visible = false
}



MMAcceptInvitation {
id: acceptInvitation

anchors.fill: parent
visible: false
user: "Lubos"
workspace: "my-workspace.funny"

onBackClicked: {visible=false}
onBackClicked: visible = false
onContinueClicked: console.log("Join workspace clicked")
onCreateWorkspaceClicked: console.log("Create new workspace clicked")
}



MMCreateWorkspace {
id: createWorkspace
anchors.fill: parent
Expand Down

1 comment on commit 432ae90

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.12.497211 just submitted!

Please sign in to comment.