Small UX adjustments.

part of CURA-8561
This commit is contained in:
Remco Burema 2021-11-16 16:07:54 +01:00
parent 5c875a1394
commit 7c29e69f55
No known key found for this signature in database
GPG Key ID: 215C49431D43F98C

View File

@ -12,7 +12,7 @@ Rectangle
{
property var packageData
width: parent ? parent.width - UM.Theme.getSize("default_margin").width : 0
width: parent ? parent.width - UM.Theme.getSize("thin_margin").width : 0
height: childrenRect.height
color: UM.Theme.getColor("main_background")
@ -109,13 +109,18 @@ Rectangle
visible: parent.hovered
}
Rectangle
{
anchors.fill: parent
color: UM.Theme.getColor("action_button_hovered")
radius: width
UM.RecolorImage
{
anchors.fill: parent
color: UM.Theme.getColor("primary")
source: UM.Theme.getIcon("CheckCircle")
}
}
//NOTE: Can we link to something here? (Probably a static link explaining what verified is):
// onClicked: Qt.openUrlExternally( XXXXXX )
@ -170,12 +175,13 @@ Rectangle
Rectangle
{
anchors.fill: parent
color: externalLinkButton.hovered ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("detail_background")
radius: width
color: externalLinkButton.hovered ? UM.Theme.getColor("action_button_hovered") : "transparent"
UM.RecolorImage
{
anchors.fill: parent
color: externalLinkButton.hovered ? UM.Theme.getColor("text_link") : UM.Theme.getColor("text")
color: UM.Theme.getColor("text")
source: UM.Theme.getIcon("LinkExternal")
}
}