Joey de l'Arago
1e6184448c
Apply suggestions from code review
...
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>
Co-authored-by: Jelle Spijker <j.spijker@ultimaker.com>
2022-12-12 11:44:21 +01:00
Joey de l'Arago
bec02cf312
Fix extruder icon text scaling. I've added a new font size here since there is not any real way I can see to scale the font based on the component size. This is because we do some magic with the font numbers before passing them to the QML.
...
CURA-9793
2022-12-06 12:08:00 +01:00
Joey de l'Arago
631d6a15b0
Add extruder button bar that shows icons for each extruder in a horizontal row 💪
...
Make ExtruderButton more generic by moving functionality out.
Remove background color from ToolbarButton and add that background color to the Toolbar.qml.
Fix Toolbar border being created by overlapping rectangles instead of using border
Add scaling options for ToolBarButtons icon
CURA-9793
2022-11-28 15:55:55 +01: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
Jaime van Kessel
25839c6d97
Fix direction of pointing rectangle
...
Turns out that using anchors doesn't quite work anymore due to qt6 upgrade. Oh well!
CURA-9137
2022-04-13 17:36:47 +02:00
c.lamboo
45bc498c7f
Replace RecolorImage
with ColorImage
...
CURA-8640
2022-04-08 15:55:34 +02:00
Casper Lamboo
64e3e8b31d
Use template literals to format string
2022-03-07 11:31:24 +01: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
luz paz
d68f375e38
Fix various typos
...
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
2021-09-07 11:33:54 -04:00
Konstantinos Karmas
3eafd11587
Fix qml warning about the sourceSize of the ToolbarButton icon
...
CURA-8202
2021-06-30 12:26:13 +02:00
Konstantinos Karmas
77a8f36153
Change the color of a circle around the toolbar button
...
Instead of changing the color of the entire tool when it is hovered or selected, now a background circle will be drawn and its color will change according to whether the button is hovered/selected or not.
In addition, the button icons will now be half the size of the button itself.
CURA-8013
2021-06-28 14:56:26 +02:00
Konstantinos Karmas
eeccfc32b9
Remove spacing between toolbar buttons
...
CURA-8013
2021-06-28 14:54:44 +02:00
Konstantinos Karmas
504f6dbe70
Revert "Cura 7813 qml modules version bump"
2021-03-30 09:48:28 +02:00
jelle Spijker
2986d50745
Update QtQuick and QtQuick.Controls
...
CURA-7813
2021-03-29 17:55:19 +02:00
Ghostkeeper
c38ee8a365
Clear focus when changing tools
...
This is a fix for a bug on MacOS where the delete key wasn't working. A text field from the tools was in focus, which caught the key event, preventing objects from being deleted.
Fixes #7754 and CURA-7585.
2020-07-13 13:47:51 +02:00
Mark Burton
f8c86cce4d
Improve readability and add comments.
2020-06-04 12:04:29 +01:00
Mark Burton
74984ca12a
Stop panel growing above first tool button.
2020-06-04 11:30:13 +01:00
Mark Burton
700533b4aa
Change the panelBorder rectangle anchor to the bottom for lower toolbar buttons.
...
This makes the panel grow upwards into clear space rather than downwards which is a problem
when the Cura window height is restricted.
2020-06-03 08:15:10 +01:00
Ghostkeeper
b68c3b7301
Remove usage of deprecated extruders property
...
Initially PyCharm didn't find this because it's not typed.
Done during Turbo Testing and Tooling.
2020-05-29 18:06:02 +02:00
Jaime van Kessel
8aabf113d2
Catch mouse events in toolpanel
...
Fixes #7720
2020-05-13 10:53:03 +02:00
Jaime van Kessel
bd18a539e2
Only update position of label when it's visible
...
This prevents unneeded re-rendering
2020-01-24 14:04:27 +01:00
Diego Prado Gesto
111430c9c2
Catch scroll events and not propagate them to the main view
2019-05-09 11:37:59 +02:00
Jaime van Kessel
b70a4ae0a2
Merge branch 'CURA-6015_fix_osx_crash' of github.com:Ultimaker/Cura into 4.0
2018-12-14 13:35:37 +01:00
Jaime van Kessel
6a3ac99551
Ensure that all icons use the same color from theme.
...
Also added some fixes for the dark theme
2018-12-14 11:59:22 +01:00
Lipu Fei
620790ae3d
Reduce the creations of ExtrudersModels
...
CURA-6015
2018-12-13 14:12:23 +01:00
Ghostkeeper
b5bb3232f3
Merge branch 'ui_rework_4_0' into CURA-5876-Configuration_dropdown
...
Conflicts:
resources/qml/ActionPanel/OutputProcessWidget.qml -> Due to removed theme entry.
2018-12-04 15:21:36 +01:00
Diego Prado Gesto
57a852a15a
Don't show the background if there are less than 2 extruders to show in the Toolbar
...
It caused a very tiny rectangle if the printer has only 1 extruder.
Contributes to CURA-5984.
2018-12-04 09:19:08 +01:00
Ghostkeeper
7df4c01814
Merge branch 'ui_rework_4_0' into CURA-5876-Configuration_dropdown
...
Conflicts:
cura/Settings/MachineManager.py -> rowCount vs. count
resources/qml/ExtruderIcon.qml -> Someone changed stuff that I had overwritten.
resources/qml/Menus/ConfigurationMenu/PrintCoreConfiguration.qml -> Someone changed stuff that I had removed.
resources/qml/Toolbar.qml -> Git was wrong, not a conflict.
resources/themes/cura-light/theme.json -> Git was wrong, not a conflict.
2018-12-03 11:45:05 +01:00
Ghostkeeper
f3af5a72ad
Use ListModel.count instead of rowCount
...
The .count property properly updates when the model is changed.
Contributes to issue CURA-5876.
2018-12-03 11:13:26 +01:00
Jaime van Kessel
bfebb33123
Code style
...
CURA-5984
Co-Authored-By: diegopradogesto <d.pradogesto@ultimaker.com>
2018-11-28 10:28:16 +01:00
Diego Prado Gesto
c1c5eb2219
Rename the properties to quickly identify that they are a boolean
...
Contributes to CURA-5984.
2018-11-28 09:44:37 +01:00
Diego Prado Gesto
14b460a626
Remove unused styles
2018-11-27 17:25:10 +01:00
Diego Prado Gesto
309061ce31
Add a new ToolbarButton
...
Now also the Extruder button is a toolbar button since it will show in
the toolbar.
2018-11-27 17:16:52 +01:00
Diego Prado Gesto
cbee18597e
Merge branch 'ui_rework_4_0' into CURA-5785-Restyle_stage_menu
2018-11-21 16:59:03 +01:00
Diego Prado Gesto
669648d3e1
Improve the toolbar style by modifying the rectangles and the behavior
...
to get a rounded rectangle on the right-top and right-bottom.
Contributes to CURA-5962.
2018-11-20 16:28:21 +01:00
Jaime van Kessel
783fe9ab73
Updated the look of the extruder buttons
...
CURA-5785
2018-11-12 15:23:58 +01:00
Diego Prado Gesto
9bf18031ce
Apply restyle of the toolbar according to the new designs.
2018-11-11 19:15:02 +01:00
Ghostkeeper
f247c328c6
Show shortcut key in tool tooltips
...
In brackets. I couldn't translate it to an icon easily. It was possible but I'd have to create a giant mapping from every key to the key icons and add a bunch of icons and I don't think that's necessary.
Contributes to issue CURA-5634.
2018-08-10 11:22:42 +02:00
Ghostkeeper
4a22bb3b69
Code style
2018-08-10 11:22:42 +02:00
Mark
b531c0550d
Change Math.floor to Math.round as a last try to fix garbled fonts
...
CURA-4941
2018-02-14 09:28:47 +01:00
Mark
b52bf6decf
resolve conflict
2018-02-09 13:01:56 +01:00
Jaime van Kessel
a7e1017aa2
Added some missing widths en heights
...
GammaRay complained about some objects not having a size
2017-10-12 19:14:22 +02:00
Mark
9a193ad5c5
Changing AGPLv3 to LGPLv3
2017-09-28 13:00:43 +02:00
fieldOfView
0308d3d9d0
Fix margin between tools and extruders
2017-09-27 11:46:42 +02:00
fieldOfView
c5fd0e6c80
Use screenScaleFactor to consistently adapt sizes to display pixel ratio
2017-09-25 22:07:12 +02:00
ChrisTerBeke
11241642b3
CURA-4354 fixed plugin injected tool icon path finding, example in PerObjectSettingsTool
2017-09-22 16:15:38 +02:00
Jaime van Kessel
78987ba666
When tool icon can not be found in theme, try to find it in the plugin folder
...
CURA-4345
2017-09-21 15:19:00 +02:00
fieldOfView
82d3a98f95
Hide the extruder button for Custom FDM Printers with 1 extruder
2017-07-12 14:47:38 +02:00