-
Notifications
You must be signed in to change notification settings - Fork 696
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
Fixes #2539. Menu should use Frame instead of DrawFrame. #2540
Conversation
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.
Hero!
At some point, it seems Menu would be better off just being a view where each menu item is just a View
(a Label
?). Each 'frame' (e.g. separators) the menu would then be those View's Border
.
Well I was very lazy and I only used the view frame and the internal menu separator by changing the coordinates, but it could also be in the way you point to. |
Well your lazyness just caused me a bunch of work because I assumed you had done it carefully. 😠 💘 I'm merging #2483 now, but you'll see me merging in this PR into it broke some Menu tests that I had to disable because I ran out of time.. I'd love it if you'd look at them.
Thanks. |
@tig in the case of the |
@tig you are mixing |
@tig I swear I already had the menu to work before but something broke it. Is it not possible to draw a simple edge around the view frame? Run |
My design is not fully implemented yet. If you read the spec you'll see that. When this is all complete the See #2482 |
I understand what you mean, but it will imply a full refactor on the |
For those much more brave than me here is a suggestion for two items without separator (remember that each member is a
Since there is no separator the bottom thickness of the
More harder is when a separator is needed. In this case the bottom thickness of the
But the job isn't finished yet. It's needed to join the left with a
I don't want to give any lesson to anyone, but I only alert for the complexity, not for the steps above, but to the views that must be added to the superview and beside dealing with all menu/sub-menus opened, we needed to handle more much more views than currently has. |
The whole point of my latest big pr was to make two views that touch blend borders automatically! Just set UseSuperviewLineCanvas = true |
Fixes #2539 - Include a terse summary of the change or which issue is fixed.
Pull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)