mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Make buttons in account fill the whole width
That makes them easier to click. The text of these buttons was going outside of the buttons themselves. That could be a problem, but it's not visible since the button has no background. Contributes to issue CURA-9143.
This commit is contained in:
parent
f1d75fe827
commit
06c15f08aa
@ -90,8 +90,9 @@ Column
|
|||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
id: cloudButton
|
id: cloudButton
|
||||||
width: UM.Theme.getSize("account_button").width
|
width: parent.width
|
||||||
height: UM.Theme.getSize("account_button").height
|
height: UM.Theme.getSize("account_button").height
|
||||||
|
|
||||||
text: "Ultimaker Digital Factory"
|
text: "Ultimaker Digital Factory"
|
||||||
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerDigitalFactoryUrl + "?utm_source=cura&utm_medium=software&utm_campaign=menu-visit-DF")
|
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerDigitalFactoryUrl + "?utm_source=cura&utm_medium=software&utm_campaign=menu-visit-DF")
|
||||||
fixedWidthMode: false
|
fixedWidthMode: false
|
||||||
@ -100,8 +101,9 @@ Column
|
|||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
id: accountButton
|
id: accountButton
|
||||||
width: UM.Theme.getSize("account_button").width
|
width: parent.width
|
||||||
height: UM.Theme.getSize("account_button").height
|
height: UM.Theme.getSize("account_button").height
|
||||||
|
|
||||||
text: catalog.i18nc("@button", "Ultimaker Account")
|
text: catalog.i18nc("@button", "Ultimaker Account")
|
||||||
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "?utm_source=cura&utm_medium=software&utm_campaign=menu-visit-account")
|
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "?utm_source=cura&utm_medium=software&utm_campaign=menu-visit-account")
|
||||||
fixedWidthMode: false
|
fixedWidthMode: false
|
||||||
@ -117,7 +119,11 @@ Column
|
|||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
id: signOutButton
|
id: signOutButton
|
||||||
|
width: parent.width
|
||||||
|
height: UM.Theme.getSize("account_button").height
|
||||||
|
|
||||||
onClicked: Cura.API.account.logout()
|
onClicked: Cura.API.account.logout()
|
||||||
text: catalog.i18nc("@button", "Sign Out")
|
text: catalog.i18nc("@button", "Sign Out")
|
||||||
|
fixedWidthMode: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user