Diego Prado Gesto
77ede1ae6b
Unify the fonts to only have 8 instead of 13.
...
Contributes to CURA-6025.
2018-12-12 17:50:21 +01:00
Diego Prado Gesto
17173aba06
Add a component to show when no configurations are available because lack of connection.
...
Contributes to CURA-5876.
2018-12-12 17:04:17 +01:00
Diego Prado Gesto
1d3da3244f
Remember the previous selected method in the configuration
...
The current behavior now is to open the configuration panel in the previous state, in case it was manually selected. That means that after selecting a printer, the manual state is reset so it will open the auto configuration if it is a connected printer. It will open the custom state in case it's not connected or the printer has no connection.
Contributes to CURA-5876.
2018-12-12 14:09:15 +01:00
Diego Prado Gesto
4ba448077e
Add an empty state, when there are no configurations, showing a label indicating that the list is empty
...
Contributes to CURA-5876.
2018-12-12 13:33:46 +01:00
Diego Prado Gesto
a6a16a682d
Fix some alignments
...
Also modify a bit the code in the ConfigurationItem, trying to get rid of a binding loop, but I couldn't (so weird)
Contributes to CURA-5876.
2018-12-12 11:17:44 +01:00
Diego Prado Gesto
ed8292c472
Adjust size and margins of the icon in the action button
...
Contributes to CURA-5876.
2018-12-11 17:00:02 +01:00
Diego Prado Gesto
f99c788eb6
Change some colors for the arrows in some setting selectors
...
Contributes to CURA-5876.
2018-12-11 16:35:59 +01:00
Diego Prado Gesto
b993a7b0d9
Change the header color and font in the configuration popup
...
Also fix some alignments with the printer type selector.
Contributes to CURA-5876.
2018-12-11 16:05:24 +01:00
Diego Prado Gesto
1cd0d26db4
Change margins
...
Instead of using multiplications and divisions, just use the corresponding margins.
Contributes to CURA-5876.
2018-12-10 15:34:48 +01:00
Ghostkeeper
6a7bbe5bdb
Fix hiding materials if material is empty
...
Because the loaded material profile has the name 'Empty' then.
Contributes to issue CURA-5876.
2018-12-07 15:31:12 +01:00
Ghostkeeper
ffcac04f9e
Add printer type selector if connected to cluster
...
If there are 2 or more printer types in your connected cluster, you can switch the printer type here.
Contributes to issue CURA-5876.
2018-12-07 15:21:53 +01:00
Ghostkeeper
8e2c130416
Use default lining style as separator for buildplate
...
Normal colour, normal thickness.
Contributes to issue CURA-5876.
2018-12-07 14:31:06 +01:00
Ghostkeeper
43a06fdc3d
Add more margin above printer type labels
...
A bit of Gestalt.
Contributes to issue CURA-5876.
2018-12-07 13:49:32 +01:00
Ghostkeeper
e74258c26b
Don't show materials if printer has no materials
...
But if the printer does have other configurations to change, do show a placeholder text to indicate that the configuration can be selected here.
This also simplifies a bit of code where it would need to call an updateEnabled() function, since it turns out that these properties in Cura.MachineManager have proper signals (contrary to what was previously used, the metadata entry stuff).
Contributes to issue UCRA-5876.
2018-12-07 13:40:10 +01:00
Ghostkeeper
2593849798
Merge branch 'ui_rework_4_0' of ssh://github.com/Ultimaker/Cura into ui_rework_4_0
2018-12-07 13:04:13 +01:00
Ghostkeeper
dfe55b8f23
Fix height of expandable component adapting to contents
...
Since the children don't adjust their height based on if they are visible (which would cause a binding loop) we just need to adjust the height of the total menu based on which children are visible. Easy enough.
Contributes to issue CURA-5876.
2018-12-07 12:59:51 +01:00
Diego Prado Gesto
1d33fe081f
Clean up the code
...
Remove all the references to the sidebar and use the term print_setup instead.
Contributes to CURA-5941.
2018-12-07 12:07:41 +01:00
Lipu Fei
677edd51ee
Remove unnecessary visibles
...
CURA-5941
Because the parent Rows already have it set.
2018-12-07 10:55:22 +01:00
Diego Prado Gesto
3b8b70bddf
Merge branch 'ui_rework_4_0' into CURA-5941_restyle_setting_dropdown
2018-12-06 16:35:07 +01:00
Ghostkeeper
c39674cd0c
Use upper camel case for enum options
...
Contributes to issue CURA-5876.
2018-12-06 16:23:24 +01:00
Diego Prado Gesto
05075c44ee
Add renderType to some labels in the Configuration panel
...
Contributes to CURA-5876.
2018-12-06 14:19:34 +01:00
Lipu Fei
85f2a7e8f6
Move visible to Rows for extruder configs
...
CURA-5941
So the whole row, such as "material", will be shown/hiden based on
whether the machine has materials.
2018-12-06 14:06:18 +01:00
Ghostkeeper
298c68c93b
Disable configuration menu if there are no configurations
...
This then prevents you from dropping down into an empty menu.
Contributes to issue CURA-5876.
2018-12-06 13:56:06 +01:00
Ghostkeeper
1e69960464
Make it possible to disable ExpandableComponent
...
It won't show the drop-down icon then, won't do hovers and won't allow you to click on it. This will not remove the contents of the ExpandableComponent menu bar item though, so that has to be done in ConfigurationMenu.qml.
Contributes to issue CURA-5876.
2018-12-06 13:52:57 +01:00
Ghostkeeper
f1fec2f280
Theme the scroll bar
...
We need to make this a reusable component at some point, I think. This is the first time we're using the QtQuick2 version of ScrollView.
Contributes to issue CURA-5876.
2018-12-06 12:07:03 +01:00
Ghostkeeper
48e15daf64
Fix height of scroll view and make scrollable
...
Contributes to issue CURA-5876.
2018-12-06 11:16:42 +01:00
Lipu Fei
109586f69c
Merge remote-tracking branch 'origin/ui_rework_4_0' into CURA-5941_restyle_setting_dropdown
2018-12-06 11:09:26 +01:00
Ghostkeeper
5ba8820f18
Remove unnecessary setting height to 0 when invisible
...
Turns out that it doesn't count for the childrenRect.height anyway when the item is invisible.
Contributes to issue CURA-5876.
2018-12-05 14:10:51 +01:00
Diego Prado Gesto
07d58c3aef
Merge branch 'ui_rework_4_0' into CURA-5941_restyle_setting_dropdown
2018-12-05 13:56:21 +01:00
Ghostkeeper
5d95d11437
Use setCurrentIndex to switch tabs at activeExtruderChanged
...
This fixes a mysterious segfault. We still don't know why the segfault occurred though. All we know is that QML logs something about a binding loop on currentIndex, and Qt logs something about removing range [-1 through 0] from VisualItemModel. When the tab bar is then made visible, Cura crashes. It is a nondeterministic crash. After this change, we are not seeing it any more (but with any nondeterministic bug, it's hard to verify that it was actually fixed).
Contributes to issue CURA-5876.
2018-12-05 09:52:43 +01:00
Diego Prado Gesto
cdb8020029
Add another expandable component
...
Use one of them if the drop-panel has to act as a Popup and the other if it has to act as a standard component.
Contributes to CURA-5941.
2018-12-05 09:39:04 +01:00
Jaime van Kessel
a62da4e523
Use setCurrentIndex instead of direct assignment
...
This should prevent the binding from breaking and hopefully the segfault
CURA-5876
2018-12-05 09:13:48 +01:00
Ghostkeeper
780e5e1691
Fix binding loop in PrintCoreConfiguration
...
Contributes to issue CURA-5876.
2018-12-04 17:09:55 +01:00
Ghostkeeper
1544ab6cf0
Explicitly enable hover on ConfigurationItem
...
Apparently the default for this depends on some system setting. In Nallath's computer that system setting makes it false by default for some reason.
Contributes to issue CURA-5876.
2018-12-04 17:07:59 +01:00
Ghostkeeper
de78c44461
Fix configuration drop-down for dark theme
...
This actually changes the secondary colour to be darker for the dark theme, to be more in line with the general theme then.
Contributes to issue CURA-5876.
2018-12-04 16:43:13 +01:00
Ghostkeeper
9c75f3fe0f
Merge branch 'CURA-5876-Configuration_dropdown' of ssh://github.com/Ultimaker/Cura into CURA-5876-Configuration_dropdown
2018-12-04 15:19:48 +01:00
Ghostkeeper
4d87c46423
Remove sourceSize.width: width from all RecolorImages
...
It is now the default in Uranium.
Contributes to issue CURA-5876.
2018-12-04 15:04:51 +01:00
Ghostkeeper
2fdfdaa00b
Rename iconOnRightSide to isIconOnRightSide
...
More accurately represents the type of value that's in this property.
Contributes to issue CURA-5876.
2018-12-04 14:47:34 +01:00
Ghostkeeper
ef29fb0cfa
Remove unnecessary item wrapper
...
Contributes to issue CURA-5876.
2018-12-04 14:44:12 +01:00
Jaime van Kessel
8a257f0184
Change valueWarning property to bool instead of var
...
A bit more specific.
Contributes to issue CURA-5876.
Co-Authored-By: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
2018-12-04 14:39:39 +01:00
Jaime van Kessel
023100f4c3
Changed valueError property to bool instead of var
...
A bit more specific.
Contributes to issue CURA-5876.
Co-Authored-By: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
2018-12-04 14:39:08 +01:00
Ghostkeeper
2dde2438b2
Remove unnecessary anchors
...
Contributes to issue CURA-5876.
2018-12-04 14:38:13 +01:00
Ghostkeeper
347240410a
Use enumeration to check and switch state of configuration menu
...
Instead of a string. This is a bit more restrictive.
Contributes to issue CURA-5876.
2018-12-04 14:35:28 +01:00
Ghostkeeper
7cc1f021c1
Fix right-alignment of configuration items in list
...
The scrollbar will go on top of it now, but it looks nicer if you don't scroll. Maybe we have to make it adaptable?
Contributes to issue CURA-5876.
2018-12-04 14:25:58 +01:00
Ghostkeeper
759b5b5847
Use anchors rather than a calculation with padding
...
It's supposed to be slightly more efficient.
Contributes to issue CURA-5876.
2018-12-04 14:23:41 +01:00
Ghostkeeper
801701623e
Remove unnecessary top anchor in first subitem of item
...
It already gets aligned to the top anyway.
Contributes to issue CURA-5876.
2018-12-04 14:04:07 +01:00
Diego Prado Gesto
47ff95b1f3
Set contentType to the different expandable components.
...
Also add a color for the active state when the contentType is 'Fixed'.
Contributes to CURA-5941.
2018-12-04 13:53:11 +01:00
Diego Prado Gesto
e159cbdb1a
Rename all the references from 'popup' to 'content'
...
Contributes to CURA-5941.
2018-12-04 13:14:12 +01:00
Jaime van Kessel
9b8b91b6a4
More specific variable type for is_connected
...
Contributes to issue CURA-5876.
Co-Authored-By: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
2018-12-03 17:34:08 +01:00
Ghostkeeper
c8cb3a094a
Re-use SecondaryButton instead of setting colours ourselves
...
It has a pre-defined theme.
Contributes to issue CURA-5876.
2018-12-03 11:52:10 +01:00