mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:49:10 +08:00
Use Label for SignIn button
This commit is contained in:
parent
2f33beff36
commit
a2c2424d69
@ -120,18 +120,24 @@ Item
|
|||||||
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
|
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Label
|
||||||
{
|
{
|
||||||
id: signInButton
|
id: signInButton
|
||||||
anchors.left: createAccountButton.right
|
anchors.left: createAccountButton.right
|
||||||
anchors.verticalCenter: finishButton.verticalCenter
|
anchors.verticalCenter: finishButton.verticalCenter
|
||||||
|
anchors.margins: UM.Theme.getSize("welcome_pages_default_margin").width
|
||||||
text: catalog.i18nc("@button", "Sign in")
|
text: catalog.i18nc("@button", "Sign in")
|
||||||
width: 80
|
color: UM.Theme.getColor("secondary_button_text")
|
||||||
shadowEnabled: false
|
font: UM.Theme.getFont("medium")
|
||||||
color: "transparent"
|
renderType: Text.NativeRendering
|
||||||
hoverColor: "transparent"
|
|
||||||
textHoverColor: UM.Theme.getColor("primary")
|
MouseArea
|
||||||
fixedWidthMode: true
|
{
|
||||||
onClicked: Cura.API.account.login()
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
onClicked: Cura.API.account.login()
|
||||||
|
onEntered: parent.font.underline = true
|
||||||
|
onExited: parent.font.underline = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user