fix(Invitation+LinksBubble): fixed button radius corners

Closes #7308
This commit is contained in:
Alexandra Betouni 2022-09-28 17:59:22 +03:00 committed by Alexandra Betouni
parent 2ec0b5330a
commit ae7d49c9b1
2 changed files with 67 additions and 31 deletions

View File

@ -280,13 +280,26 @@ Item {
color: Style.current.separator
}
StatusFlatButton {
id: joinBtn
Item {
Layout.fillWidth: true
Layout.preferredHeight: 44
clip: true
StatusFlatButton {
id: joinBtn
width: parent.width
height: (parent.height+Style.current.padding)
anchors.top: parent.top
anchors.topMargin: -Style.current.padding
text: qsTr("Unsupported state")
contentItem: Item {
StatusBaseText {
anchors.centerIn: parent
anchors.verticalCenterOffset: Style.current.halfPadding
font: joinBtn.font
color: joinBtn.enabled ? joinBtn.textColor : joinBtn.disabledTextColor
text: joinBtn.text
}
}
onClicked: {
if (rectangleBubble.state === "joined") {
@ -308,8 +321,8 @@ Item {
}
Component.onCompleted: {
// FIXME: extract StatusButtonBackground or expose radius property in StatusBaseButton
background.radius = 16
background.radius = Style.current.padding;
}
}
}
}

View File

@ -377,6 +377,9 @@ Column {
}
width: parent.width
anchors.top: sep1.bottom
Component.onCompleted: {
background.radius = 0;
}
}
Separator {
@ -385,13 +388,33 @@ Column {
anchors.topMargin: 0
}
Item {
width: parent.width
height: 44
anchors.top: sep2.bottom
clip: true
StatusFlatButton {
id: dontAskBtn
width: parent.width
height: (parent.height+Style.current.padding)
anchors.top: parent.top
anchors.topMargin: -Style.current.padding
contentItem: Item {
StatusBaseText {
anchors.centerIn: parent
anchors.verticalCenterOffset: Style.current.halfPadding
font: dontAskBtn.font
color: dontAskBtn.enabled ? dontAskBtn.textColor : dontAskBtn.disabledTextColor
text: qsTr("Don't ask me again")
}
}
onClicked: {
RootStore.setNeverAskAboutUnfurlingAgain(true);
}
width: parent.width
anchors.top: sep2.bottom
Component.onCompleted: {
background.radius = Style.current.padding;
}
}
}
}
}