mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:55:59 +08:00
Add restart required banner
CURA-8587
This commit is contained in:
parent
863e92d0d2
commit
7a902f8314
@ -228,4 +228,51 @@ Window
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
height: quitButton.height + 2 * UM.Theme.getSize("default_margin").width
|
||||||
|
color: UM.Theme.getColor("primary")
|
||||||
|
visible: false // TODO: enable this when restart is required
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
bottom: parent.bottom
|
||||||
|
}
|
||||||
|
|
||||||
|
RowLayout
|
||||||
|
{
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
left: parent.left
|
||||||
|
right: parent.right
|
||||||
|
verticalCenter: parent.verticalCenter
|
||||||
|
margins: UM.Theme.getSize("default_margin").width
|
||||||
|
}
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
UM.RecolorImage
|
||||||
|
{
|
||||||
|
id: bannerIcon
|
||||||
|
source: UM.Theme.getIcon("Plugin")
|
||||||
|
|
||||||
|
color: UM.Theme.getColor("primary_button_text")
|
||||||
|
implicitWidth: UM.Theme.getSize("banner_icon_size").width
|
||||||
|
implicitHeight: UM.Theme.getSize("banner_icon_size").height
|
||||||
|
}
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
color: UM.Theme.getColor("primary_button_text")
|
||||||
|
text: catalog.i18nc("@button", "In order to use the package you will need to restart Cura")
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
|
renderType: Text.NativeRendering
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
Cura.SecondaryButton
|
||||||
|
{
|
||||||
|
id: quitButton
|
||||||
|
text: catalog.i18nc("@button", "Quit Ultimaker Cura")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@
|
|||||||
"lining": [192, 193, 194, 255],
|
"lining": [192, 193, 194, 255],
|
||||||
"viewport_overlay": [246, 246, 246, 255],
|
"viewport_overlay": [246, 246, 246, 255],
|
||||||
|
|
||||||
"primary": [50, 130, 255, 255],
|
"primary": [25, 110, 240, 255],
|
||||||
"primary_shadow": [64, 47, 205, 255],
|
"primary_shadow": [64, 47, 205, 255],
|
||||||
"primary_hover": [48, 182, 231, 255],
|
"primary_hover": [48, 182, 231, 255],
|
||||||
"primary_text": [255, 255, 255, 255],
|
"primary_text": [255, 255, 255, 255],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user