feat: add retract and extrude indicator#1898
Conversation
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
There was a problem hiding this comment.
Pull request overview
Adds an extruding/retracting indicator to the Toolhead widget header using Klipper’s motion_report.live_extruder_velocity, and aligns related UI affordances (icons/tooltips) to match.
Changes:
- Add a header icon + tooltip in
ToolheadCardthat reflects live extruder movement direction (extruding vs retracting). - Update extrude/retract button icons and adjust global icon aliases for
retract/extrude. - Add English i18n strings for “Extruding” / “Retracting”.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/locales/en.yaml | Adds new tooltip strings for the extruding/retracting indicator. |
| src/globals.ts | Introduces new MDI imports and maps retract / extrude icon aliases to triangle icons. |
| src/components/widgets/toolhead/ToolheadCard.vue | Adds live extruder velocity-derived direction indicator (icon + tooltip) in the card header. |
| src/components/widgets/toolhead/ExtruderMoves.vue | Switches extrude/retract button icons to the new aliases. |
| src/components/widgets/retract/RetractCard.vue | Uses $retractions icon alias for the Retract card to preserve the prior card icon after alias changes. |
|
oh, im sorry to say, but this looks very web 1.0. making it much smaller, and using greyscale up/down icons from the set you're using is the way to go I think. |
Thanks for the feedback @thijstriemstra. Not disagreeing with your assessment, I should point out that these are icons from the set we are using in Fluidd. I went for the colored triangle to match the ones we use in the Gcode Preview, but I admit that I am not sold on them either... Having said that, I've now updated the icons to simple arrows (still keeping the red/green color for now, but that might also change) |
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Adds a new extruding/retracting indicator to the header of the Tool card, using the live extruder velocity.
Extruding
Retracting