mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 03:26:02 +08:00
Rename properties in marketplace onboarding banner
CURA-8564
This commit is contained in:
parent
f10eea4fc4
commit
fe19587b7f
@ -14,7 +14,7 @@ Packages
|
|||||||
bannerVisible: UM.Preferences.getValue("cura/market_place_show_manage_packages_banner");
|
bannerVisible: UM.Preferences.getValue("cura/market_place_show_manage_packages_banner");
|
||||||
bannerIcon: UM.Theme.getIcon("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
|
bannerReadMoreUrl: "" // TODO add when support page is ready
|
||||||
onRemoveBanner: function() {
|
onRemoveBanner: function() {
|
||||||
UM.Preferences.setValue("cura/market_place_show_manage_packages_banner", false);
|
UM.Preferences.setValue("cura/market_place_show_manage_packages_banner", false);
|
||||||
bannerVisible = false;
|
bannerVisible = false;
|
||||||
|
@ -11,7 +11,7 @@ Packages
|
|||||||
bannerVisible: UM.Preferences.getValue("cura/market_place_show_material_banner")
|
bannerVisible: UM.Preferences.getValue("cura/market_place_show_material_banner")
|
||||||
bannerIcon: UM.Theme.getIcon("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
|
bannerReadMoreUrl: "" // TODO add when support page is ready
|
||||||
onRemoveBanner: function() {
|
onRemoveBanner: function() {
|
||||||
UM.Preferences.setValue("cura/market_place_show_material_banner", false);
|
UM.Preferences.setValue("cura/market_place_show_material_banner", false);
|
||||||
bannerVisible = false;
|
bannerVisible = false;
|
||||||
|
@ -11,9 +11,9 @@ import Cura 1.6 as Cura
|
|||||||
// Onboarding banner.
|
// Onboarding banner.
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
property alias bannerIcon: onboardingIcon.source;
|
property alias icon: onboardingIcon.source
|
||||||
property string bannerText
|
property alias text: infoText.text
|
||||||
property var onRemoveBanner
|
property var onRemove
|
||||||
property string readMoreUrl
|
property string readMoreUrl
|
||||||
|
|
||||||
Layout.preferredHeight: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
|
Layout.preferredHeight: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
|
||||||
@ -56,7 +56,7 @@ Rectangle
|
|||||||
hoverColor: UM.Theme.getColor("primary_text_hover")
|
hoverColor: UM.Theme.getColor("primary_text_hover")
|
||||||
iconSource: UM.Theme.getIcon("Cancel")
|
iconSource: UM.Theme.getIcon("Cancel")
|
||||||
|
|
||||||
onClicked: onRemoveBanner()
|
onClicked: onRemove()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Body
|
// Body
|
||||||
@ -71,7 +71,6 @@ Rectangle
|
|||||||
}
|
}
|
||||||
|
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
text: bannerText
|
|
||||||
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
color: UM.Theme.getColor("primary_text")
|
color: UM.Theme.getColor("primary_text")
|
||||||
|
@ -11,7 +11,7 @@ Packages
|
|||||||
bannerVisible: UM.Preferences.getValue("cura/market_place_show_plugin_banner")
|
bannerVisible: UM.Preferences.getValue("cura/market_place_show_plugin_banner")
|
||||||
bannerIcon: UM.Theme.getIcon("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
|
bannerReadMoreUrl: "" // TODO add when support page is ready
|
||||||
onRemoveBanner: function() {
|
onRemoveBanner: function() {
|
||||||
UM.Preferences.setValue("cura/market_place_show_plugin_banner", false)
|
UM.Preferences.setValue("cura/market_place_show_plugin_banner", false)
|
||||||
bannerVisible = false;
|
bannerVisible = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user