-
-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(spoolman): multi-tool support #1324
Conversation
Signed-off-by: Mathis Mensing <github@matmen.dev>
Signed-off-by: Mathis Mensing <github@matmen.dev>
Signed-off-by: Mathis Mensing <github@matmen.dev>
Signed-off-by: Mathis Mensing <github@matmen.dev>
Signed-off-by: Mathis Mensing <github@matmen.dev>
Signed-off-by: Mathis Mensing <github@matmen.dev>
Signed-off-by: Mathis Mensing <github@matmen.dev>
Signed-off-by: Mathis Mensing <github@matmen.dev>
The only issue I see with this is if the spool color is gray, it won't show up if Fluidd is using Dark theme (same for white spool in Light theme), hence why I was using that "dot" thing! |
The same issue exists in the spool selection dialog, I think this should be an easy fix by just adding an outline to the spool icon |
not sure if that is possible, but if you manage to do it, I am very interested! 😁 |
Signed-off-by: Mathis Mensing <github@matmen.dev>
Sure, I personally can see it fine, though I am not sure that we can claim that it is "accessible" to every seeing user! Also, a 16-bit screen or lower might be problematic... but granted, nowadays these are extremely rare! 😁 |
Yeah, that was my thought too, but I couldn't really figure out how to make it accessible and have it look decent. Even the current solution is kinda meh (especially on smaller screens), I think ideally we'd want a light or dark background color on the spool icon depending on the lightness of the filament color - or maybe even a multi-tone icon? |
I'm not a big designer, but here's two triggers outside of your box: |
I am not sure what is the best course of action here in terms of layout (I too am not a designer), but I am happy to review this in terms of functionality and we can revisit this topic in a later change! |
I admit I am troubled with the whole I honestly don't think we should be doing this from Fluidd side because if the user has a KlipperScreen or also uses Mainsail, it will not work until they too make the same changes... In my view, this should either be done on Moonraker side, or somehow directly from Klipper side. |
Co-authored-by: Pedro Lamas <pedrolamas@gmail.com> Signed-off-by: Mathis Mensing <github@matmen.dev>
That's just so the macro name is displayed in upper case in the modals, in theory we can do this with CSS (or a
Well, having an API to set gcode macro variables directly would be optimal, but AFAIK there isn't one right now. I think the |
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com> # Conflicts: # src/components/widgets/spoolman/SpoolSelectionDialog.vue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not fully convinced with the usage of the variables to store state (as that will not be reflected in other frontends), but I think we can go with this and revisit later if it comes to a common solution!
Closes #1269
Adds a new tool selection dropdown to the spoolman card when one or more
gcode_macro
s with aspool_id
variable are detected. Emits aSET_GCODE_VARIABLE
command to update the tools associated spool.When a tool has a spool ID set, the tools "color dot" will be replaced by a filament spool icon in the corresponding filaments color (like in the spool selection modal).
Persisting settings available using Klipper's
[save_variables]
module.