mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 08:09:15 +08:00
Simplify QML of application button
CURA-8421
This commit is contained in:
parent
e0b38f2782
commit
dc181a3426
@ -51,10 +51,9 @@ Button
|
|||||||
width: UM.Theme.getSize("application_switcher_icon").width
|
width: UM.Theme.getSize("application_switcher_icon").width
|
||||||
height: width
|
height: width
|
||||||
|
|
||||||
Item
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
id: externalLinkIndicator
|
id: externalLinkIndicatorIcon
|
||||||
|
|
||||||
visible: base.isExternalLink
|
visible: base.isExternalLink
|
||||||
|
|
||||||
anchors
|
anchors
|
||||||
@ -64,19 +63,12 @@ Button
|
|||||||
right: parent.right
|
right: parent.right
|
||||||
rightMargin: - Math.round(width * 5 / 6)
|
rightMargin: - Math.round(width * 5 / 6)
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.RecolorImage
|
|
||||||
{
|
|
||||||
id: externalLinkIndicatorIcon
|
|
||||||
anchors.centerIn: parent
|
|
||||||
|
|
||||||
width: UM.Theme.getSize("icon_indicator").width
|
width: UM.Theme.getSize("icon_indicator").width
|
||||||
height: width
|
height: width
|
||||||
color: UM.Theme.getColor("icon")
|
color: UM.Theme.getColor("icon")
|
||||||
source: UM.Theme.getIcon("LinkExternal")
|
source: UM.Theme.getIcon("LinkExternal")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user