mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 20:15:56 +08:00
Use an alias
property for the banner icon
CURA-8564
This commit is contained in:
parent
7e48657872
commit
67fc514b8f
@ -12,7 +12,7 @@ Packages
|
|||||||
pageTitle: catalog.i18nc("@header", "Manage packages")
|
pageTitle: catalog.i18nc("@header", "Manage packages")
|
||||||
|
|
||||||
bannerVisible: UM.Preferences.getValue("cura/market_place_show_manage_packages_banner");
|
bannerVisible: UM.Preferences.getValue("cura/market_place_show_manage_packages_banner");
|
||||||
bannerIcon: "ArrowDoubleCircleRight"
|
bannerIcon: UM.Theme.getIcon("ArrowDoubleCircleRight")
|
||||||
bannerText: catalog.i18nc("@text", "Manage your Ultimaker Cura plugins and material profiles here. Make sure to keep your plugins up to date and backup your setup regularly.")
|
bannerText: catalog.i18nc("@text", "Manage your Ultimaker Cura plugins and material profiles here. Make sure to keep your plugins up to date and backup your setup regularly.")
|
||||||
readMoreUrl: "" // TODO add when support page is ready
|
readMoreUrl: "" // TODO add when support page is ready
|
||||||
onRemoveBanner: function() {
|
onRemoveBanner: function() {
|
||||||
|
@ -9,7 +9,7 @@ Packages
|
|||||||
pageTitle: catalog.i18nc("@header", "Install Materials")
|
pageTitle: catalog.i18nc("@header", "Install Materials")
|
||||||
|
|
||||||
bannerVisible: UM.Preferences.getValue("cura/market_place_show_material_banner")
|
bannerVisible: UM.Preferences.getValue("cura/market_place_show_material_banner")
|
||||||
bannerIcon: "Spool"
|
bannerIcon: UM.Theme.getIcon("Spool")
|
||||||
bannerText: catalog.i18nc("@text", "Streamline your workflow and customize your Ultimaker Cura experience with plugins contributed by our amazing community of users.")
|
bannerText: catalog.i18nc("@text", "Streamline your workflow and customize your Ultimaker Cura experience with plugins contributed by our amazing community of users.")
|
||||||
readMoreUrl: "" // TODO add when support page is ready
|
readMoreUrl: "" // TODO add when support page is ready
|
||||||
onRemoveBanner: function() {
|
onRemoveBanner: function() {
|
||||||
|
@ -11,7 +11,7 @@ import Cura 1.6 as Cura
|
|||||||
// Onboarding banner.
|
// Onboarding banner.
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
property string bannerIcon
|
property alias bannerIcon: onboardingIcon.source;
|
||||||
property string bannerText
|
property string bannerText
|
||||||
property var onRemoveBanner
|
property var onRemoveBanner
|
||||||
property string readMoreUrl
|
property string readMoreUrl
|
||||||
@ -28,7 +28,7 @@ Rectangle
|
|||||||
color: UM.Theme.getColor("action_panel_secondary")
|
color: UM.Theme.getColor("action_panel_secondary")
|
||||||
|
|
||||||
// Icon
|
// Icon
|
||||||
Item
|
UM.RecolorImage
|
||||||
{
|
{
|
||||||
id: onboardingIcon
|
id: onboardingIcon
|
||||||
anchors
|
anchors
|
||||||
@ -39,12 +39,6 @@ Rectangle
|
|||||||
}
|
}
|
||||||
width: UM.Theme.getSize("button_icon").width
|
width: UM.Theme.getSize("button_icon").width
|
||||||
height: UM.Theme.getSize("button_icon").height
|
height: UM.Theme.getSize("button_icon").height
|
||||||
UM.RecolorImage
|
|
||||||
{
|
|
||||||
anchors.fill: parent
|
|
||||||
color: UM.Theme.getColor("primary_text")
|
|
||||||
source: UM.Theme.getIcon(bannerIcon)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close button
|
// Close button
|
||||||
|
@ -9,7 +9,7 @@ Packages
|
|||||||
pageTitle: catalog.i18nc("@header", "Install Plugins")
|
pageTitle: catalog.i18nc("@header", "Install Plugins")
|
||||||
|
|
||||||
bannerVisible: UM.Preferences.getValue("cura/market_place_show_plugin_banner")
|
bannerVisible: UM.Preferences.getValue("cura/market_place_show_plugin_banner")
|
||||||
bannerIcon: "Shop"
|
bannerIcon: UM.Theme.getIcon("Shop")
|
||||||
bannerText: catalog.i18nc("@text", "Select and install material profiles optimised for your Ultimaker 3D printers.")
|
bannerText: catalog.i18nc("@text", "Select and install material profiles optimised for your Ultimaker 3D printers.")
|
||||||
readMoreUrl: "" // TODO add when support page is ready
|
readMoreUrl: "" // TODO add when support page is ready
|
||||||
onRemoveBanner: function() {
|
onRemoveBanner: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user