-
Notifications
You must be signed in to change notification settings - Fork 9.8k
cabana: draw borders around signals #27293
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
Conversation
I guess that doesn't look great, but maybe it is OK. An alternative I can think of instead of the border would be a solid color line between MSB and LSB or only border on the bottom (arrow at end showing wrap direction when multiple lines? maybe that is overkill) |
I kind of like the dotted lines. |
It should look better if make binaryView more compact with small fonts. |
y,It looks better than the origin version. what do you think? If you think it's okay too, then I'll make binview more compact based on it. |
Think it looks better with the padding. I won't have time till next week to clean it up though. So if you want you can also merge it as is and me or @deanlee can submit a separate PR to add the paddings. |
It can be merged as it as. I'll get the rest of the work done if you're busy. |
Are you sure you want to make the binary view more compact? This is the main piece of the UI that the user interacts with when they are adding new signals. You're sitting in the car, interacting with something, and in the meantime you try to see which bits are changing. I also noticed that at the current size the UI is pretty usable on a touchscreen. Maybe you can make a checkbox to toggle between large/compact view? I imagine the compact view might be more desirable with CAN-FD. Maybe this PR is not a suitable place to discuss this though. |
Sorry I didn't take that into consideration, you are right. I will undo this part of the changes. |
2px looks good. Feel free to take my code and open a new PR if you want, then I'll close this one. |
That looks great, and agree that it would be nice to get the MSB/LSB visually "attached" to the underline. |
Only showing MSB for these single bit signals is weird I think. Maybe we can switch it to just the colored bar about the same width as the MSB text (and remove the MSB text)? |
I really like seeing the wrap direction that the color line gives you when the signal is multiple rows. I think the information might still be easier to quickly understand with the single bit fields changed to something better and the MSB/LSB integrated into the color line with border. I do like the better separation your changes have for when adjacent signals have similar colors. |
yes, I looooved that line too when I first saw it. but since all the color blocks are still mixed together even if there is a color line underneath, (many colors are similar). IMO, it didn't solve the most important problem we were trying to solve in the first place: distinguishing different signal and non-signal regions at a glance. |
|
The borders are a bit easier to see on my phone |
After adding bit level highlighting it was a bit harder to see where the signal edges where. This should make things more clear. Had to move LSB/MSB indicators up slightly to make everything fit.
As you can see if the shape is concave very small gaps appear at the two inside corners. If you want I can add a bunch more code to handle this case, or we leave it like this.

Before:
