-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
gCode Legend & Viewer Improvements #8198
base: main
Are you sure you want to change the base?
Conversation
My question is not directly related to this PR, but have you ever considered making G-code inspector colors similar to the main widgets themes? Somewhat similar to the gizmo tool bar. |
thanks for indicating that point. i will look what i can do |
…rcaSlicer into gcode-viewer-improvements
@yw4z For example, why did you decide to replace the checkbox with an eye icon whose state can only be determined by the color, while the checkbox lets you know immediately if it has been checked or not, even if you cannot distinguish between colors? The main goal of every single change should be to improve usability. I once read a quote in another repo that went something like this: However, this particular change (eye icon) makes it a bit harder to use for some than before. In this case, please either keep the checkboxes, or make the difference between the "selected" and "unselected" states more obvious, e.g. by representing the unchecked state by a closed eye. kind regards |
this looks nice. |
hi @discip here is an alternative. used boxes on non-visible items. as you know eye icon already represents visibility on most UI's. Let's hear what people think |
@yw4z , could you please try crossed-out gray eye for disabled items? |
This is not what I wrote. 😊
Yes, on that one we are on the same page. And that's one of the things I thanked you for.
Mixing these themes doesn't look right, as you would expect either an empty box & one with a check mark in it, or an opened eye and a closed one. These are completely different concepts. |
haven't tested yet but does it adapt for a larger width when multi material prints are displayed? |
@igiannakas didnt saw issues when using 2 material but didnt tested further. Window width determined by bottom content and dynamic. i assume it shouldnt be a problem Whats your opinion about icon usage on display section? shared few examples above |
Also maybe ever so slightly higher spacing between the time/percent/usage columns would be a good idea for the ones with less good eyesight :) |
@igiannakas i didnt touched these spacings because it broke many placement when i changed before |
@buzzhuzz btw which os you use? eye icon looks blurry on your image on #8294 (comment) |
@yw4z |
Updated visuals on first post with latest changes and added more comparisons @SoftFever Only i couldnt figure out how to add scrolling support to gcode viewer section. that could be a nice addition. it's same thing using slider on bottom but with scrolling on viewer Also this commit #8294 will give another fix for longer translations of "Usage". you can find more information on that commit I marked commit as ready. let me know your thoughts |
@GlauTechCo can you test with latest commit. corrected scaling for top buttons and visible/hidden icons. there are many scaling related issues exist probably i will try to fix them in future |
|
I liked all the changes, except for the removal of the '%' on the 3rd column. The size gain is minimal, but the data is less clear without it. Note that all other columns have a unit too. |
From a consistency perspective I agree with @afmenez. |
removing spaces between units(m/g) and numbers was minimal change too but applying all together saves good amount space
header already says its % why want to see that in content? |
I don't want to look up on the column name to understand what is the data. You could also argue that the 'm' and 'g' are redundant, but it is quicker to understand when they are there on each line. |
Please revert this change. Numerical values and unit symbols should be separated by a space (see ISO 31-0). Also, could you please correct the same issue in the time column and the total time? Regarding the percentage (there should be a space as well, by the way), I would prefer to include the unit symbols, as it makes the table much easier to read. |
@TomPcz not every users uses 4k monitor on their printer farms probably you didnt pull latest commit that solves scaling issue on buttons but still item_spacing and window_padding not scales on current code that's why your columns so close and that makes hard to read. Scaling item_spacing will make it easier to read and will fix your issues |
The 3rd Option is best! Aligning the various values on the right would also help: |
Almost perfect, I would add a leading zero on "5m08s". |
Since there is no decimal separator the leading more space = better readability 😊 |
• adding leading zero is easy will give a shot for that |
sent new changes for increased window width a bit but readability increased. its a trade off and window width still less then original code |
CHANGES
For decreasing window width and increasing visible screen space for model
• Header > Used % instead "Percent" and removed "%" from types
• Header > Used "Usage" instead "Filament usage". Requires translation
• Removed spaces between [Length][Unit] and [Weight][Unit]
• Used eye icon and removed "Display" from header
• Removed "color scheme" text to compact frame width. Writing on different line can be an alternative method instead hiding
QOL improvements
• Added button for toggling gCode editor. Fixes #3136
• Increased Combo box's dropdown menu height to prevent scrolling to reach last elements of list. Fixes #4486 #6359
• Stored window width to keep Expand/Collapse button on same position to prevent mouse movement requirement while toggling
Visual Improvements
• Removed background color for expand/collapse button
• Added new icons for Expand/Collapse/gCode Viewer Toggle
• Removed darker rectangle on top. That gave more clean look imo
• Added window radius to match style a bit with gizmos. That gave more modern look imo
• Added a small gap between main toolbar and legend
• Added a small gap between legend and gcode viewer
• Fixes some of problems that related scaling
TODO
• Add scroll ability to gcode editor
COMPARISON
before


After - Width of legend is smaller %15 percent and allows for more screen space
before


after - Dropdown height increased to fit all contents. This prevents unnecessary scrolling
before


after
before - expand button changes position that requires unnecessary mouse movements


after - expand/fold button stays at same position
before


after - added gaps between windows that shows UI more organized and modern
Side by side
