26181 Commits

Author SHA1 Message Date
Ghostkeeper
3d6601a37e
Fix margins
The margin around the icon didn't work if the icon source was none, because it was provided a QSize rather than a real.
The margin around the background didn't work at all because the background is automatically adjusted to fill the parent element, so it's best left out.

Contributes to issue CURA-8009.
2021-07-13 16:04:01 +02:00
Ghostkeeper
7fdf1dbdd4
Fix height of search bar
Because this item is in a layout, the height gets overridden. We should use the preferredHeight, or the one it defaults to, implicitHeight.

Contributes to issue CURA-8009.
2021-07-13 16:02:29 +02:00
Ghostkeeper
bec83920e4
Keep showing search icon while typing search query
This adds an option to the TextField element to show an icon on the left side in the text field. The icon remains visible when the user types in something (it's not part of the placeholder string).
Then we use that optional icon for the search bar in the Digital Library.

Contributes to issue CURA-8009.
2021-07-13 15:47:21 +02:00
Jaime van Kessel
d4f249277e
Change icon in simulation view to rectangle
CURA-8379
2021-07-13 15:20:41 +02:00
Ghostkeeper
1566a282dc
Replace text and image if there's no projects due to search
It's a bit weird if it shows that you didn't add any projects yet if you just type in a gibberish search keyword.

Contributes to issue CURA-8009.
2021-07-13 15:16:09 +02:00
Ghostkeeper
13ca30ed98
Stylise search bar
This is the standard style for text fields in Cura. The spacing around the search icon is customised with the best approximation I could get using a simple string of placeholderText.

Contributes to issue CURA-8009.
2021-07-13 14:40:04 +02:00
Konstantinos Karmas
bde44d2c08
Merge pull request #10105 from Ultimaker/CURA-8018_add_monitor_print_button_to_cloud_print
Add monitor print button for cloud print
2021-07-13 10:29:37 +02:00
Konstantinos Karmas
329973adfb Capitalize only the first word in the message action
CURA-8018
2021-07-13 10:00:27 +02:00
Konstantinos Karmas
e31ec31f34 Make the lifetime of the "print job sent" message 30s
Previously it was 5s and the message would disappear before the user had a chance to press the "Monitor print" button.

CURA-8018
2021-07-13 09:59:05 +02:00
Jaime van Kessel
e8fc88e6b0
Use f-string formatting instead of %
CURA-8018

Co-authored-by: Konstantinos Karmas <konskarm@gmail.com>
2021-07-13 09:45:00 +02:00
Ghostkeeper
1269c28d0a
Reduce wait time before sending query
Most people should be able to type 5 characters per second. And those that can't will just have to see it refresh after every stroke.

Contributes to issue CURA-8009.
2021-07-12 18:46:54 +02:00
Ghostkeeper
94e229aa44
Clear list of projects every time we load the first page
Otherwise when we refresh the project list after searching it would put the new results at the end. That's not what we want.

Contributes to issue CURA-8009.
2021-07-12 18:44:11 +02:00
Ghostkeeper
02932a1f62
Add filter to API call for project list
This passes the filter on to the API call and causes the API call, so that we only get the projects that the user searched for.

Contributes to issue CURA-8009.
2021-07-12 18:43:15 +02:00
Ghostkeeper
65f7eb5ea8
Add function to update search filter when the user types
Seems to work fine.
The pyqtSignal is not technically necessary unless we display this filter in the interface anywhere. We don't currently. If the signal is not present it would complain about non-notifyable properties. And making it a slot instead of a signal seems a bit unintuitive to me in how the field is being used.

Contributes to issue CURA-8009.
2021-07-12 17:41:10 +02:00
Ghostkeeper
22826bc4d8
Add text field in a layout for search
The text field is not stylised yet, so far. Will do, but let's first make it functional.

Contributes to issue CURA-8009.
2021-07-12 17:16:16 +02:00
Jaime van Kessel
2b5747f3ee
Update plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py
Co-authored-by: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
2021-07-12 17:13:32 +02:00
Ghostkeeper
e659e4fb63
Merge branch 'patch-1' of https://github.com/tispokes/Cura into tispokes-patch-1 2021-07-12 15:27:01 +02:00
Jaime van Kessel
2acf058d79
Merge pull request #10116 from DaveCalaway/master
Update geeetech_a30.def.json
2021-07-12 13:59:53 +02:00
Jaime van Kessel
5aa4a6f713
Merge branch 'CURA-8138_check_user_access_DF' of github.com:Ultimaker/Cura 2021-07-12 13:21:08 +02:00
Jaime van Kessel
f8b54cc377
Merge branch 'CURA-8008_open_file_button_dropdown' of github.com:Ultimaker/Cura 2021-07-12 13:17:42 +02:00
Lars Pöpperl
9ec261f721
corrected z_seam-"Back" from "Zurück" to "Hinten" 2021-07-12 13:08:42 +02:00
Ghostkeeper
3d6b58d5c0
Always show down arrow regardless of expanded state
This is something our UX designer wants to change for all expandable header bar menus. The down arrow indicates that something will pop-up downwards once clicked. It is unnecessary to feedback the state of the expansion in the icon.

Contributes to CURA-8008.
2021-07-12 11:19:04 +02:00
Ghostkeeper
55bdb81e78
Reduce margins of options in the open file drop-down
This was a desire from the developer. It shouldn't be consistent with the printer selector. The margins being all the same is more important.

Contributes to issue CURA-8008.
2021-07-12 11:13:06 +02:00
Dave
a1387f7ed7
Update geeetech_a30.def.json
wrong name for the settings
2021-07-10 18:24:00 +02:00
Remco Burema
85f98bdaff
Appease type-checking system even further.
That last one should have worked really.

part of CURA-8138
2021-07-09 21:36:20 +02:00
Remco Burema
6f99837db5
Fix typing.
part of CURA-8138
2021-07-09 21:17:33 +02:00
Remco Burema
c78618bc15
Digital Library: Allow 'personal users' to DL.
Users with an account and an UM printer should have some basic access to the Digital Library. To this end, and to remain future proof, the online team has made an extension to its API so now feature budgets can be gauge. At the moment it's only checked wether the user has any access to personal projects at all. If so, the interface shows Digital Library functionality. Known issue: Removing the last printer from DF while still logged in leaves the DL access in the Cura interface until logged out or Cura restarted. Additionally, I think the response for a logged in user without any printer from the API is just 'data = empty list' instead of everything set to False and 0 (which should be the case as they're all listed as required fields in their docs ... maybe I'm missing something). In any case, the code as is now can handle that as well.

CURA-8138
2021-07-09 21:06:49 +02:00
Ghostkeeper
739f8834d0
Align layout of providers with machine selector
It's quite different in detail because there is a lot less content to show here (no machine type, icons, etc), but the basics are the same now.
One possible issue is that the button doesn't extend all the way to the right, so you can't click everywhere on the shortest item. I'll see if that can still be fixed.

Contributes to issue CURA-8008.
2021-07-09 17:20:32 +02:00
Ghostkeeper
f8aa6a3398
Add list of open file providers to submenu
The layout isn't quite there yet, but it mostly works and I want to have a save point to return to if I tinker too much.

Contributes to issue CURA-8008.
2021-07-09 17:02:38 +02:00
Ghostkeeper
0db1f1034b
Add header, and make popup grow to its contents
It was quite a hassle to allow the column to grow to the size of its contents. For some reason, things update the size to 0. And the size updates again once the pop-up actually gets opened for the first time, because then the column actually gets populated lazily.

Contributes to issue CURA-8008.
2021-07-09 16:47:51 +02:00
Ghostkeeper
5bc3848301
Show either openFileButton or openFileMenu, depending on provider count
If there's just 1 provider, show the button. If there are multiple, show the menu. If there are 0, also show the button but disable the button.
The behaviour is not yet implemented though. It doesn't actually look at which providers are available and what they do.

Contributes to issue CURA-8008.
2021-07-09 15:33:57 +02:00
Ghostkeeper
c100ba88d0
Move pop-up code to external item to re-use ExpandablePopup element
All of what we were about to implement is already implemented in ExpandablePopup. So let's re-use that one. That guarantees that it looks consistent too.

Contributes to issue CURA-8008.
2021-07-09 15:27:12 +02:00
Ghostkeeper
6203a5c987
Correct chevron size and colour
This is the same as what ExpandablePopup does.

Contributes to issue CURA-8008.
2021-07-09 14:27:32 +02:00
Ghostkeeper
f4f48c0fda
Move padding to only be around row
Not around the individual icons. This way the chevron can be placed next to the icon closer.

Contributes to issue CURA-8008.
2021-07-09 14:23:14 +02:00
Ghostkeeper
bcd11636d5
Catch error when release notes file could not be read
And show an error message to the user in that case.
This could happen if the user modified their installation or their resource folder.

Fixes Sentry issue CURA-2P2.
2021-07-09 13:36:53 +02:00
Lorenzo Romagnoli
5cf7cd63f4
replacing with thicker icon
made the circle one pixel thicker so that the colorer ring is more visible for dark and light colors
2021-07-09 11:45:43 +02:00
Lorenzo Romagnoli
ae649d9a9f
replacing with new icon for better visibility 2021-07-09 11:43:37 +02:00
Ghostkeeper
41642a35ff
Add chevron to select where to load models from
The chevron looks a little big now. No worries, we can fix that.

Contributes to issue CURA-8008.
2021-07-08 18:00:35 +02:00
Ghostkeeper
ffa89bb1a1
Allow open file button to resize depending on content items
This re-links the widths, heights and paddings such that we can later change the width of the button depending on its contents.
However there is a complication: Buttons automatically change the size of the contents based on the size of the button minus its padding. So making the size of the button in turn depend on its contents causes a binding loop.
To get around this binding loop, we need to manually calculate the size of the button, such that the size of the contents ends up exactly right.

Contributes to issue CURA-8008.
2021-07-08 17:49:44 +02:00
Jaime van Kessel
b4a8cb1b82
Add monitor print button for cloud print
The button redirects the user to the cloud page

CURA-8018
2021-07-08 17:01:03 +02:00
Ghostkeeper
920e220bdb
Merge branch 'master' into CURA-8247_badge_background_colour 2021-07-07 15:12:31 +02:00
Jaime van Kessel
0a487c804a
Merge branch 'CURA-8011_Replace_extruder_icons' of github.com:Ultimaker/Cura 2021-07-07 14:15:05 +02:00
Ghostkeeper
ba6e79c81f
Rework parts of camera button
The new button should be consistent with the looks of the tool buttons. I've given it the same size as the inner part of the tool buttons, reworked the background so that it matches. I'm also giving it the 'secondary button' style which is also used for one other button. But that other detail button should get the same style anyway so that's fine too.

I've also turned this icon into an actual button. That way it can get focus when using keyboard navigation and works better with tools for blind and such.

Contributes to issue CURA-8202.
2021-07-07 11:36:11 +02:00
Ghostkeeper
52018a6048
Adjust size and margin of guide book icon
The icon was rendered at a too small size, such that it would get a different line width or look-and-feel than the rest. However making it bigger doesn't properly centre it either.
To centre it we also reduced the margin.

Contributes to issue CURA-8202.
2021-07-07 11:36:11 +02:00
Ghostkeeper
1975d053b0
Split solid and 100% infill icons into two icons
Both have different margins for their different use cases.

Contributes to issue CURA-8202.
2021-07-07 11:36:10 +02:00
Ghostkeeper
8e5485330f
Align sizes of prepare and preview menus
For some reason, the prepare menu is still one pixel too small. I think it's got to do with that one being a layout rather than a normal row.

Contributes to issue CURA-8202.
2021-07-07 11:36:10 +02:00
Ghostkeeper
92293e7008
Make checkbox mark colours same as text colours
The new icon set changes the checkmark to something a lot thinner and more subtle. Making it darker compensates for that a bit.
2021-07-07 11:36:09 +02:00
Jaime van Kessel
0347bb9ce2
Merge branch 'CURA-8012_restyle_buttons' of github.com:Ultimaker/Cura 2021-07-06 16:03:38 +02:00
Konstantinos Karmas
d2c0a1f32e Change height of message buttons to be the same with all other action buttons
CURA-8012
2021-07-06 14:13:19 +02:00
Konstantinos Karmas
b850d8c18e Center the extruder icon in the tabRowButton in the custom print settings
CURA-8011 and CURA-8202
2021-07-06 14:10:19 +02:00