-
Notifications
You must be signed in to change notification settings - Fork 694
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 #2360 - v2 View re-architecture.. #2361
Conversation
I just integrated my While a bunch of stuff is broken (including a lot of unit tests), I'm now pretty confident this will all work and be worth it (I removed hundreds and hundreds of very complex lines of code from the project. The old Fun stuff... |
Good choice.
Well the unit tests may work differently but most of them must demonstrate more or less the identical result, with some adjustments.
I think this will confusing the users. The v2 is a breaking change version with more features, so we don't have to worry with backwards compatible. The border in the |
@tig I played around the Borders scenarios and I changing the border style, border thickness, padding thickness, border brush, background color, effect 3D, well all of them and nothing changing. It's supposed to be like this? |
Yes because this is still just a proof of concept and not finished. |
If you have an urge to update one of the border scenarios to use the new architecture that would be appreciated. More than likely you'll find stuff I'm doing that doesn't make sense. 😏 |
Make sure you read the spec (in docfx/articles/View.md).. Its MOSTLY accurate relative to my vision . It contains some VERY CLEAR ERRORs and questions, but directionally paints the the vision. |
@tig this was done on the |
Woot! How did the port go? It now needs UI to control I'm confused about something tho: I thought I disabled the 3d effects in my prototype, but I see it working in the image you posted. |
This is only the Border without your API. It also has a margin which normally show the superview background color. The 3D effect will be draw on the margin. |
See: #2360
In this PR I have proven:
View
to have a "real"Bounds
where theLocation
part can be non-zeroLineCanvas
LineCanvas
such thatSplitContainer
is completely unnecessary.View
,Toplevel
,Window
, andFrameView
can be removed from the project.See the latest v2 View Spec here:
https://github.com/tig/Terminal.Gui/blob/v2_view2_experiment/docfx/v2specs/View.md
Here's the latest GIF: