Browse Source

Sponsor cura added at designated loc

CURA-10832
saumya.jain 1 year ago
parent
commit
4f6c0001b6

+ 8 - 0
resources/qml/Actions.qml

@@ -60,6 +60,7 @@ Item
     property alias showProfileFolder: showProfileFolderAction
     property alias documentation: documentationAction
     property alias showTroubleshooting: showTroubleShootingAction
+    property alias openSponsershipPage : openSponsershipPageAction
     property alias reportBug: reportBugAction
     property alias whatsNew: whatsNewAction
     property alias about: aboutAction
@@ -90,6 +91,13 @@ Item
         text: catalog.i18nc("@action:inmenu", "Show Online Troubleshooting")
     }
 
+    Action
+    {
+        id: openSponsershipPageAction
+        onTriggered: Qt.openUrlExternally("https://ultimaker.com/software/ultimaker-cura/sponsor/")
+        text: catalog.i18nc("@action:inmenu", "Sponsor Cura")
+    }
+
     Action
     {
         id: toggleFullScreenAction

+ 4 - 4
resources/qml/ApplicationSwitcher/ApplicationSwitcherPopup.qml

@@ -57,10 +57,10 @@ Popup
                     permissionsRequired: []
                 },
                 {
-                    displayName: "UltiMaker Academy", //Not translated, since it's a brand name.
-                    thumbnail: UM.Theme.getIcon("Knowledge"),
-                    description: catalog.i18nc("@tooltip:button", "Become a 3D printing expert with UltiMaker e-learning."),
-                    link: "https://academy.ultimaker.com/?utm_source=cura&utm_medium=software&utm_campaign=switcher-academy",
+                    displayName: "Sponsor Cura", //Not translated, since it's a brand name.
+                    thumbnail: UM.Theme.getIcon("Heart"),
+                    description: catalog.i18nc("@tooltip:button", "Show your support for Cura with a donation."),
+                    link: "https://ultimaker.com/software/ultimaker-cura/sponsor/",
                     permissionsRequired: []
                 },
                 {

+ 1 - 0
resources/qml/Menus/HelpMenu.qml

@@ -17,6 +17,7 @@ Cura.Menu
     Cura.MenuItem { action: Cura.Actions.showTroubleshooting}
     Cura.MenuItem { action: Cura.Actions.documentation }
     Cura.MenuItem { action: Cura.Actions.reportBug }
+    Cura.MenuItem { action: Cura.Actions.openSponsershipPage }
     Cura.MenuSeparator { }
     Cura.MenuItem { action: Cura.Actions.whatsNew }
     Cura.MenuItem { action: Cura.Actions.about }

File diff suppressed because it is too large
+ 4 - 0
resources/themes/cura-light/icons/default/Heart.svg


Some files were not shown because too many files changed in this diff