42 Commits

Author SHA1 Message Date
c.lamboo
b22fafadbe Don't capitalise "M" in "Ultimaker Digital Library" and "Ultimaker Digital Factory"
because these are brand names.

CURA-9793
2022-11-29 15:26:51 +01:00
jspijker
f76f711790 Update mentions to UltiMaker
Contributes to CURA-9808
2022-11-28 14:11:21 +01:00
Ghostkeeper
f849df6ba3
Remove old df_access additional right
It is replaced by the new permissions system. The rights are more specific than 'digital factory access, yes or no'. It's now about whether you can read/write printers/projects/print jobs/etc and can differ whether it is your own project/job/etc or someone else's.

Contributes to issue CURA-9220.
2022-07-26 17:49:55 +02:00
Ghostkeeper
7287644324
Add specific permission requirements to application switcher
These functions require special permissions in the account now. Just checking for digital factory access is no longer enough.

Contributes to issue CURA-9220.
2022-07-26 17:46:26 +02:00
c.lamboo
d5c0fde7f2 Render labels using Text.QtRendering on OSX
Fonts were looking a bit to thick on when using `Text.NativeRendering`, so using `Text.QtRendering` instead. After this the font weight looks identical to figma (as far as I can see).

In this commit I also changed all `Label`'s to `UM.Label`'s and removed default properties where I could.

CURA-9154
2022-05-10 15:40:09 +02:00
c.lamboo
35f5c3f959 Revert "Render labels using Text.QtRendering on OSX"
This reverts commit f0e3c19a34d1fde3b7ec4fd95677fbefa2028b26.
2022-05-10 15:39:02 +02:00
c.lamboo
f0e3c19a34 Render labels using Text.QtRendering on OSX
Fonts were looking a bit to thick on when using `Text.NativeRendering`, so using `Text.QtRendering` instead. After this the font weight looks identical to figma (as far as I can see).

In this commit I also changed all `Label`'s to `UM.Label`'s and removed default properties where I could.

CURA-9154
2022-05-10 15:36:50 +02:00
c.lamboo
45bc498c7f Replace RecolorImage with ColorImage
CURA-8640
2022-04-08 15:55:34 +02:00
j.delarago
3c7498feed Move ToolbarButton and ToolTip from Cura into Uranium. This makes it possible to use new styled ToolbarButton in plugins/Tools for the rotate tool.
Removed the ContentAlignment enum in ToolTip in favour of using the Text.ContentAlignment enum. For some reason references to this enum fail everywhere when ToolTip is moved into Uranium. There is some evil time-wasting magic cast on this component!

CURA-8943
2022-03-03 15:53:30 +01:00
Jaime van Kessel
83be495414 Replace usage of controls label with our custom label
This prevents copy pasting a bunch of parameters that we set by default
2021-11-10 16:37:26 +01:00
Jelle Spijker
666880ad20
Only show certain App Switcher icons when account has DF access
Added a dictionary where additional user rights can be set.
A plugin such as the DigitalFactory can update this dictionary
if certain account rights change. The `account.additionalRights`
is intended to allow us some flexibility, without breaking the API
in the future.

The Application Switcher now queries the additional account rights,
which is updated by the DF plugin to only show `My printers`,
`Digital Library` and `Print jobs` when the user has access to the
DF.

Contributes to CURA-8624
2021-10-18 15:37:06 +02:00
Jelle Spijker
629f695ef7
Only show certain Application Switcher links when logged in
Some links in the application only make sense to
forward a user when they are logged into the DF.
Since we don't expose yet if the user has access
to the DF it will now only check if they are
logged in.

Contributes to CURA-8624
2021-10-18 15:37:06 +02:00
Ghostkeeper
ebee7dbec9
Remove space from link
This was probably a copy-paste error.
2021-10-01 10:22:38 +02:00
Jaime van Kessel
0656e11afa Fix styling of application button
Fixes previous mistake that I made while simplifying the QML

CURA-8421
2021-09-22 13:53:49 +02:00
Jaime van Kessel
e39675e447 Use styled tooltip
CURA-8422
2021-09-22 13:44:45 +02:00
Jaime van Kessel
5a8396651e Update the copy of the tooltips
CURA-8422
2021-09-22 12:59:43 +02:00
Jaime van Kessel
90bfdce3bb Further simplify the qml of applicationSwitcherPopup
CURA-8421
2021-09-22 09:45:53 +02:00
Jaime van Kessel
0c9ef1e647 Move ApplicationSwitcherPopup to it's own file
CURA-8421
2021-09-22 09:43:49 +02:00
Jaime van Kessel
fd0804646a Simplify the QML of application switcher
CURA-8421
2021-09-22 09:40:32 +02:00
Jaime van Kessel
9bf5d85be1 Add animation to hover effect
CURA-8421
2021-09-22 09:36:47 +02:00
Jaime van Kessel
f55e3363d0 Remove unneeded property change
CURA-8421
2021-09-22 09:35:09 +02:00
Jaime van Kessel
dc181a3426 Simplify QML of application button
CURA-8421
2021-09-22 09:33:13 +02:00
Jaime van Kessel
e0b38f2782 Add animation to hover effect
CURA-8421
2021-09-22 09:29:47 +02:00
Konstantinos Karmas
96436fbedd Remove unnecessary anchor
Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713124155.

CURA-8421
2021-09-21 17:36:04 +02:00
Konstantinos Karmas
c73f815b69 Use anchors instead of setting the width
Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713119985.

CURA-8421
2021-09-21 17:32:06 +02:00
Konstantinos Karmas
2f75e299f5 Set the width in the parent item
Fixes review comment https://github.com/Ultimaker/Cura/pull/10491#discussion_r713127038.

CURA-8421
2021-09-21 17:31:37 +02:00
Konstantinos Karmas
a3d04bc752 Use the correct color for the label
CURA-8421
2021-09-21 16:16:14 +02:00
Konstantinos Karmas
ed0fc26051 Fix unthemed label
Since in dark mode it stays black and it disappears in the background.

CURA-8421
2021-09-21 15:51:01 +02:00
Jaime van Kessel
1aadb1bade
Merge pull request #10492 from Ultimaker/CURA-8422_add_platform_links
Add links to Ultimaker website applications
2021-09-21 15:45:37 +02:00
Konstantinos Karmas
ab77efd9c4 Move the popup so that the arrow isn't drawn exactly on the corner
CURA-8421
2021-09-21 15:07:04 +02:00
Konstantinos Karmas
e2d19668e4 Change the hover colors of the AppSwitcher button
So that they are more subtle.

CURA-8421
2021-09-21 15:00:25 +02:00
Ghostkeeper
df7ddd305c
Add tracking tags to Ultimaker website links
Contributes to issue CURA-8422.
2021-09-21 13:17:08 +02:00
Konstantinos Karmas
cd505d575d Merge branch 'CURA-8421_Introduce_app_switcher' into CURA-8422_add_platform_links 2021-09-21 11:35:02 +02:00
Konstantinos Karmas
6df9f9f72c Remove debugging code
So that all platform links have the link icon indicator in the bottom right corner.

CURA-8421
2021-09-21 11:32:38 +02:00
Konstantinos Karmas
ee564782b5 Remove comment
CURA-8421
2021-09-21 11:06:45 +02:00
Konstantinos Karmas
0d932991d4 Rename ApplicationSwitcher.svg to BlockGrid.svg
Since it is the original filename in the design.

CURA-8421
2021-09-20 17:24:06 +02:00
Konstantinos Karmas
fea8ecd55f Rename the qml elements and the theme entries used in AppSwitcher
To some more sensible names (hopefully).

CURA-8421
2021-09-20 17:19:37 +02:00
Konstantinos Karmas
a9968acd6d Fix misalignment of images if the displayName spans to next line
When the displayname of the app is long and it spans to the next line, it was pushing the icon up in the column, making it seem like it is misaligned. This is now fixed and the icons should be aligned regardless if the display name has one or two lines.

CURA-8421
2021-09-20 16:42:22 +02:00
Ghostkeeper
82922fd738
Merge branch 'CURA-8421_Introduce_app_switcher' into CURA-8422_add_platform_links 2021-09-20 16:36:49 +02:00
Ghostkeeper
c518f0de93
Add links to Ultimaker's platform websites
The links are not final since they will need some campaign tags. For the rest it should be more or less done.

Contributes to issue CURA-8422.
2021-09-20 16:36:26 +02:00
Konstantinos Karmas
15884a66e8 Warp and elide ApplicationButton display name
To make sure that it properly fits in the available space.

CURA-8421
2021-09-20 15:58:53 +02:00
Konstantinos Karmas
570fb3cf93 Introduce the ApplicationSwitcher widget
It includes only the hardcoded model with the Ultimaker links for now.

CURA-8421
2021-09-20 15:33:05 +02:00